How does S32K3 Automatic address translation work?

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

How does S32K3 Automatic address translation work?

1,309 Views
jackey267
Contributor II

hi team: 

1) How does S32K3 Automatic address translation work? 

2) how does the S32K3  A/B swap work in details ? 

thanks 

0 Kudos
Reply
3 Replies

1,284 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

In case of S32K3, there's support in HSE firmware. You can download HSE FW and HSE demo app, HSE OTADEMO including documentation from:

https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-STDSW-D

https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-REFSW-D

HSE Reference Manual is then provided under NDA on docstore.nxp.com

In short: if AB swap is enabled, the flash is divided to two parts - active and passive block. The active block is always the lower one, passive higher one. New application is loaded to passive block. Once it is done, swapping is requested. After next reset, passive block becomes active block. The advantage is that no position independent code is needed because active block is still at the same location.

Regards,

Lukas

0 Kudos
Reply

1,273 Views
jackey267
Contributor II

hi  Lukas:

thank you for you sincerely reply.

1 Does the base address of the two Pflash  has been changed  to keep   "The active block is always the lower one, passive higher one"  as you said? 

2 Or the image contents of Pflash A   has been totally copied into  Pflash B  as you mentioned  "Once it is done, swapping is requested" ?  in another words, a data copy and move will be happened at there ? 

thanks 

0 Kudos
Reply

1,249 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Jack,

it's not copied, the addresses are translated by HW.

Regards

Lukas

0 Kudos
Reply