Part Number: TMS570LS3137-EP
Other Parts Discussed in Thread: TMS570LS3137
Hi,
We are having an issue with the F021 Flash API on the TMS570LS3137. We are following the procedure outlined in spnu501h to erase flash via the following example:
...
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.
Part Number: TMS570LS3137-EP
Other Parts Discussed in Thread: TMS570LS3137
Hi,
We are having an issue with the F021 Flash API on the TMS570LS3137. We are following the procedure outlined in spnu501h to erase flash via the following example:
...
Hi Justin,
TMS570LS3137 has two flash banks. If your code can erase the flash bank 1, but can not erase bank 0, some API related functions and variables are not copied to SRAM, and executed from SRAM.
Is bool_t isFlashReady(void) function executed from SRAM?
It should be executed from SRAM as it is in the same file as the other API related functions and we do add that object file to the Flash API that is copied to SRAM. The following is from the linker file that includes them into the Flash API that is then copied to SRAM during initialization.
SECTIONS
{
.intvecs : {} > BOOT_VECTORS
.boot_version : {} > BOOT_VERSION
flashAPI :
{
..\Debug__TI\Fapi_UserDefinedFunctions.obj (.text)
..\Debug__TI\flashdrv.obj (.text)
..\Debug__TI\external_watchdog.obj (.text)
--library= ../ext/F021_Flash_API_02.01.01/F021_API_CortexR4_BE_V3D16.lib (.text)
} load = FLASH_API, run = SRAM, LOAD_START(api_load), RUN_START(api_run), SIZE(api_size)
Is there a way to tell that isFlashReady is being run from SRAM?