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.

TMS320F2800157: How to execute the code from flash on the TMS320F2800157 32-pin?

Part Number: TMS320F2800157
Other Parts Discussed in Thread: UNIFLASH, C2000WARE

Hello Teams

How to execute the code from flash on the TMS320F2800157 32-pin?

I'm using the TMS320F2800157 with 32 pins and using the sample code gpio_ex2_toggle.

And modified the gpio_ex2_toggle.syscfg pin definitions as shown in the picture.

I can successfully build the code and obtain the memory allocation, as shown in the picture.

UniFlash setting as shown in the picture, and I can load image and verify image successfully

I have selected "Run Target After Program Load/Flash Operation," and the code runs successfully the first time.

However, after powering off and then powering on again, the TMS320F2800157 fails to execute the code.

I would appreciate guidance on ensuring the consistent execution of code on the TMS320F2800157 every time it powers on, thanks

  • Hello Pohsuan,

    Some common things to check in this scenario:

    1. Have you configured the boot mode pins to boot from Flash (or programmed this setting into user OTP)?

    2. Have you initialized the Flash correctly in your code (by calling Flash_initModule())?

    3. Are you using one of the template Flash linker command files provided in C2000ware? In particular the section .TI.ramfunc must be defined correctly.

    4. Is your code entry point actually at the beginning of the Flash? If you used a C2000 template/blank project or example then this should already be the case.

    Also, please make sure to read and follow "Migrating an application from RAM to Flash" under the Flash module chapter in the device TRM.

    Best regards,
    Ibukun

  • Hello Ibukun

    Thank you for your prompt response.

    I attempted to set GPIO24 & GPIO32 to high state, and it successfully allowed the device to boot from flash.

    I appreciate your assistance.

    Best regards,

    Pohsuan Hsu