bootloader mc9s12xeg128

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

bootloader mc9s12xeg128

跳至解决方案
2,279 次查看
javadshabani
Contributor I

hello every one

i am working on mc9s12xeg128MAL (or mc9s12xet256mal) for writing a bootloader. i am download the AN4258SW and use Bootloader_S12X example, but it seems this code is hanging.

i have multilink universal fx for debuging.

标记 (1)
0 项奖励
回复
1 解答
2,101 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Javad,

I can see in the code that you commented out function CopyCodeToRAM(). However, the interrupt handlers are placed to RAM, so this won't work. Interrupt is triggered but there's no valid handler in this case.

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,215 次查看
javadshabani
Contributor I

i am used the AN4258SW  sample code but When the interrupt is activated and the interrupt occurs, the program hangs.

i am send serial data when interrupt disabled, after send 0x55 two time, interrupt enabled and program hangs.

 

 

0 项奖励
回复
2,102 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Javad,

I can see in the code that you commented out function CopyCodeToRAM(). However, the interrupt handlers are placed to RAM, so this won't work. Interrupt is triggered but there's no valid handler in this case.

Regards,

Lukas

0 项奖励
回复
2,074 次查看
javadshabani
Contributor I

thanks

I created the interrupt vector table with processor export and was able to set up the serial port.

I also did not need to create a code in the RAM section and replaced the following phrase

// # pragma CODE_SEG RAM_CODE

#pragma CODE_SEG NON_BANKED

0 项奖励
回复
2,276 次查看
javadshabani
Contributor I
I have read the documents required for bootloader, but I have trouble setting it up

 

0 项奖励
回复