This is an old revision of the document!
CCES supplies pre-built initialization files for the ADSP-SC5xx EZ-KIT Lite, as well as source code which can be modified to support custom boards with other CLKIN values and/or alternative DDR memory. The pre-built files can be found in the <CCES Root>\SHARC\ldr\ directory. The CCES source code projects are in <CCES Root>\SHARC\ldr\init_code\SC57x_init\.
Let's start with our existing ADSP-SC573 blink application. The application is made up of three projects, one for each core of our ADSP-SC573 processor. To recap, core 0 is our ARM Cortex-A5 core and cores 1 and 2 are our SHARC+ cores:
Figure 1: Three-core blink example project
Figure 2: Setting the build configuration
2. In the Project Explorer view, right-click the project for the appropriate core (see note) and select Properties
3. In the Properties window, go to the Build → Settings page and select Build Artifact → Artifact Type → Loader File
Figure 3: Specifying loader file as build artifact
4. On the Tool Settings tab, go to the CrossCore SHARC Loader → General page and select these settings:
Figure 4: Specifying loader properties
5. Go to the CrossCore SHARC Loader → Initialization page and add the pre-built initialization file by clicking Browse… and navigating to <CCES Root>\SHARC\ldr\ezkitSC5XX_initcode_core0:
Figure 5: Specifying an initcode file
6. Click Apply and Close
7. Build your application. Click the hammer icon in the toolbar or press CTRL-B
8. In Project Explorer, click on the loader file project (core 2 in our example) and select Properties
9. On the Tool Settings tab under CrossCore SHARC Loader → Executable Files, specify an executable to be run on each of your processor's cores by clicking Browse…. CCES automatically opens your operating system's file manager in the root folder of the project associated with each core. The executable should be in the Debug folder. For core 0 (ARM) projects the executable has no file extension. For SHARC cores (1 and 2), the executable has the file extension
Figure 6: Specifying executables to be included in loader image
10. Rebuild the loader file project to generate the loader image file. In Project Explorer right click the core 2 project and select Build Project. A
*_core*.ldr file should be generated in the loader project's Debug folder
Figure 7: The loader file has been created
11. Return to the previous page to learn how to flash your loader file and application to your device.
Aside: When an application is loaded to a target using the debugger, the IDE can configure external memory as long as the processor is homogeneous (i.e. it has only SHARC cores). However, for heterogeneous processors, such as the ASDP-SC5xx series, which have an ARM core plus one or two SHARC cores, a preload file, equivalent to an initialization file, is required. As with initialization files, pre-built preload files are located in the <CCES Root>\SHARC\ldr\ directory, and CCES projects for customization can be found in <CCES Root>\SHARC\ldr\init_code\SC57x_init\ directory. The master core is generally the only core that needs a preload file, so a new Debug Configuration session automatically includes the preload file as one of the applications that is to be loaded. For an ADSP-SC5xx processor, the preload file is included in the ARM© Core 0 project. More information about proper preload file configuration can be found in CCES Online Help under CrossCore® Embedded Studio 2.9.0 → Integrated Development Environment → Debugging Targets → Debugging ADSP-SC5xx SHARC Targets → About Preload Files.