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.

Compiler/TMS570LC4357: TMS570

Part Number: TMS570LC4357


Tool/software: TI C/C++ Compiler

Hello,

On TMS570LC4357x, I'm trying to execute a function from RAM but it generates prefetchEntry. IFSR register's value is 0xD, it means a permission error. And DFAR is 0x08001500 where my code is suppose to run.

I check using memory browser at address 0x08001500 and the function is there.

I copy the function into RAM using  __attribute__((ramfunc)) and I add ".TI.ramfunc: {} load=FLASH0, run=RAM, table(BINIT)" and ".binit : {} > FLASH0" in the linker.

Any ideas on how to solve this problem please?

Thanks