Question for error of merged program writing

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

Question for error of merged program writing

834 Views
young-kyunpark
Contributor II

Hi,

 

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

 

1. compile bootloader with s-records generating option.

2. add "HEXFILE bootloader.sx" line to .prm file of my own application

3. compile my own application. I got an .elf file and .sx file without error.

4. But I got an error when I try to download .elf to target board.

    error message like follows:

------------------

INF: Verifying object file CRC-16 to device ranges ...

INF:    block 00FE0000-00FE1731 ...

INF: Ok.

INF:    block 00FFF600-00FFFB66 ...

INF: Ok.

INF:    block 00FFFC00-00FFFDEC ...

INF: Ok.

INF:    block 00FFFE10-00FFFFFF ...

INF: CRC-16 Error in block. (File = $C087, Device = $C3D7)

ERR: Error verifying flash of device

ERR: Error occured during Flash programming.

------------------

 

The range of memory blocks are correct. I don't know why it didn't work.

 

My target mcu is MC9S12ZVML128 and developing with CodeWarrior 10.6.

 

Anyone to help me?

Labels (1)
0 Kudos
2 Replies

516 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi Young kyun,

first please make sure you have install the latest update for CW10.6. if not, please do it.

update.png

if you already install the updates but still have this problem. we need to reproduce it first. thus please send us your project folder in zip format and your generated .sx to us.

if you don't want to post your project to public, please send it to support@freescale.com. our support team will check it.

thanks!

Best Regards,

Zhang Jun

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

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

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

0 Kudos

516 Views
young-kyunpark
Contributor II

I solved tish problem.

Address of reset vector in each .sx files was conflicted.

So, I have modified it from bootloader.sx file manually before build application.

Thanks anyway.

0 Kudos