about S32 Design Studio for ARM Version 2.2 add compilation options

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

about S32 Design Studio for ARM Version 2.2 add compilation options

562 Views
Kevin-Roman
Contributor II

Hello everyone:

    I need some professional advice for S32K148-Pin100.

    When I developed the chip software.I need to  do the function of AB Swap,I know the 148 chip is not supported,so I want to achieve this function through software.

    But my colleague told me S32 Design Studio for ARM Version 2.2 I could have added compilation options that fit AB Swap,but he forgot where to add them,So I want to ask you how to add this compilation option.

   Looking forward to your reply

   Kevin

0 Kudos
Reply
1 Reply

537 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

first of all, notice that we provide this application note including software example:

https://www.nxp.com/docs/en/application-note/AN12323.pdf

https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip

S32K1xx does not support remapping. There are two options for A/B swap: either compile the code as position independent or track the application images and place them to correct flash area.

Notice that S32 Design Studio supports only Position Independent Code (PIC) which can be used for small sections of code. But Position Independent Executable (PIE) is not supported – it’s not possible to create whole project as position independent. AN12323 mentions that IAR compiler can do that.

This has been already solved on S32K3 devices – HW support was added for this.

Regards,

Lukas

 

0 Kudos
Reply