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.

TMS320F28379D: Problem Running Flash API

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Hello - i am working with the Flash API routines and am running into issues when i change compiler optimization to level 2 (global optimizations).

My program works fine when optimization is set to off or 0 or 1...it is only when i change to 2 does it fail.

When it fails the program stops at an estop located at 0x3FE493...which is located in the c1brom_itrap_isr.  This function is commented to say it is called when an illegal interrupt occurs.  Interrupts are disabled when i call the API functions...

I did trace the failure once to the Fapi_setActiveFlashBank(Fapi_FlashBank0) call but the next time i ran the program it failed later in the program.

Any thoughts on cause? or how i can troubleshoot?

One other question - these API functions are running out of Flash memory.  Is this ok?  or should they be in RAM?  If so, how do i tell the compiler to put them in RAM?

One more question - in the past (i forget which TI processor) the Flash API was in ROM.  Is that feature not available on this processor?

I am using CCS 10.2.0.00009,  compiler TI v20.2.5.LTS,  C2000Ware_3_04_00_00, EABI (ELF) output type, and don't use driverlib.

Thanks!

Brett