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

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

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

1,208 次查看
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 回复

976 次查看
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 项奖励
回复