Hi,
in my project I have a large section of code copied from flash to ram with the binit table, I set the MPU to allow the execution of code from RAM but a data abort exception occur after a few instruction executed form RAM .
Just to check the problem i tried to make a simpler project generated from Halcodgen that generate the data exception, in this case the code loaded from flash to RAM is the FEE-eeprom driver.
To test the code I'm using the launchpad XL2 with the TMS570LC4357 with the "TI v18.1.2.LTS" compiler
The main function only try to launch the TI_Fee_Init API, but will generate the data abort on the TI_Fee_u32BlockEraseCount = 0xFFFFFFFFU instruction.
This is the test project:
Can you tell me which is my mistake or geve me a solution to my problem?
Just for information, i see this behaviour only when i copy a large section of code from flash to RAM otherwise all works fine
Thanks, best regards,
Giovanni