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

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

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

2,345 次查看
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.
标签 (1)
标记 (1)
0 项奖励
回复
5 回复数

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

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

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

2,091 次查看
Reyna_pan45
Contributor II

hi @VaneB 

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

标记 (1)
0 项奖励
回复

2,080 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Reyna_pan45 

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

Sorry for the inconvenience. 

0 项奖励
回复