cancel
Showing results for 
Search instead for 
Did you mean: 

HEX file using Cosmic compiler

itamar_nsu
Associate II
Posted on August 26, 2003 at 09:41

HEX file using Cosmic compiler

8 REPLIES 8
itamar_nsu
Associate II
Posted on August 25, 2003 at 19:27

Hi,

I would like to make an HEX file out of my program, so i would be able to burn it using the inDart's DataBlaze programmer. My app is fully writen in C-Cosmic, and i'm using the inDart enviorment.

Does anyone knows how to do it?

Thanks.

[ This message was edited by: Itamar on 25-08-2003 22:57 ]
parveen
Associate II
Posted on August 26, 2003 at 07:06

Hi

I hope you are able to generate .st7 or some other temporary file using compiler and linker.

Cosmic compiler has 2 executables for conversion

cvdwarf.exe and chex.exe

1. Now generate x.elf using

cvdwarf x.st7

2.and using x.elf generate x.s19 ny calling

chex x.elf

Append these two steps in your makefile

Hope this helps

Regards,

PraveenG
itamar_nsu
Associate II
Posted on August 26, 2003 at 07:11

Thanks,

I have generated those 2 files, but the DataBlaze needs a *.hex file... what do i do in order to produce it?

itamar
simonharrison9
Associate II
Posted on August 26, 2003 at 07:19

Hi,

You need to change the format of the file to Motorola S19.

on the Load File to Code Buffer Screen, change the format from the default Intel-Hex to Motorola S-Rec

regards,

Simon
itamar_nsu
Associate II
Posted on August 26, 2003 at 07:45

hi,

I'm using the inDart enviroment.. not the CXST7.. so i dont have the format screen.. is there any flag i can cjhange in my Link file?

thanks
sjo
Associate II
Posted on August 26, 2003 at 09:17

Use chex as above but with the following options.

chex -fi file.st7

this will generate a intel hex file or

chex -fm file.st7 will generate a s19 file (default).

this needs to be added to your makefile or build batch file.

Hope this helps

SJO

nciot
Associate II
Posted on August 26, 2003 at 09:23

Hi Itamar,

Remember that DataBlaze accepts .hex, .s19 and .bin files.

Therefore if you have generated a .s19, as PraveenG suggested you, you can load it.

Cheers,

Nicola

itamar_nsu
Associate II
Posted on August 26, 2003 at 09:41

Thanks u All

Have a nice day

Itamar