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