AM2634: How to load our program in FLASH memory via CCS studio

Part Number: AM2634
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hi teams,

i have a doubt in one example code. we can use SBL JTAG for flashing the program on to flash from CCS: software-dl.ti.com/.../EXAMPLES_DRIVERS_SBL_JTAG_UNIFLASH.html

But here i could able to do flash erase operation successfully but here i need to load my project for (example : gpio_led_blink) project in the flash flash is it possible?

so, here i need to do in the ccs studio application but i don't need to use the uniflash application or any external tool...is it possible?

  • Hi AK,

    But here i could able to do flash erase operation successfully but here i need to load my project for (example : gpio_led_blink) project in the flash flash is it possible?

    Yes you can writethe gpio application to the flash using the same sbl jtag application.

    The image that gets written to flash is .mcelf image for application and also you need to flash the SBL ospi mcelf(.tiimage) to the flash.

  • The example gives an option to program the flash in console output:

    1. Put the board in DEV boot mode:

    2. Open CCS and launch the target configuration for am263px. Connect to core and load the sbl jtag uniflash example

    Run the sbl jtag uniflash example, You will see print in ccs console:

    Enter 2 for writng to flash

    Then provide the absolute path to file:

    Provide path to SBL OSPI: I had built the SBL OSPI Multicore elf in CCS: C:\workspace_v12_tets\sbl_ospi_multicore_elf_am263px-cc_r5fss0-0_nortos_ti-arm-clang\Release\sbl_ospi_multicore_elf_am263px-cc_r5fss0-0_nortos_ti-arm-clang.tiimage

    Next Provide the offset:

  • After this step the xample will generate a command that you need to copy in scriptiong console in ccs:(highlighted in red)

    Paste the command and wait for it to finish:

    Then Press 1 in console output and you should see flashing success:

  • Repeat all the steps again for flashing the application image. After that change the boot mode to OSPI an you should be able to see the example running.

  • Hi Nilabh Anand,

    Thank you for your Good support and I have few things to clarify Actually i am using AM2634-cc not am263px and I followed the same 
    first i put into the uart boot mode and i started the debug session

    Firstly, I did the flash erased Successfully.


    After that i loaded the sbl_null.release file 

    so after i load the .appimage of gpio led blink project (gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang.appimage)

    in this offset : 0x800000


    finally i verified and i tested also but i didn't able to load into the flash memory.....


    in qspi mode,dev mode and boot mode all the things i tested i could able to see my project after power off and power on it was not in flash...

    can you suggest wat is the issue??

    your replay is really appreciated 

  • After that i loaded the sbl_null.release file 

    If you are using sbl null, then you do not need to flash application image as SBL NULL Allows you to load application by connecting to core vis CCS

    If you want to boot by above process please use SBL QSPI as I have suggested in above reply.

    Read more about SBLs here: 

    software-dl.ti.com/.../EXAMPLES_DRIVERS_SBL.html