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.

  • Hi,

    I am using ADSP21489 with 400MHz pll clock speed at this time I am trying generate 20MHz SPI clock but output of SPI slave data is corrupting when low clock speed lessthan 15Mhz slave is giving correct data.

    Again I configured PLL to 350MHz at this time SPI slave data is courrepting in less speed that means <5MHz.

    But in ADSP21489 datasheet SPI clock speed is 25MHz.I  am using SPI slave is AD7266 it supports 25MHz clock speed.

    I am confusing how to configure SPI clock in different clock rate.

    will you please assist me how to set SPI clock with different speeds.

    Below example code is initializing of SPI and PLL is 400MHz

    void SPI_InitForADC(unsigned int SPI_Flag)
    {
    /* Disable SPI so that earlier SPI configuration will be erased then below configure SPI as required for New SPI-ADC Device */
    Disable_SPI();
    *pSPIBAUD = 8;        //BNaud rate 12.5Mhz   /* Setup the baud rate 25MHz =400Mhz/(4*4)
    *pSPIFLG = (SET_DSXEN_BITS | SPI_Flag);  /* Setup the SPI Flag register using the Flag specified in the call */
    *pSPICTL = (AUTOSDS | SPIEN | SPIMS | WL32 | MSBF | TIMOD1 | SMLS | GM );// | CLKPL);// | GM); /*CPHASE | CLKPL | TIMOD2 |*/ /* Now setup the SPI Control register */
    }
    regards,
    eswar
  • 0
    •  Analog Employees 
    on Dec 27, 2019 12:47 PM over 1 year ago in reply to Eswar@2019

    Hi Eswar,

    Please refer the following link, ez.analog.com/.../what-is-the-maximum-speed-of-spi-clock-with-different-pll-in-adsp21489

    Regards,
    Anand Selvaraj.