Relocatable code?

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

Relocatable code?

跳至解决方案
1,508 次查看
bonzo
NXP Employee
NXP Employee

Is it possible to generate relocatable DSC code using CW10.6 with Processor Expert?  Also need to relocate the vector tables.

If so, how?

 

Processor is MC56F84763 and uses a bootloader.

 

Thanks,

Brad

Darren Hintze

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

Hello Bradley

Yes, user can relocate the vector table. With Processor Expert,  you can modify the address for .p_Interrupts secion in CPU component:

vector.png

However, there are two tips that need to pay attention to:

1)  Please reserve 0x00_0000 for program entry because after power-on reset, the device must boot from program flash at 0x00_0000.  So 0x00_0000~0x00_0003 should reserved for hardware reset and cop reset.

2)  Please set the Vector Base Address Register (INTC_VBA) to the new interrupt vector address in start-up code.

Best Regards

Fiona Kuang

TIC - Technical Information Center

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

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

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

在原帖中查看解决方案

2 回复数
1,242 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Bradley

Yes, user can relocate the vector table. With Processor Expert,  you can modify the address for .p_Interrupts secion in CPU component:

vector.png

However, there are two tips that need to pay attention to:

1)  Please reserve 0x00_0000 for program entry because after power-on reset, the device must boot from program flash at 0x00_0000.  So 0x00_0000~0x00_0003 should reserved for hardware reset and cop reset.

2)  Please set the Vector Base Address Register (INTC_VBA) to the new interrupt vector address in start-up code.

Best Regards

Fiona Kuang

TIC - Technical Information Center

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

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

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

1,241 次查看
federicogori
Contributor I

Hello I have a similar problem. I have to program ( bootloader and blinking LED). The to programs are located in different part of memory, and I have 2 different vector table ( the bootloader vector table start from 0x000000, and the "LED" vector table from 0x00000F0). After dowloading the blinking led program, bootloader jump to the main function of LED application, but the LED doesn't blink, like the interrupt generating from the timer can't be handle.

Can you explain how to set the INC_VBA ? 

Can you give me the right steps to jump from bootloader to the blinking led with  changing  the interrupt vector?

Thank you soo much!

Best regards

Federico 

0 项奖励
回复