MPC5777C can not erase Internal flash

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

MPC5777C can not erase Internal flash

Jump to solution
992 Views
1620773328
Contributor II

Hi, 

I can't erase internal flash rang from 0x0088 0000 to 0x009F FFFF.

I create a project(S32) base on C55 Flash driver demo project.  Flash RW is ok with configuration:UNLOCK_FIRST256_BLOCKS = 0x0000 00FF , SKIP_IDX_NUM = 0xA. 

1.png

I try to change UNLOCK_FIRST256_BLOCKS = 0x0000 0003 , SKIP_IDX_NUM = 0x4, since my app code text locate in 0x0080 0008 (no more than 256K). The program stucks in  App_FlashErase fuction when trying to erase the memory at 0x0088 0000. What is wrong with it? Thanks. I attached my code below.

2.png

Regards,

Jinus

Tags (1)
0 Kudos
1 Solution
979 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Jinus,

I can see your code is running from 0x008x_xxxx. Notice that read-while-write is supported only between partitions. While erasing/programming one partition, the code must be executed from another partition or from RAM:

lukaszadrapa_0-1622727571850.png

 

lukaszadrapa_1-1622727597345.png

 

Regards,

Lukas

 

View solution in original post

0 Kudos
1 Reply
980 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Jinus,

I can see your code is running from 0x008x_xxxx. Notice that read-while-write is supported only between partitions. While erasing/programming one partition, the code must be executed from another partition or from RAM:

lukaszadrapa_0-1622727571850.png

 

lukaszadrapa_1-1622727597345.png

 

Regards,

Lukas

 

0 Kudos