Relocatable code?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,302件の閲覧回数
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,035件の閲覧回数
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,036件の閲覧回数
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,035件の閲覧回数
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 件の賞賛
返信