ADSP-SC573 - Program Flash

Hi,

The sample project from which we started to create the loader file (.ldr) to be loaded into the flash is Power_On_Self_Test_SC573_Cortex on the ADSP-SC573 EZ-Board®. The procedure we used is described in the file (Readme_Power_On_Self_Test_SC573.html) present in the project, in particular we followed the procedure described in point 3 (Running Post). After creating the file loader we followed the procedure to program the flash described in the "Flashing the loader Using CLDP" section of the file (Readme_Power_On_Self_Test_SC573.html). With this project, once the loader file is loaded into the flash, the firmware is executed correctly.

We repeated the same procedure for the CharEcho_SC573_Cortex project on the ADSP-SC573 EZ-Board®. So from the project properties we have defined the settings of the .ldr file (Proprieties ---> Settings ---> CrossCore Arm Loader).

In the "General" section we have set the following parameters:

· Boot mode (-b): SPI master

· Boot format 8-f): Binary

· Boot code (-bcode): 1

In the "Initialization" section we have set the following parameters:

· Initialization file (-init): C: \ Analog Devices \ CrossCore Embedded Studio 2.8.0 \ SHARC \ ldr \ ezkitSC573_initcode_core0

In the "Executable Files" section we have set the following parameters:

· Booting Core: Core 0 (Cortex-A5)

· Executable: C: \ Users \ Tech \ Desktop \ UART \ examples \ sc58x_ez_kit_2.0.2 \ UART Char Echo (SC573 Cortex) \ SC573 \ a5 \ Debug \ CharEcho_SC573_Cortex.dxe

After obtaining the file loader we used cldp.exe to program the loader file in the flash with the following commands:

cldp.exe

-proc ADSP-SC573

-core 1

- ICE-1000

-driver C: \ Analog Devices \ ADSP-SC5xx_EZ-KIT_Lite-Rel2.0.2 \ ADSP-SC5xx_EZ-KIT \ Examples \ Device_Programmer \ sc573 \ sharc \ sc573_w25q128fv_dpia_Core1sc573_w25q128fv_dpia_Core1.dxe

-cmd prog

-erase affected

-format bin

-file C: \ Users \ Tech \ Desktop \ UART \ examples \ sc58x_ez_kit_2.0.2 \ UART Char Echo (SC573 Cortex) \ SC573 \ a5 \ Debug \ CharEcho_SC573_Cortex.ldr

The upload is successful, but after the reset the firmware is not executed.

We seem to have performed the procedure point by point but the firmware is not executed.

I attach the project that we can not boot.

Any help on this would be very much appreciated.
Many thanks
Lucia

UART.zip



ADSP-SC573 - Program Flash
[edited by: Lucia_Microtech at 8:20 AM (GMT -4) on 3 Sep 2018]
  • 0
    •  Analog Employees 
    on Sep 4, 2018 12:53 PM over 2 years ago

    Ciao Lucia, 

    The failure you are experiencing is due to the fact that the code includes PRINTF statements, which result in boot failure. Please comment out all printf statements in your code. Additionally, change the build configuration from DEBUG to RELEASE (Project -> Build Configurations -> Set Active -> Release) and rebuild the project again. Finally, program the flash with this newly created LDR file.

    Please let us know how you get on.

    Best regards,

    MKB

  • Hi Mkokaly,

    Thank you very much for the help. It work well.

    Now we repeated the same procedure for the CharEcho_SC573_SHARC_1 project on the ADSP-SC573 EZ-Board® for load firmware in to the flash.

    The upload is successful, but after the reset the firmware is not executed.

    We seem to have performed the procedure point by point but the firmware is not executed and the LED1 on board power on.

    I attach the project that we can not boot.

    Any help on this would be very much appreciated.
    Many thanks
    Lucia

    UART2.zip

  • 0
    •  Analog Employees 
    on Sep 4, 2018 3:18 PM over 2 years ago in reply to Lucia_Microtech

    Hi Lucia,

    I´ve just tested the example project on my SC589 board and I can confirm that it works well (after removing the printf statements, as per my earlier reply).

    Note that you need to generate a multicore loader file. Here are my loader file settings. Let me know how you get on with it.

    Best regards,

    MKB

    IMPORTANT: note the Append core input without introducing a FINAL block (-NoFinalTag) option checked for Cores 0 and 1.