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.

TMS570LC4357: TMS570LC43xx HDK : Code stuck in _TI_auto_init

Part Number: TMS570LC4357


Hi,

we are using TMS570LC43xx HDK and developing a software to load data on to flash using F021 flash library. As per the thread mentioned in below link, we placed F021 library in RAM. We are observing dataentry exception during initialization of Global constructors (_TI_auto_init). without placing F021 library in RAM, we are not observing this issue.

e2e.ti.com/.../1451194

can you please let us know how to fix this?

Thanks,

Kalyan

  • Hello Kalyan,

    The link doesn't work. Can you please re-post the link for us?

    TMS570LC4357 has 2 program flash banks: bank0 and bank1. I assume your code is located in bank 0. If you want to erase bank1 and program data to bank1, you don't have to copy API related code to SRAM and execute them from SRAM.

    If you want to program data to other sectors in bank0, you have to copy F021 API related code to SRAM and execute the code from SRAM.
  • Hi Wang, 

    Thanks for your prompt response. we were able to resolve the issue by executing Flash API functions from SRAM.

    Should we call "Fapi_flushPipeline()" function after every erase/program fapi function call?

    Thanks,

    Kalyan

  • Hi Kalyan,

    It is better to call this function to flush the FMC pipeline buffers. From the recommended program flow, it is not a must.