bootloader mc9s12xeg128

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

bootloader mc9s12xeg128

ソリューションへジャンプ
2,278件の閲覧回数
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,100件の閲覧回数
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,214件の閲覧回数
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,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 件の賞賛
返信
2,073件の閲覧回数
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,275件の閲覧回数
javadshabani
Contributor I
I have read the documents required for bootloader, but I have trouble setting it up

 

0 件の賞賛
返信