FlashErase/FlashProgram not working with any optimization level (-Os size/-O1 general/-O2 speed/-O3 fast) except -O0 none.
Hi, I am working on SPC58NG84E7 bootloader. I have Bootloader code(at 0x00FC0000) with which i am using "FlashErase" API to Erase Flash Memory block at 0x00FF0000 with "-Os size" Optimization But its not working. Also, I tried putting breakpoint to the next line after erase, but breakpoint does not hit. Looks like its stuck in the execution.
I tried all other optimizations as well but same result.
Also, without optimization (NONE(-O0)) its working fine.
Same result is for "FlashProgram" API.
What could be the issue here?
Please help me resolve the issue.
