Hello
I have a problem with using the F035 Flash Api on a TMS570. I am running the library from RAM. So far I can successfully erase and program all banks and sectors except Bank 0 - Sector 0. When I run the code through the debugger, I can see that it goes through the Flash_Erase_B routine successfully and as soon as I try to re-enable my interrupts, an exception occurs at 0x4. When looking at the memory browser, I can see that the Flash on Bank 0, Sector 0 has been successfully erased, and since the exception that I keep getting is an "Undefined Instruction Exception", it is making it very hard for me to figure out what is wrong here. (By the way the code that calls the F035 API that is in RAM, is running from Bank 1.)
This behaviour occurs on none of the other sectors. I have Flash ECC turned off and I disable all my interrupts before calling the F035 library. I am also running in Privilege mode. All the examples that I have seen that use the F035 Flash API do not use interrupts, and since this problem seems to have to do with re-enabling the interrupts, I am wondering if anyone else has come across this problem?
Many Thanks,
Kieran