about S32 Design Studio for ARM Version 2.2 add compilation options

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

about S32 Design Studio for ARM Version 2.2 add compilation options

591 次查看
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

标记 (1)
0 项奖励
回复
1 回复

566 次查看
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 项奖励
回复