S32K344 Basic SecureBoot Example Flash write TAG failed

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

S32K344 Basic SecureBoot Example Flash write TAG failed

312 Views
PaulHu
Contributor II

I am running Basic_SecureBoot example on S32K388 EVB which is located in S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Secure_Boot\S32K344_Basic_SecureBoot

It failed at Flash_write() step with status = 0x2c100, "Write the generated TAG to the end of the application in FLASHWrite the generated TAG to the end of the application in FLASH".

I have run HSE_FW_INSTALL -> CQC_DEMO (Program ADKP) -> PEmicro Authentication.

What else should I do to enable Flash_write()?

Tags (1)
0 Kudos
Reply
1 Reply

293 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @PaulHu 

If you run this code with no changes on S32K388, it won't work because the flash layout is different.
You can find in the code:

lukaszadrapa_0-1758106090587.png

On S32K344, first sector in block 1 is going to be programmed because S32K344_SecureBootBlinky is forced to this block:

lukaszadrapa_1-1758106113118.pnglukaszadrapa_2-1758106119993.png


But there are 2MB blocks on S32K388, so it's different here:

lukaszadrapa_3-1758106137009.png

It's still block 0, so you need to unlock different block and sector. 

And one more thing - be aware that read-while-write (RWW) is supported only between blocks. When block 0 is being programmed, the code must run from another flash block or from RAM. 

Regards,

Lukas

 

 

0 Kudos
Reply