How to erase Flash in ADSP21489 Sharc processor

Hi All,

I am using ADSP21489 processor I loaded the code in flash using the below command

cldp -proc ADSP-21489 -emu ICE-2000 -driver "C:\Analog Devices\ADSP-21489_EZKIT-Rel1.0.0\21489_EZ-Board\Examples\Device_Programmer\serial\21489_m25p16_dpia.dxe" -cmd prog -erase affected -format hex -file D:\Karthik\BDL_ACU_140519\BDL_ACU_140519\Debug\BDL_ACU_140519.ldr"

here the file name is  D:\Karthik\BDL_ACU_140519\BDL_ACU_140519\Debug\BDL_ACU_140519 this is path of project.

Using the above command i loaded the hex file now I want to erase the Flash

Please assist me how to erase flash what is the process for erasing and how to check the flash is erased or not.

regards,

eswar.

Parents
  • 0
    •  Analog Employees 
    on May 24, 2019 2:55 PM


    Hi Eswar,

    Regarding," how to erase flash what is the process for erasing"

    cldp -proc ADSP-21489 -emu ICE-2000 -driver "C:\Analog Devices\ADSP-21489_EZKIT-Rel1.0.0\21489_EZ-Board\Examples\Device_Programmer\serial\21489_m25p16_dpia.dxe" -cmd prog -erase affected -format hex -file D:\Karthik\BDL_ACU_140519\BDL_ACU_140519\Debug\BDL_ACU_140519.ldr"

    In order to erase the flash, you can use "erase all" instead of "erase affected" while loading the code. The "erase all" will erase the flash completely.

    Regarding," how to check the flash is erased or not."

    Can you please have a look at the example available in the ADSP-21489 Board support package(BSP) to check the DSP. Please download and install the board support package for ADSP-21489 in the below download.analog.com/.../ADI_ADSP-21489_EZKIT-Rel1.0.0.exe

    Once you installed, you can find the example code in the below path.
    [Installation directory]:\Analog Devices\ADSP-21489_EZKIT-Rel1.0.0\21489_EZ-Board\Examples\Power_On_Self_Test\src

    Regards,
    Lalitha.S

Reply
  • 0
    •  Analog Employees 
    on May 24, 2019 2:55 PM


    Hi Eswar,

    Regarding," how to erase flash what is the process for erasing"

    cldp -proc ADSP-21489 -emu ICE-2000 -driver "C:\Analog Devices\ADSP-21489_EZKIT-Rel1.0.0\21489_EZ-Board\Examples\Device_Programmer\serial\21489_m25p16_dpia.dxe" -cmd prog -erase affected -format hex -file D:\Karthik\BDL_ACU_140519\BDL_ACU_140519\Debug\BDL_ACU_140519.ldr"

    In order to erase the flash, you can use "erase all" instead of "erase affected" while loading the code. The "erase all" will erase the flash completely.

    Regarding," how to check the flash is erased or not."

    Can you please have a look at the example available in the ADSP-21489 Board support package(BSP) to check the DSP. Please download and install the board support package for ADSP-21489 in the below download.analog.com/.../ADI_ADSP-21489_EZKIT-Rel1.0.0.exe

    Once you installed, you can find the example code in the below path.
    [Installation directory]:\Analog Devices\ADSP-21489_EZKIT-Rel1.0.0\21489_EZ-Board\Examples\Power_On_Self_Test\src

    Regards,
    Lalitha.S

Children