DIAB generate binary

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

DIAB generate binary

Jump to solution
1,564 Views
Ekaitz
Contributor II

Hello,

I'm usig the diab compiler and I can't generate the binary of my program. Someone knows how I can generate the binary?

Thanks

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,530 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

I took the tool name from google, it looks that correct tool is  ddump.exe. The correct argument is probably ddump.exe -R my.elf my.srec - but I have no chance check or test it. 

 

Jiri 

View solution in original post

0 Kudos
5 Replies
1,560 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

you mean generate an .elf file or from existing .elf file generate .bin file? Is there some error message in build console? 

 

Jiri 

0 Kudos
1,556 Views
Ekaitz
Contributor II

Hello,

I want to generate .bin or .hex or .mot from the .elf.

At the begining is compile correctly.

Ekaitz_0-1614600429735.png

But it apeared two errors in the problems window.

Ekaitz_1-1614600489687.png

 

0 Kudos
1,551 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

unfortunately I don't have installed DIAB on my machine, but with DIAB toolchain it should be similar. Right click on project name -> Properties -> Settings and choose Cross Settings: 

jiri_kral_0-1614601165243.png

 

Then press Apply button. You will see new section -Flash Image  in settings: 

jiri_kral_1-1614601281683.png

 

If there is no such option - you may add a post build step with command:

mb-objcopy -O srec your_elf_file.elf your_srec_file.srec

 

jiri_kral_2-1614601412250.png

 

Jiri 

 

 

 

 

 

0 Kudos
1,550 Views
Ekaitz
Contributor II

Thanks, but the configuration window is different from the GNU configuration window.

Ekaitz_0-1614601695187.png

I have also tried the command you say and it gives me an error.

Ekaitz_1-1614601740392.png

 

 

0 Kudos
1,531 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

I took the tool name from google, it looks that correct tool is  ddump.exe. The correct argument is probably ddump.exe -R my.elf my.srec - but I have no chance check or test it. 

 

Jiri 

0 Kudos