HSE Firmware Update

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
303件の閲覧回数
HaiHoangSoftware
Contributor IV

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-1760603654989.png

In the Demo App, this step was done by TRACE32 script.

But in our project, we need to get new Encrypted HSE F/w V2 Image from tester tool via UDS CAN, then perform writing this image into Active Partition in this step.

Please help us verify if we can perform programming Encrypted HSE F/w V2 Image into Active Partition(PFLASH BLOCK0 or PFLASH BLOCK1) while SW is executing in Active Partition(PFLASH BLOCK 0) by Mem43 Flash Driver?

 

Thank you and best regards,

Hai Nguyen Hoang

0 件の賞賛
返信
1 解決策
279件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @HaiHoangSoftware 

Generally speaking, read-while-write (RWW) is supported between blocks. So, when a block is being programmed or erased, this block cannot be accessed and the code must run from another block or from RAM.

Mem_43_INFLS driver provides a feature which can load access code to RAM memory in order to avoid RWW issues. For details, see section "3.6.3 Avoiding Read While Write" in user manual RTD_MEM_43_INFLS_UM.pdf. If this feature is enabled, you can program/erase the same block where the code is running from.
But if you want to keep interrupts enabled during the flash operations, it's better to avoid this situation - if your application is running from block 1 then load new pink file to block 0 and there will be no problem.

Regards,
Lukas

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
280件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @HaiHoangSoftware 

Generally speaking, read-while-write (RWW) is supported between blocks. So, when a block is being programmed or erased, this block cannot be accessed and the code must run from another block or from RAM.

Mem_43_INFLS driver provides a feature which can load access code to RAM memory in order to avoid RWW issues. For details, see section "3.6.3 Avoiding Read While Write" in user manual RTD_MEM_43_INFLS_UM.pdf. If this feature is enabled, you can program/erase the same block where the code is running from.
But if you want to keep interrupts enabled during the flash operations, it's better to avoid this situation - if your application is running from block 1 then load new pink file to block 0 and there will be no problem.

Regards,
Lukas

0 件の賞賛
返信
262件の閲覧回数
HaiHoangSoftware
Contributor IV
Hi,

It's clear for now.
Thanks for your support.

Regards,
Hai Nguyen Hoang.
0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2187356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHSE%E3%83%95%E3%82%A1%E3%83%BC%E3%83%A0%E3%82%A6%E3%82%A7%E3%82%A2%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENXP%E3%83%81%E3%83%BC%E3%83%A0%E3%81%AE%E7%9A%86%E6%A7%98%3C%2FP%3E%3CP%3E%E7%8F%BE%E5%9C%A8%E3%80%81%E6%96%B0%E3%81%97%E3%81%84%20HSE%20%E3%83%95%E3%82%A1%E3%83%BC%E3%83%A0%E3%82%A6%E3%82%A7%E3%82%A2%E3%82%92%E6%9B%B4%E6%96%B0%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%20(AB%20SWAP%20%E3%81%8B%E3%82%89%20AB%20SWAP%20FW%20%E6%9B%B4%E6%96%B0)%20%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E3%80%81HSE_DEMOAPP_S32K396_0_2_50_0%20%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%E3%81%AF%E3%80%81%E4%BB%A5%E4%B8%8B%E3%81%AE%E5%9B%B3%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%80%81%20%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%20%E3%83%91%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B7%E3%83%A7%E3%83%B3%20%E3%81%AB%20IVT%20%E3%81%A8%3CFONT%20color%3D%22%23FF00FF%22%3E%3CSTRONG%3E%20%E6%9A%97%E5%8F%B7%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9F%20HSE%20F%2Fw%20V2%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E3%82%92%3C%2FSTRONG%3E%3C%2FFONT%3E%20%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%3CFONT%20color%3D%22%2399CC00%22%3E%3CSTRONG%3E%20%3C%2FSTRONG%3E%3C%2FFONT%3E(HSE_DEMOAPP_S32K396_0_2_50_0_ReadMe.pdf%20%E3%81%AB%E8%A8%98%E8%BC%89)%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22HaiHoangSoftware_0-1760603654989.png%22%20style%3D%22width%3A%20614px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22HaiHoangSoftware_0-1760603654989.png%22%20style%3D%22width%3A%20614px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361126iAE9C040D73B88DDE%2Fimage-dimensions%2F614x431%3Fv%3Dv2%22%20width%3D%22614%22%20height%3D%22431%22%20role%3D%22button%22%20title%3D%22HaiHoangSoftware_0-1760603654989.png%22%20alt%3D%22HaiHoangSoftware_0-1760603654989.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E3%83%87%E3%83%A2%20%E3%82%A2%E3%83%97%E3%83%AA%E3%81%A7%E3%81%AF%E3%80%81%E3%81%93%E3%81%AE%E6%89%8B%E9%A0%86%E3%81%AF%20TRACE32%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E7%A7%81%E3%81%9F%E3%81%A1%E3%81%AE%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A7%E3%81%AF%E3%80%81UDS%20CAN%20%E3%82%92%E4%BB%8B%E3%81%97%E3%81%A6%E3%83%86%E3%82%B9%E3%82%BF%E3%83%BC%20%E3%83%84%E3%83%BC%E3%83%AB%E3%81%8B%E3%82%89%E6%96%B0%E3%81%97%E3%81%84%3CFONT%20color%3D%22%23FF00FF%22%3E%3CSTRONG%3E%E6%9A%97%E5%8F%B7%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9F%20HSE%20F%2Fw%20V2%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%3C%2FSTRONG%3E%3C%2FFONT%3E%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%80%81%E3%81%93%E3%81%AE%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%E3%81%A7%E3%81%93%E3%81%AE%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%E3%82%92%3CFONT%20color%3D%22%2399CC00%22%3E%3CSTRONG%3E%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%20%E3%83%91%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B7%E3%83%A7%E3%83%B3%3C%2FSTRONG%3E%3C%2FFONT%3E%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%82%80%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF00FF%22%3E%3CSTRONG%3EMem43%20%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%20%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%20%E3%83%91%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B7%E3%83%A7%E3%83%B3%20(PFLASH%20BLOCK%200)%20%E3%81%A7%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%81%8C%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E9%96%93%E3%81%AB%E3%80%81%20%E6%9A%97%E5%8F%B7%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9F%20HSE%20F%2Fw%20V2%20%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8%3C%2FSTRONG%3E%3CFONT%20color%3D%22%23000000%22%3E%20%3CSTRONG%3E%3CFONT%20color%3D%22%2399CC00%22%3E%E3%82%92%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3CFONT%20color%3D%22%23000000%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%2399CC00%22%3E%20%E3%83%91%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B7%E3%83%A7%E3%83%B3%3C%2FFONT%3E%3C%2FSTRONG%3E%20(PFLASH%20BLOCK0%20%E3%81%BE%E3%81%9F%E3%81%AF%20PFLASH%20BLOCK1)%20%E3%81%AB%3CFONT%20color%3D%22%2399CC00%22%3E%3CSTRONG%3E%20%3C%2FSTRONG%3E%3C%2FFONT%3E%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E3%81%A7%E3%81%8D%E3%82%8B%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%20%E3%82%92%3C%2FFONT%3E%3C%2FFONT%3E%20%E7%A2%BA%E8%AA%8D%20%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CFONT%20color%3D%22%23FF00FF%22%3E%3CFONT%20color%3D%22%23000000%22%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF00FF%22%3E%3CFONT%20color%3D%22%23000000%22%3E%E3%83%8F%E3%82%A4%E3%83%BB%E3%82%B0%E3%82%A8%E3%83%B3%E3%83%BB%E3%83%9B%E3%82%A2%E3%83%B3%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2187938%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20Firmware%20Update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187938%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3CBR%20%2F%3E%3CBR%20%2F%3E%E4%BB%8A%E3%81%AE%E3%81%A8%E3%81%93%E3%82%8D%E3%81%AF%E6%98%8E%E3%82%89%E3%81%8B%E3%81%A7%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%83%8F%E3%82%A4%E3%83%BB%E3%82%B0%E3%82%A8%E3%83%B3%E3%83%BB%E3%83%9B%E3%82%A2%E3%83%B3%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2187709%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%20Firmware%20Update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187709%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F247218%22%20target%3D%22_blank%22%3E%40HaiHoangSoftware%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E4%B8%80%E8%88%AC%E7%9A%84%E3%81%AB%E3%80%81%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E9%96%93%E3%81%A7%E3%81%AF%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E4%B8%AD%E3%81%AE%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%20(RWW)%20%E3%81%8C%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82SO%E3%80%81%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%8C%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%BE%E3%81%9F%E3%81%AF%E6%B6%88%E5%8E%BB%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81%E3%81%93%E3%81%AE%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AB%E3%81%AF%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%A7%E3%81%8D%E3%81%9A%E3%80%81%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AF%E5%88%A5%E3%81%AE%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%81%BE%E3%81%9F%E3%81%AF%20RAM%20%E3%81%8B%E3%82%89%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3EMem_43_INFLS%20%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%81%AF%E3%80%81RWW%20%E3%81%AE%E5%95%8F%E9%A1%8C%E3%82%92%E5%9B%9E%E9%81%BF%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%20RAM%20%E3%83%A1%E3%83%A2%E3%83%AA%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%20%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E3%83%AD%E3%83%BC%E3%83%89%E3%81%A7%E3%81%8D%E3%82%8B%E6%A9%9F%E8%83%BD%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E8%A9%B3%E7%B4%B0%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%80%81%E3%80%8C3.6.3%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%20%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB%20RTD_MEM_43_INFLS_UM.pdf%20%E3%81%AE%E3%80%8C%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E4%B8%AD%E3%81%AE%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E3%81%AE%E5%9B%9E%E9%81%BF%E3%80%8D%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%81%93%E3%81%AE%E6%A9%9F%E8%83%BD%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%E3%82%B3%E3%83%BC%E3%83%89%E3%81%8C%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%90%8C%E3%81%98%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%82%92%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%2F%E6%B6%88%E5%8E%BBCAN%E3%80%82%3CBR%20%2F%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E6%93%8D%E4%BD%9C%E4%B8%AD%E3%81%AB%E5%89%B2%E3%82%8A%E8%BE%BC%E3%81%BF%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%97%E3%81%A6%E3%81%8A%E3%81%8D%E3%81%9F%E3%81%84%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E3%81%93%E3%81%AE%E7%8A%B6%E6%B3%81%E3%82%92%E9%81%BF%E3%81%91%E3%82%8B%E6%96%B9%E3%81%8C%E3%82%88%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%80%82%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%8C%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%201%20%E3%81%8B%E3%82%89%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E6%96%B0%E3%81%97%E3%81%84%E3%83%94%E3%83%B3%E3%82%AF%E8%89%B2%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%200%20%E3%81%AB%E3%83%AD%E3%83%BC%E3%83%89%E3%81%99%E3%82%8C%E3%81%B0%E5%95%8F%E9%A1%8C%E3%81%AF%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%83%AB%E3%83%BC%E3%82%AB%E3%82%B9%3C%2FP%3E%3C%2FLINGO-BODY%3E