How to flash program with .sx file by codewarrior 10.6?

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

How to flash program with .sx file by codewarrior 10.6?

1,211件の閲覧回数
young-kyunpark
Contributor II

I'm trying to merge bootloader and my own application.

 

I have got a merged .sx file and .elf file by adding "HEXFILE bootloader.sx" to .prm file.

 

actually, I got some error message when I try to download with merged elf file.

 

I think HEXFILE directive just merging line by line.

 

application's sx file is ended by reset vector address 0x00FE0000 at 0xFFFFFD with other vectors

 

and bootloader's sx file is ended by reset vector address 0x00FFF6E0 at 0xFFFFFD in a new single line

 

but, merged sx file has both lines.

 

So, I want to try to download after modifying those lines in manually.

 

but, I don't know how to program .sx file to p-flash in codewarrior.

 

My target MCU is MC9S12ZVML128.

 

anyone can help me?

ラベル(1)
0 件の賞賛
返信
1 返信

979件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Young-kyun Park,

your application and bootloader's vector table may have conflict .

please refer an2295 for how to allocate vectors.

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf

Best Regards,

Zhang Jun

==============================================================

this answer is for you. if it helps, please click on "Correct Answer" button. thanks!

0 件の賞賛
返信