Hello Texas,
I'm using TMS570LS3137 microcontroller with IAR Embedded Workbench.
I have a bootloader running in Flash Bank0, and the main program in Flash Bank1.
The bootloader's role is to update the main program, which works fine using F021 flash api. (Clear the area, then copy the new program.) But it doesn't work in the other way: The main program cannot operate with the bootloader area, because Flash Bank0 is locked.
I have read all the related topics on this forum, and I figured out that the solution might be loading the F021 functions to RAM, and run them from RAM. Like in this topic:
But I have no idea how to write such script in the IAR Workbench's linker syntax: TMS570LS3137.icf
I would like to ask for your help. Could you please provide me an example code on this?
Respect,
Balázs