HSE Firmware Update from RAM

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

HSE Firmware Update from RAM

371 Views
HaiHoangSoftware
Contributor III

Dear NXP team,

Currently, We are referring to HSE_DEMOAPP_S32K396_0_2_50_0 to see how to update new HSE firmware (AB SWAP to AB SWAP FW update).

The first step is that programs IVT and Encrypted HSE F/w V2 Image in Active Partition as below picture (mentioned in HSE_DEMOAPP_S32K396_0_2_50_0_ReadMe.pdf).

HaiHoangSoftware_0-1760930918126.png

Due to the memory limit, Is that possible to store Encrypted HSE F/w V2 Image in RAM for updating?

Thanks,

Hai Nguyen Hoang.

 

 

Tags (3)
0 Kudos
Reply
6 Replies

340 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @HaiHoangSoftware 

Yes, the encrypted image can be stored in RAM memory. The only condition is that HSE must have access to that memory location - that means XRDC must be configured to allow HSE access to that memory. 

Moreover, service HSE_SRV_ID_FIRMWARE_UPDATE can be configured to use streaming mode which can be useful if you have not enough memory. 

Regards,

Lukas

0 Kudos
Reply

299 Views
HaiHoangSoftware
Contributor III

Hi @lukaszadrapa,

Thanks for your confirmation.

Is that possible to update HSE F/w in LifeCycle IN_FIELD?

Best regards,

Hai Nguyen Hoang.

Tags (3)
0 Kudos
Reply

280 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, the firmware can be updated in all life cycles. 

Regards,

Lukas

0 Kudos
Reply

257 Views
HaiHoangSoftware
Contributor III

Hi @lukaszadrapa ,

After request HSE install new firmware and request HSE to activate passive block successfully, a Hard reset must be issued.

After Hard reset, HSE will take back up by 1 second. Does this always happen or just 1 time when new HSE Fimeware is installed?  

HaiHoangSoftware_0-1761208479314.png

Best regards,

Hai Nguyen Hoang

 

Tags (2)
0 Kudos
Reply

236 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @HaiHoangSoftware 

This will happen only first time because it is necessary to copy the firmware to passive partition. The device works as usual after reset, just HSE_STATUS_INIT_OK is set later after about 1s, so you can't trigger HSE services until the HSE_STATUS_INIT_OK is set. 

In earlier versions of firmware, the firmware was copied to passive partition after each AB swap (even if the firmware was not updated). If you have firmware 0.2.50.0 for S32K396, this was changed to reduce this delay - copied from release notes:

"In ABSwap reduced HSE init time after Partition swap and reset by skipping firmware backup if HSE FW is the same"

So, you will see 1s delay only if the firmware is being updated. 

Regards,

Lukas

0 Kudos
Reply

173 Views
HaiHoangSoftware
Contributor III

Hi Lukas,

Understood now.

Thanks for your support.

0 Kudos
Reply