Flash erase in S32 Design studio

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

Flash erase in S32 Design studio

447 Views
quangvuanh
NXP Employee
NXP Employee

Hi,

I am working with S32K344 T172 EVB, and I accidentally issued the flash memory of the device.

Now, when I try to flash my binary to the board via S32 Design Studio IDE, I receive the message:

quangvuanh_0-1713774393836.png

I also tried to enable Full chip erase, but then it said that the Mass erase not support

quangvuanh_1-1713774433298.png

quangvuanh_2-1713774515539.png

Can anyone please help me to resolve this issue so that I can re-flash my board? Thanks

Labels (1)
0 Kudos
9 Replies

398 Views
quangvuanh
NXP Employee
NXP Employee

Thanks @VaneB for replying me

I think I am using HSE Arp, with this setup I can flash to other S32K344 EVBs

quangvuanh_0-1713849389649.png

 

0 Kudos

358 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @quangvuanh 

In the debug configurations go to the Startup tab 
 VaneB_0-1713994601504.png
and select the following:
 VaneB_2-1713994629710.png

With this, instead of loading the executable, it will simply be attached to the microcontroller, and with this, you can try to pause to see in which memory address it was running. If it is at address 0x20400100 or similar, it means that it is in recovery mode.

Additionally, if you manage to pause the microphone, you could share an image of memory address 0x4039C028 to see the HSE GPR.

0 Kudos

329 Views
quangvuanh
NXP Employee
NXP Employee

Hi @VaneB 

I follow your guideline, then the program pause here -> seem that your assumption is correct

quangvuanh_0-1714113005473.png

And the value stored at 0x4039C028 

quangvuanh_1-1714113132047.png

 

0 Kudos

309 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @quangvuanh 

It seems that the device is currently going into recovery mode.

Can you please look for the registers FSR and GSR of the MU_B? That may help us identify if there is anything wrong occurring with the initialization of the HSE FW.

 

B.R.

VaneB

0 Kudos

222 Views
quangvuanh
NXP Employee
NXP Employee

@VaneB , Here are the registers ' values

quangvuanh_1-1714978178897.png

 

quangvuanh_0-1714978137702.png

 

0 Kudos

203 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @quangvuanh 

What was the last thing you uploaded to your device? How did you do it? Also, what type of HSE FW does your device have? Do you have a standard one or is premium one?

0 Kudos

185 Views
quangvuanh
NXP Employee
NXP Employee

I took the board from my colleague and now I dont know what was the last thing being flashed into the device. We will check again on our side.
About HSE FW, what can I do to check the version of it? The FW was loaded into S32K3x4 EVB board before delivery, right?

Update:

I checked with my colleague and he has loaded another HSE firmware to the board HSE_FW_S32K3XX_0_2_1_0, with AB_SWAP algorithm. Well, I think now I know where the issue is

Question: 

Is there any way back so that I can reload HSE FULL_MEM to my board @VaneB ?

0 Kudos

124 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @quangvuanh 

I am afraid that when the Flash configuration is set to AB_SWAP, it is not possible to go back to the FULL_MEM configuration. Hence, only an AB_SWAP HSE Firmware image can be used in this configuration.

0 Kudos

418 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @quangvuanh 

S32K3 devices do not support mass erase as shown in the last shared image. 

Are you using HSE FULL MEM or AB SWAP? It looks like you are using the wrong program. 

 

B.R.

VaneB

0 Kudos