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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

728 Views
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?

Labels (1)
0 Kudos
1 Reply

496 Views
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 Kudos