S32K312 Can we download the same app to any address using bootloader?

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

S32K312 Can we download the same app to any address using bootloader?

677 Views
Reyna_pan45
Contributor II

Hi all

I now need to implement the ability to download the app to any address in the flash section. Therefore, I modified the address of Pflash in the linker file and selected 'Position Independent Code' to generate different bin files, but the generated bin files are still different.
So, can I achieve this function through such operation?
Or can you tell me any way to achieve such a function?
Thank you.
Labels (1)
Tags (1)
0 Kudos
5 Replies

665 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Reyna_pan45 

I found an article about PIC on embedded systems. Check it, I think you may find it helpful.

Position-Independent Code with GCC for ARM Cortex-M

Also, the following link is an example code for S32K1 devices that could help as a reference. 

EXAMPLE S32K144 Position Independent Code

 

B.R.

VaneB

 

0 Kudos

577 Views
Reyna_pan45
Contributor II
Hi @VaneB 
 
I see the  example code for S32K1 devices. but  there are significant differences in the startup file section between K3x and K1x
Is there a example code for the S32K3?
I suggest  to plan to add this example code for S32K3  as soon as possible, so that users can reduce the cost of entry.
 
 
Best regards
 
Pan
0 Kudos

552 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Reyna_pan45 

The only available information of the Position Independent Code for the S32K3 devices is the following:

How to create flash driver for S32K3xx as independent position code

0 Kudos

423 Views
Reyna_pan45
Contributor II

hi @VaneB 

    Has NXP updated the routine on this issue,or have any plan to do it?

Tags (1)
0 Kudos

412 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Reyna_pan45 

At this moment, there is no information about this topic. 

Sorry for the inconvenience. 

0 Kudos