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.

TMS570LS3137: Having trouble running FAPI F21 libraries to program flash during bootloader

Part Number: TMS570LS3137

Help,

When trying to use the following api calls within the bootloader uart sample code 

Fapi_BlockErase

Fapi_initializeFlashBanks

Fapi_setActiveFlashBank

Fapi_enableMainBankSectors

 Fapi_issueAsyncCommandWithAddress

I can single step over the functions, but, when I  run over the functions, I end up caught in undef_entry or prefetch_entry. 

We are calling  Fapi_initializeAPI((Fapi_FmcRegistersType *)F021_CPU0_REGISTER_ADDRESS, (uint32_t)SYS_CLK_FREQ);  where SYS_CLK_FREQ == 160 and F021_CPU0_REGISTER_ADDRESS == FFF87000

We are running the F21 and bl_flash from RAM. Any help would be appreciated.

Thanks,

Ron