How can I generate position independent code for an MPC5607B (VLE code) with CodeWarrior V10.6.4?

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

How can I generate position independent code for an MPC5607B (VLE code) with CodeWarrior V10.6.4?

跳至解决方案
1,083 次查看
stephanmorgenst
Contributor I

I am currently working on a bootloader software for an MPC5607B which exclusively uses VLE code (virtual length encoding). My problem is that CodeWarrior V10.6.4 does not support code model "SDA based PIC/PID Addressing" for MPC5607B because it uses VLE code. Is there any other way that I can generate position independent code? Any help appreciated.

标签 (1)
0 项奖励
回复
1 解答
955 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Stephan

I don't think there is any special compiler/linker setting to link the project executing with position independent code/data. 

I recommend to put bootloader image and the user application image into different sectors in the internal flash. 

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
956 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Stephan

I don't think there is any special compiler/linker setting to link the project executing with position independent code/data. 

I recommend to put bootloader image and the user application image into different sectors in the internal flash. 

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复