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

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

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

Jump to solution
518 Views
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.

Labels (1)
0 Kudos
1 Solution
390 Views
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!

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

View solution in original post

0 Kudos
1 Reply
391 Views
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 Kudos