run flash erase/write code in ram is easily failed ,picture below is SDK version,in the project Cache is disabled,and i debug with PE
here i want to erase 0x9000,length is 8,but erase failed
the project source is in attach file
Solved! Go to Solution.
Hi@Helloyt
I tested your code several times on my S32M244EVB and did not encounter your problem, which bothered me.
You can look at the FSTAT register.
Hi@Helloyt
I tested your code several times on my S32M244EVB and did not encounter your problem, which bothered me.
You can look at the FSTAT register.
the problem also disappeard after I used another board to test the code
when I tried to read the FSTAT in the error board,I found the MCU was locked by mistake because the CSEC was enabled and i erased the sector0 without write 0x40d
So it hard to reaappear