programming the SPI flash on SAM

Hi Guys,

     Do we have some documents or EZ Forum to illustrate how to combine the DXE files into LDR file and program it to the flash via CLDP?  

B.R.

Yosen 

  • +1
    •  Analog Employees 
    on Jun 2, 2020 12:50 PM

    Hi Yosen,

    Yes, we do. Here is the link and please let me know if there is anything that can be clarified so I can update it if needed.

    https://wiki.analog.com/resources/tools-software/sharc-audio-module/baremetal/flashing

    Regards,

    Chad

  • +1
    •  Analog Employees 
    on Jun 5, 2020 4:36 AM in reply to chadw

    Hi Chad,

         Thanks for your help. The customer engineer has already read this wiki but still confused about how to program the SPI FLASH. Though I have shared the experience about flashing on the ADSP-SC589 EZKIT, it seems not working.

          Please help to check the command line the customer is using.

         // line1: generate the ldr file

          elfloader.exe -proc ADSP-SC589 -init ezkitSC589_initcode_core0_v10 -core0=DYZG_P_96K_32B_1C_core0 -core1=DYZG_P_96K_32B_1C_core1.dxe -core2=DYZG_P_96K_32B_1C_core2.dxe -NoFinalTag=DYZG_P_96K_32B_1C_core0 -NoFinalTag=DYZG_P_96K_32B_1C_core1.dxe -b SPI -f BINARY -Width 8 -bcode 0x1 -verbose -o DYZG_SC589.ldr

        /* I notice that the customer is using the ezkitSC589 Init code to generate SAM board ldr file. is that ok?  

            however, the CLPD shows the ldr generated successfully

            */

       

       // line2: program the flash

       cldp.exe -verbose -proc ADSP-SC589 -core 1 -emu 1000 -driver sam_dpia_Core1.dxe -cmd prog -erase affected -format bin -file DYZG_SC589.ldr 

    /* when program the flash. the CLPD also reports " DONE"  as below. but the board does not work as expected and fault LED on SAM board was lighted.

        So the customer was wondering if the method of programming was correct. Please help me to verify it. 

    */

           

    B.R.

    Yosen

  • 0
    •  Analog Employees 
    on Jun 5, 2020 12:33 PM in reply to Yosen

    Hi Yosen,

    I don't see anything wrong with what they are doing. Is the fault led coming on at the very end of programming or when they cycle power and boot from flash? It usually does come on at the end of programming but when you boot from flash that should not happen. Is the BOOT MODE(JP1) jumper installed on 1&2?

    Although it does appear they changed a few things with our batch file, the SC589 init_codes is what we use because the settings are the same for the SHARC Audio Module.

    Thanks,

    Chad

  • 0
    •  Analog Employees 
    on Jun 8, 2020 2:07 AM in reply to chadw

    Thanks Chad!