Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
resources:tools-software:crosscore:cces:getting-started:app [26 Aug 2019 18:00] Steven MacDiarmidresources:tools-software:crosscore:cces:getting-started:app [27 Aug 2019 15:54] Steven MacDiarmid
Line 59: Line 59:
   * [[resources:tools-software:crosscore:cces:getting-started:boot-app-bf70x|Creating a boot image (single-core processors)]]   * [[resources:tools-software:crosscore:cces:getting-started:boot-app-bf70x|Creating a boot image (single-core processors)]]
   * [[resources:tools-software:crosscore:cces:getting-started:boot-app-bf60x|Creating a boot image (dual-core ADSP-BF60x processors)]]   * [[resources:tools-software:crosscore:cces:getting-started:boot-app-bf60x|Creating a boot image (dual-core ADSP-BF60x processors)]]
-  * [[resources:tools-software:crosscore:cces:getting-started:boot-app-sc5xx|Creating a boot image (multi-core ADSP-215xx/ADSP-SC5xx processors)]]+  * [[resources:tools-software:crosscore:cces:getting-started:boot-app-sc5xx|Creating a boot image (multi-core ADSP-SC5xx processors)]]
  
 After creating your boot image, please return to this page and continue from [[#Step 2: Write Application to Flash Memory|Step 2]] below. After creating your boot image, please return to this page and continue from [[#Step 2: Write Application to Flash Memory|Step 2]] below.
Line 73: Line 73:
  
 <note tip>This example uses the ICE-1000 emulator so this switch is set to **ICE-1000**. Consult CCES On-Line Help for CLDP settings appropriate for your configuration.</note> <note tip>This example uses the ICE-1000 emulator so this switch is set to **ICE-1000**. Consult CCES On-Line Help for CLDP settings appropriate for your configuration.</note>
 +
 +**-core** the core used to run the flash memory driver.
 +
 +<note important>For heterogeneous processors containing ARM and SHARC+ cores, **core 1 must run the flash memory driver**.</note>
  
 **-driver**: flash memory device driver (included with the Board Support Package installation) the processor uses to work with the board's flash device **-driver**: flash memory device driver (included with the Board Support Package installation) the processor uses to work with the board's flash device
Line 93: Line 97:
          
 <code bash> <code bash>
-    cldp -proc ADSP-SC573 -emu ICE-1000 -driver "<ADSP-SC5xx EZ-KIT BSP root directory>\ADSP-SC5xx_EZ-KIT\Examples\Device_Programmer\sc573\sharc\sc573_w25q128fv_dpia_Core1\sc573_w25q128fv_dpia_Core1.dxe" -core 1 -cmd prog -erase affected -file "<workspace directory>\Debug\CCES_Example_Core0.ldr"+    cldp -proc ADSP-SC573 -emu ICE-1000 -core 1 -driver "<ADSP-SC5xx EZ-KIT BSP root directory>\ADSP-SC5xx_EZ-KIT\Examples\Device_Programmer\sc573\sharc\sc573_w25q128fv_dpia_Core1\sc573_w25q128fv_dpia_Core1.dxe" -core 1 -cmd prog -erase affected -file "<workspace directory>\Debug\CCES_Example_Core0.ldr"
 </code> </code>
  
 <note important>//<directory>// indicates the full path to these files is required based on where the BSP is installed and where the CCES project was created.</note> <note important>//<directory>// indicates the full path to these files is required based on where the BSP is installed and where the CCES project was created.</note>
  
-=====Automatically Flash Device on Successful Build=====+=== Method 1: Use Command-Line Device Programming Utility Directly ===
  
-CCES can be configured to automatically call **cldp.exe** at the end of the build process: +1. Open a Command Prompt and navigate to your CrossCore Embedded Studio root installation folderBy defaulton Windows this is **C:\Analog Devices\CrossCore Embedded Studio 2.X\**. cldp.exe is located in this directory
-    - In **Project Explorer** viewright-click **CCES Example** project name and select **Properties…** +
-    - On **C/%%C++%% Build Settings** page, select **Build Steps** +
-    - Under **Post-build steps**, populate **Command** field with appropriate command line (see //Figure 5//). +
-   +
-  <note warning>Do //not// copy and paste the command line from above as formatting differences will cause cldp.exe to fail.</note>+
  
-{{:resources:tools-software:cces-gsg:cldp_command_line.png?600|}}+2. Run the flash driver using the appropriate command line from above and tailoring as required: 
 +  * Our blink example targets the ADSP-SC589 heterogeneous processor so we must specify **-core 1** 
 +  * Ensure the path to the **-driver** file correctly points to the core 1 ''*.dpia'' file in your Board Support Package 
 +  * Ensure the **-path** parameter points to the ''*.ldr'' file created previously  
  
-//Figure 5CLDP Command Line in Project Settings Build Steps Window//+{{:resources:tools-software:crosscore:cces:getting-started:07_cldp_command_prompt.png|}}
  
-The successful **. . . . . . done** message in the Console view indicates device programming is complete and the application is now stored in the flash memory. To verify the application boots properly without CCES, close CCES and verify the boot selector switch (SW1) on the board is in Position 1 to boot from SPI flash. If the board’s power is cycled or reset button pushed, the LED blink application will boot from flash memory should behave as it did during debug.+//Figure 1: Flashing device directly with cldp.exe// 
 + 
 +The successful **. . . . . . done** message indicates device programming is complete and the application is now stored in the flash memory. To verify the application boots properly without CCES, close CCES and verify the boot selector switch (SW1) on the board is in Position 1 to boot from SPI flash. If the board’s power is cycled or reset button pushed, the LED blink application will boot from flash memory should behave as it did during debug. 
 + 
 +=== Method 2: Configure CCES to Automatically Trigger cldp.exe on Successful Build === 
 + 
 +CCES can be configured to automatically call **cldp.exe** at the end of the build process: 
 +1. In **Project Explorer** view, right-click any of the projects and select **Properties…** 
 +2. On **C/%%C++%% Build Settings** page, select **Build Steps** 
 +3. Under **Post-build steps**, populate **Command** field with appropriate command line (see //Figure 5//). 
 +   
 +  <note warning>Do //not// copy and paste the command line from above as formatting differences will cause cldp.exe to fail.</note>
  
-{{:resources:tools-software:crosscore:cces:getting-started:cldp.png?600|}}+{{:resources:tools-software:crosscore:cces:getting-started:08_postbuild_configuration.gif|}}
  
-//Figure 6Flashing device with CLDP//+//Figure 2: CLDP Command Line in Project Settings Build Steps Window//
  
 ---- ----
 {{navigation CCES Getting Started#led-blink-app|LED Blink Application#.|CCES Getting Started#.|CCES Getting Started}} {{navigation CCES Getting Started#led-blink-app|LED Blink Application#.|CCES Getting Started#.|CCES Getting Started}}
resources/tools-software/crosscore/cces/getting-started/app.txt · Last modified: 27 Aug 2019 16:54 by Steven MacDiarmid