EmbeddedRelated.com
Forums

Hex-conversion Utility

Started by hema...@gmail.com July 3, 2008
Hi friends,
I am working with F2812 processor and I want to generate .hex file by hex-conversion utility for flash programming. I generated .hex successfully by using command line option.
But I want to generate .hex file by using "command file" option i.e for example "hex2000 hexutil.cmd". I followed the steps given in the datasheet Assembly Language Tools for C28x processors but unsuccessful. Can anybody give me suggestion to generate .hex file through "command file" option. If it is possible, can you send me an example project so that I can better understand. Please reply as soon as possible.
Thank You.


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
for us, here is our example :

(this part is in a cmd file, call with hex2000 MyFile.cmd)

-------------- FILESTART --------------------

-m
./Obj/Exe/DIGIT1_DwnUps.out
-romwidth 16
ROMS
{
EPROM2: org = 0x100000, len = 0x008000, files = {
./Obj/Exe/Digit1Ext_Dwn.s }
EPROM1: org = 0x3D8000, len = 0x01C000, files = {
./Obj/Exe/Digit1Int_Appli.s }
}
-------------- FILEEND --------------------

Hope this will help !

Veuillez rondre h...@gmail.com
Envoypar : c...
Pour : c...
cc :

Objet : [c28x] Hex-conversion Utility

Hi friends,
I am working with F2812 processor and I want to generate .hex
file by hex-conversion utility for flash programming. I generated .hex
successfully by using command line option.
But I want to generate .hex file by using "command file" option
i.e for example "hex2000 hexutil.cmd". I followed the steps given in the
datasheet Assembly Language Tools for C28x processors but unsuccessful.
Can anybody give me suggestion to generate .hex file through "command
file" option. If it is possible, can you send me an example project so
that I can better understand. Please reply as soon as possible.
Thank You.


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
i have defined the command file like this..
------------------------
example_BIOS_flash.out
-b
-image
-memwidth 8

ROMS
{
FLASH: org = 0x7B0000, len = 0x40000, romwidth = 8, files {example_BIOS_flash.bin}
}
---------------------------
this one i have used for the project available in spra958g (search
for this on google). i never used that binary file though. it seems
it generated correctly.
for my case i have used the switch -b, instead you can use other
options.

--- In c..., hemanth.betha@... wrote:
>
> Hi friends,
> I am working with F2812 processor and I want to
generate .hex file by hex-conversion utility for flash programming. I
generated .hex successfully by using command line option.
> But I want to generate .hex file by using "command file"
option i.e for example "hex2000 hexutil.cmd". I followed the steps
given in the datasheet Assembly Language Tools for C28x processors
but unsuccessful. Can anybody give me suggestion to generate .hex
file through "command file" option. If it is possible, can you send
me an example project so that I can better understand. Please reply
as soon as possible.
> Thank You.
>


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
Thank you bhaskar and SALMETOZ.
I tried with the code as you given. But it is giving error like
".\Debug\test.out, No such file or directory". I don't know why it
is showing this error even if I am giving the path for that output file.

I am giving my code here:
.\Debug\test.out (test.out is located in Debug folder of the project).
-i
-o test.hex
-memwidth 16
ROMS
{
FLASH: org = 0x7B0000, len = 0x40000, romwidth = 16, files {.\Debug\test.bin}
}
At this point, can you guyz clarify one more thing to me: from
where should I invoke hex2000 test.cmd. Is this the same as how we
are invoking from command line like "hex2000 -romwidth 16 -memwidht 16 -i
-o .\Debug\test.hex .\Debug\test.out" in final build options or is it
different.

For flash programming with C2oooProg, I need to have an Intel hex file
with memwidth 16 and romwidth 16.
Can give me an example project with this format.
Thank you.

On Fri, Jul 4, 2008 at 5:37 PM, Bhaskar Reddy N
wrote:

> i have defined the command file like this..
> ------------------------
> example_BIOS_flash.out
> -b
> -image
> -memwidth 8
>
> ROMS
> {
> FLASH: org = 0x7B0000, len = 0x40000, romwidth = 8, files > {example_BIOS_flash.bin}
> }
> ---------------------------
> this one i have used for the project available in spra958g (search
> for this on google). i never used that binary file though. it seems
> it generated correctly.
> for my case i have used the switch -b, instead you can use other
> options.
>
> --- In c... , hemanth.betha@...
> wrote:
> >
> > Hi friends,
> > I am working with F2812 processor and I want to
> generate .hex file by hex-conversion utility for flash programming. I
> generated .hex successfully by using command line option.
> > But I want to generate .hex file by using "command file"
> option i.e for example "hex2000 hexutil.cmd". I followed the steps
> given in the datasheet Assembly Language Tools for C28x processors
> but unsuccessful. Can anybody give me suggestion to generate .hex
> file through "command file" option. If it is possible, can you send
> me an example project so that I can better understand. Please reply
> as soon as possible.
> > Thank You.
>
its easy if you have everything in Debug folder. Place, the .cmd file
that you would like to use, place the hex2000 and anyhow .out file is
already there in that folder.
Execution of "hex2000 123.cmd" can be done either manually by going
to Debug folder in cmd prompt or you can add it to your "Final build
steps" in General tab of Project>>Build Options menu, this step will
be executed autmaticall with each compile.

--- In c..., "Bhaskar Reddy N"
wrote:
>
> i have defined the command file like this..
> ------------------------
> example_BIOS_flash.out
> -b
> -image
> -memwidth 8
>
> ROMS
> {
> FLASH: org = 0x7B0000, len = 0x40000, romwidth = 8, files > {example_BIOS_flash.bin}
> }
> ---------------------------
> this one i have used for the project available in spra958g (search
> for this on google). i never used that binary file though. it
seems
> it generated correctly.
> for my case i have used the switch -b, instead you can use other
> options.
>
> --- In c..., hemanth.betha@ wrote:
> >
> > Hi friends,
> > I am working with F2812 processor and I want to
> generate .hex file by hex-conversion utility for flash programming.
I
> generated .hex successfully by using command line option.
> > But I want to generate .hex file by using "command
file"
> option i.e for example "hex2000 hexutil.cmd". I followed the steps
> given in the datasheet Assembly Language Tools for C28x processors
> but unsuccessful. Can anybody give me suggestion to generate .hex
> file through "command file" option. If it is possible, can you send
> me an example project so that I can better understand. Please reply
> as soon as possible.
> > Thank You.
>

OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x