This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5729: Flashing procedure for QSPI NOR Flash devices using Uniflash

Part Number: AM5729
Other Parts Discussed in Thread: UNIFLASH,

Hai,

      We are trying to flash QSPI NOR flash using UNIFLASH tool from the following thread (3.1. Board Support — Processor SDK RTOS Documentation),

      In that, 

      1-> We are able to download flash programmer to target device using (3.5.1.4.2.1. Uniflash CLI JTAG Load) (Able to see "cccc" on serial terminal as expected) but, 

      2-> When we are trying to Program the Flash Device by following 3.5.1.5. Programming the Flash Device, We are able to load the code but its not executing 

      Stelps Followed:

       dslite.bat --mode processors -c COM10 -f C:\ti\pdk_am65xx_<ver>\packages\ti\boot\sbl\binary\am65xx_evm\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 2 -o 0

     

       Please let us know the steps to program the flash device using uniflash in AM5729

Thank You,

Chandu

  • Hi Chandu,

    use the below command for step2:

    dslite.bat --mode processors -c COM4 -f C:\ti\pdk_am57xx_1_0_17\packages\ti\boot\sbl\binary\idkAM572x\qspi\bin\MLO -d 2 -i 1 -o 0

    if you face any issues after this, can you explain your execution procedure in little detail.

  • Hai Anubhav,

    We used

    dslite.bat --mode processors -c COM10 -f C:\ti\pdk_am65xx_<ver>\packages\ti\boot\sbl\binary\xxx.out -d 2 -o 0

    By using the above command we able to load the code but it's not running in the Processor

    in the above command suggested by you What Do u mean by MLO? (in the place of MLO can we replace with " XXX.out " or "app" file)

    dslite.bat --mode processors -c COM4 -f C:\ti\pdk_am57xx_1_0_17\packages\ti\boot\sbl\binary\idkAM572x\qspi\bin\MLO -d 2 -i 1 -o 0

    Thank You,

    Chandu

                        

  • Hi,

    in the above command suggested by you What Do u mean by MLO?

    MLO is the bootloader, that is needed for loading any binary.

    in the place of MLO can we replace with " XXX.out " or "app" file

    No, you cant as mentioned earlier.

    You have to follow the below sequence for flashing binary to Qspi:

    • Open CLI from uniflash root folder.
    • give command - dslite.bat --mode load --config=<path\to\ccs\target\configuration\am571x.ccxml> -f <path\to\uniflash\root_folder>\processors\FlashWriter\idkAM571x\uart_idkAM571x_flash_programmer.out -n 7
    • dslite.bat --mode processors -c COM4 -f C:\ti\pdk_am57xx_1_0_17\packages\ti\boot\sbl\binary\idkAM571x\qspi\bin\MLO -d 2 -i 1 -o 0
    • dslite.bat --mode processors -c COM4 -f C:\ti\processor_sdk_rtos_am57xx_6_03_00_106\prebuilt-sdcards\idkAM571x\sd_card_files\led_TEST -d 2 -o 80000

    It will load LED test on your next power cycle. You can give any image in last command but it should be of type .appimage, not .out. And change the com port number according to your system settings.

    You can follow the below sequence for erasing the binary from Qspi, flashed earlier:

    • Power cycle the board and let it boot from qspi.
    • Open ccs.
    • launch the target configuration but don't connect it.
    • right click on the core (a15) -> open gel files view -> right click in the gel/script section -> remove all. Basically, you have to connect the core without gel files.
    • then connect the core and load and run <path\to\uniflash\root_folder>\processors\FlashWriter\idkAM571x\uart_idkAM571x_flash_programmer.out.
    • You can see CCC in the serial console.
    • Note down the port number and close the console.
    • Open CLI from uniflash root folder and give below command - dslite.bat --mode processors -c COM4 -e 10000 -d 2 -o 0.
    • It will erase the qspi memory space.

  • Hai Anubhav,

                       thank you for the reply, 

                       -> After erasing the  qspi flash,  do we need to load the MLO again

                       -> After compilation of code in ccs we are able to generate "app"(A multicore image),  can we load it directly ( wheather "app" and "appimage" (the name u mentioned) are the same.

    Thank you, 

    chandu.

  • Hi,

    After erasing the  qspi flash,  do we need to load the MLO again

    Yes, everytime for writing new images you have to erase previous image and then write new image following the sequence mentioned in earlier reply.

    After compilation of code in ccs we are able to generate "app"(A multicore image),  can we load it directly ( wheather "app" and "appimage" (the name u mentioned) are the same.

    yes, you can. But my suggestion is to use prebuilt binaries that comes along with package for starter. (C:\ti\processor_sdk_rtos_am57xx_6_03_00_106\prebuilt-sdcards\idkAM571x\sd_card_files\).

  • Thank you for info Anubhav, but in the SDK guide provided by TI I didn't find the Steps like flashing MLO etc in the following link

    link: 3.1. Board Support — Processor SDK RTOS Documentation  (3.5.1.3.3. Uniflash Execution Steps)

    Any how after flashing MLO it is working fine

    Thank You,

    Chandu.