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: Fapi library execution from RAM

Part Number: TMS570LC4357


Hi,

I am programming a code where I need to read flash memory using Fapi functions.

The particularity of the program is that I need to be able to read all three flash banks.

According to Fapi manual, the Fapi instructions must be executing from a different bank from the one we are trying to operate on.

So I am trying executing it from RAM memory but with no success so far. The approach I am trying is to create a linker script to allocate the library in ram memory:

According to the memory map the functions are in RAM (I am not expert neither in linkers nor in memory maps):

When debuging the program, the Fapi instructions seem to be in RAM but the associated dissassembly, in accordance with the address shown above in the memory map is strange:

And when a Fapi instruction executes seems to provoke a reset in the program.

Any idea what could I be doing wrong?

Thanks in advance!

PD: If possible, I would like to avoid doing memcpy at the begining of the program to move Fapi instructions from Flash to RAM. I would prefer a linker kind method.