Hi everyone,
I am trying to erase flash and rewrite it to do program field upgrade. I start with TI's example code named "flash_programming_m3" on my custom board of F28M35 and the IDE is CCS6.1.3.
In the example, It erase sector L and sector K with no problem. But I need to start with sector N which lie in the front of flash memory to get my code running there.
I modified the example project to erase sector N and got the error below.
"Cortex_M3_0: Can't Run Target CPU: (Error -1268 @ 0x1090001) Device is locked up in Hard Fault or in NMI. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0) "
It also stopped in some file as shown in the picture below
Could you give me some advise about how to fix the problem? Should I copy some code in sector N to run in RAM? I turn around here for many days.
Regards
/*here is the project I used to test*/