CodeWarrior10.6.4:How to generate Binary File?

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

CodeWarrior10.6.4:How to generate Binary File?

2,085 Views
maoyuanluo
Contributor III

Dear:

pastedImage_1.png

when I want to generate Binary File, The error message is as follows:
gap.png

How can I fix this error?

Labels (1)
9 Replies

1,813 Views
stanish
NXP Employee
NXP Employee

Hi,

The gap is typically caused by having some data from the binary file located in RAM (0x4000_0000) whereas the rest of the application is placed into FLASH (0x0000_0000).

I'd guess in your case ".exec_vect_vle" section is loacted in RAM right? is it some code running from RAM?

There was very  similar question related to GCC compiler:

https://community.nxp.com/message/1102293?commentID=1102293#comment-1102293 

Hope it helps.

Stan

0 Kudos

1,813 Views
maoyuanluo
Contributor III

Hi:

   when i use the NOLOAD keyword in *.lcf file in CodeWarrior 10.6.4 IDE, it show me the error:

   Snipaste_2019-02-18_09-51-30.png

   and I found the IDE have no NOLOAD keyword in help contents:

   NOLOAD.png

I don't know how to solves it, please help me to fix it. Thank you!

0 Kudos

1,813 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Luo,

What's your chip part number?

Jennie Zhang

0 Kudos

1,813 Views
maoyuanluo
Contributor III

Hi Zhang,

   Chip type is MPC5606B

Thank you!

0 Kudos

1,813 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Maoyuan:  

I would suggest you check your linker file.    especially  .bss and .exec_vect_vle.   check the address is valid ?

From your log, it seems the gap wasn't updated correctly (too much).

Regards

Daniel

0 Kudos

1,813 Views
maoyuanluo
Contributor III

use same lcf file, i can generate mot file, but i can't generate bin file.

I don't know the difference where it is.

0 Kudos

1,813 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Maoyuan:

There is a Motorola S-Record to Binary File Converter,

Motorola S-Record to BINARY File Converter 

A bin file is a binary image, it contains the image byte by byte that can be flashed to any address.

Motorola S-record is a file format, that conveys binary information in ASCII hex text form.

Regards

Daniel

1,813 Views
maoyuanluo
Contributor III

It's very powerful tools!Thanks a lot!

0 Kudos

1,813 Views
danielchen
NXP TechSupport
NXP TechSupport

welcome, happy to know that it works.

Regards

Daniel

0 Kudos