Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE
Interrupt_IllegalOperationHandler ITRAP occurs when trying to write data to the Flash. At least when calling the function Fapi_setActiveFlashBank.
With some debugging I came to the point that when I call the function with setting the
- Compiler Opt Lvl = off
or
- Stack usage from 0x300 to 0x200
the problem no longer occurs, which makes me suspect that the error occurs depending on where the code is placed in memory. Because I think the issues I pointed out above behave like I put more or less data in memory and I got an offset and every time I reach some sections in memory the error occurs.
To avoid a lot of debugging in the wrong direction, I would like to know from your experiences and if there are any phenomena that are known regarding the TI FlashAPI.