S32M244 erase/write pflash in ram failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32M244 erase/write pflash in ram failed

Jump to solution
927 Views
Helloyt
Contributor III

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

企业微信截图_17418328858168.png

企业微信截图_17418329366582.png

here i want to erase 0x9000,length is 8,but erase failed

企业微信截图_17418330539132.png

the project source is in attach file

0 Kudos
Reply
1 Solution
898 Views
Senlent
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
Reply
2 Replies
899 Views
Senlent
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply
877 Views
Helloyt
Contributor III

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

0 Kudos
Reply