pic for flash S32DS (S32k144)

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

pic for flash S32DS (S32k144)

1,160 Views
s_verhoek
Contributor II

Hello everyone,

In the following example (EXAMPLE S32K144 Position Independent Code) an example of how to generate position independent code for the s32k144 was posted. The example is supposed to be built for RAM and I am able to run it on the EVB and see the coloured led. I have been trying to modify the example for a flash project but with little success thusfar. I have modified the linker file (see attachment) to include the .got section and debug configuration (see picture below). The code builds and uploads but no blinking led appears (it seems to crash on something but due to the way it is uploaded (using the .bin) I can't see on what). Can anyone point me to how I can modify the example to make it work for flash or an example built for flash?

Debug_configuration_PIC_flash.PNG

Kind regards,

Sebastiaan 

Labels (1)
Tags (3)
0 Kudos
2 Replies

833 Views
mikedoidge
NXP Employee
NXP Employee

@s_verhoek,

There is a new blog on mcuoneclipse.com which covers this topic in great detail: 

Position-Independent Code With GCC for arm Cortex M 

0 Kudos

978 Views
mikedoidge
NXP Employee
NXP Employee

Hello s.verhoek@spike.global‌,

Our apologies for the delay in response. Somehow this question was missed.

We are now looking into this issue and hope to provide an update for you very soon.

Best Regards,

Mike

0 Kudos