Position Independent Code for s32k144

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

Position Independent Code for s32k144

855 Views
stark21
Contributor II

I have been working on the firmware upgrade process for the S32K144 microcontroller. The memory architecture includes a bootloader and two applications, App1 and App2.

Here is what I have done so far:

  • App1 is mapped to start at 0x11000 and App2 starts at 0x42000 in the linker file.
  • I have successfully created individual HEX files for both applications, and they download and jump to their respective addresses (0x11000 for App1 and 0x42000 for App2).

Now I wanted to have position independent code. Could please share the detail documentation and steps to follow in the case of S32DS?

I have reviewed below article but the information provide is limited.

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/EXAMPLE-S32K144-Position-Independent-C....

Tags (1)
0 Kudos
Reply
3 Replies

630 Views
stark21
Contributor II

Hi,

Thanks for sharing the information.

The information you have shared is somewhat general and not specific for S32DS and it is surprising that no one from NXP support has tried this PIC feature or have detailed document to use with S32DS.

 

Tags (2)
0 Kudos
Reply

810 Views
stark21
Contributor II

Hello team,

Are there any inputs?

Tags (1)
0 Kudos
Reply

801 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

PIC has very limited usage on Embedded System without OS. You can find more details here - https://mcuoneclipse.com/2021/06/05/position-independent-code-with-gcc-for-arm-cortex-m/#more-28612 

0 Kudos
Reply