EmbeddedRelated.com
Forums

Hex File generation

Started by Unknown December 14, 2002
Hi!

since i'm quite new to the msp430 i have some questions:

What kind of hex format does the msp430f149 use for programming the device,
and how do i generate this hexfile with a) IAR compiler and b) AQ430
Compiler (both demo versions)

what i would like to do is to generate a hex file at the computer and then
send it to the msp430 via Usart to a special memory segment form where it
can be executed, without using any programmer or any other hardware exept
the Serial connection

tnx for comments and help in advance
yours martin



Beginning Microcontrollers with the MSP430

Hi,

AQ430 allows you to save the executable file in 3 different formats:
1)Intel Hex
2)TI TXT
3)General ASCII format that you can modify to suit your purpose
If you have a FET tool, you can easily generate the 3 formats by 
building your project once and burning it to the chip, then using the 
BUILD menu options to save in any of the 3 formats. (These options 
are grayed if the project is not loaded).
However, if you don't want to, or can't program your project once to 
a chip, you can still save in TI TXT format by:
1) in options/project/target options tab, checking the "always save 
in TI TXT format" box
2) using the build/don't load menu option to build your project: the 
project will be built but not loaded, and the TI TXT file will always 
be created.

Michel

--- In msp430@msp4..., Ladstter Martin <ladii@g...>
wrote:
> Hi!
> 
> since i'm quite new to the msp430 i have some questions:
> 
> What kind of hex format does the msp430f149 use for programming the 
device,
> and how do i generate this hexfile with a) IAR
compiler and b) AQ430
> Compiler (both demo versions)
> 
> what i would like to do is to generate a hex file at the computer 
and then
> send it to the msp430 via Usart to a special
memory segment form 
where it
> can be executed, without using any programmer or
any other hardware 
exept
> the Serial connection
> 
> tnx for comments and help in advance
> yours martin


Tnx for the answer!
just a few more questions so i get this thing right:

is it right that i am able to programm a totally erased msp430f149 by using
the TI txt file i generated also i i dont have the source code anymore?
if yes is this the standard format teh msp430 uses to get programmed (i mean
is this the code that is written to the flashmemory and then executed by the
cpu)?

what i want to do is to write a allready compilated file (in the format the
flsah uses) directly to the memory

tnx for help
yours martin



----- Original Message -----
From: michelqv <michel@mich...>
To: msp430@msp4...
Sent: Saturday, December 14, 2002 3:52 PM
Subject: [msp430] Re: Hex File generation


Hi,

AQ430 allows you to save the executable file in 3 different formats:
1)Intel Hex
2)TI TXT
3)General ASCII format that you can modify to suit your purpose
If you have a FET tool, you can easily generate the 3 formats by
building your project once and burning it to the chip, then using the
BUILD menu options to save in any of the 3 formats. (These options
are grayed if the project is not loaded).
However, if you don't want to, or can't program your project once to
a chip, you can still save in TI TXT format by:
1) in options/project/target options tab, checking the "always save
in TI TXT format" box
2) using the build/don't load menu option to build your project: the
project will be built but not loaded, and the TI TXT file will always
be created.

Michel

--- In msp430@msp4..., Ladstter Martin <ladii@g...>
wrote:
> Hi!
>
> since i'm quite new to the msp430 i have some questions:
>
> What kind of hex format does the msp430f149 use for programming the
device,
> and how do i generate this hexfile with a) IAR
compiler and b) AQ430
> Compiler (both demo versions)
>
> what i would like to do is to generate a hex file at the computer
and then
> send it to the msp430 via Usart to a special
memory segment form
where it
> can be executed, without using any programmer or
any other hardware
exept
> the Serial connection
>
> tnx for comments and help in advance
> yours martin


.







Just curious, would you use the bootstrap ROM or some custom trick using
your 
system's serial comm and a kernel relocated to RAM?

Bruce
> Tnx for the answer!
> just a few more questions so i get this thing right:
> 
> is it right that i am able to programm a totally erased msp430f149 by using
> the TI txt file i generated also i i dont have the source code anymore?
> if yes is this the standard format teh msp430 uses to get programmed (i
mean
> is this the code that is written to the flashmemory and then executed by
the
> cpu)?
> 
> what i want to do is to write a allready compilated file (in the format the
> flsah uses) directly to the memory
> 
> tnx for help
> yours martin
> 
> 
> 
> ----- Original Message -----
> From: michelqv <michel@mich...>
> To: msp430@msp4...
> Sent: Saturday, December 14, 2002 3:52 PM
> Subject: [msp430] Re: Hex File generation
> 
> 
> Hi,
> 
> AQ430 allows you to save the executable file in 3 different formats:
> 1)Intel Hex
> 2)TI TXT
> 3)General ASCII format that you can modify to suit your purpose
> If you have a FET tool, you can easily generate the 3 formats by
> building your project once and burning it to the chip, then using the
> BUILD menu options to save in any of the 3 formats. (These options
> are grayed if the project is not loaded).
> However, if you don't want to, or can't program your project once
to
> a chip, you can still save in TI TXT format by:
> 1) in options/project/target options tab, checking the "always save
> in TI TXT format" box
> 2) using the build/don't load menu option to build your project: the
> project will be built but not loaded, and the TI TXT file will always
> be created.
> 
> Michel
> 
> --- In msp430@msp4..., Ladstter Martin <ladii@g...>
> wrote:
> > Hi!
> >
> > since i'm quite new to the msp430 i have some questions:
> >
> > What kind of hex format does the msp430f149 use for programming the
> device,
> > and how do i generate this hexfile with a) IAR compiler and b) AQ430
> > Compiler (both demo versions)
> >
> > what i would like to do is to generate a hex file at the computer
> and then
> > send it to the msp430 via Usart to a special memory segment form
> where it
> > can be executed, without using any programmer or any other hardware
> exept
> > the Serial connection
> >
> > tnx for comments and help in advance
> > yours martin
> 
> 
> .
> 
> 
> 
> ">http://docs.yahoo.com/info/terms/ 
> 
> 

There is no great mystery to the TI TXT format. It is an ASCII file 
containing statements like:
@F000
meaning, "now the starting address on the chip is 0xF000"
followed by Hex data like:
B2 40 20 02 60 01 A2 D2 60 01 B2 F0 F7 FF 26 02
B2 F0 EF FF 26 02 82 43 62 01 A2 D2 62 01 E2 D3
...
These data are the actual data that go into the chip.

terminated by a 
q

You are correct in saying that you don't need the source code any 
more, once you have the TXT file. You can program chip after chip 
just using it. 

--- In msp430@msp4..., Ladstter Martin <ladii@g...> wrote:
> Tnx for the answer!
> just a few more questions so i get this thing right:
> 
> is it right that i am able to programm a totally erased msp430f149 
by using
> the TI txt file i generated also i i dont have the
source code 
anymore?
> if yes is this the standard format teh msp430 uses
to get 
programmed (i mean
> is this the code that is written to the
flashmemory and then 
executed by the
> cpu)?
> 
> what i want to do is to write a allready compilated file (in the 
format the
> flsah uses) directly to the memory
> 
> tnx for help
> yours martin
> 
> 
> 
> ----- Original Message -----
> From: michelqv <michel@q...>
> To: msp430@msp4...
> Sent: Saturday, December 14, 2002 3:52 PM
> Subject: [msp430] Re: Hex File generation
> 
> 
> Hi,
> 
> AQ430 allows you to save the executable file in 3 different formats:
> 1)Intel Hex
> 2)TI TXT
> 3)General ASCII format that you can modify to suit your purpose
> If you have a FET tool, you can easily generate the 3 formats by
> building your project once and burning it to the chip, then using 
the
> BUILD menu options to save in any of the 3
formats. (These options
> are grayed if the project is not loaded).
> However, if you don't want to, or can't program your project once
to
> a chip, you can still save in TI TXT format by:
> 1) in options/project/target options tab, checking the "always save
> in TI TXT format" box
> 2) using the build/don't load menu option to build your project: the
> project will be built but not loaded, and the TI TXT file will 
always
> be created.
> 
> Michel
> 
> --- In msp430@msp4..., Ladstter Martin <ladii@g...>
> wrote:
> > Hi!
> >
> > since i'm quite new to the msp430 i have some questions:
> >
> > What kind of hex format does the msp430f149 use for programming 
the
> device,
> > and how do i generate this hexfile with a) IAR compiler and b) 
AQ430
> > Compiler (both demo versions)
> >
> > what i would like to do is to generate a hex file at the computer
> and then
> > send it to the msp430 via Usart to a special memory segment form
> where it
> > can be executed, without using any programmer or any other 
hardware
> exept
> > the Serial connection
> >
> > tnx for comments and help in advance
> > yours martin
> 
> 
> .
> 
> 
> 
> 


Hi Michel!

That was exactly the information i was looking for 
Tnx for your coments and the fast help

Yours martin

----- Original Message ----- 
From: <michel@mich...>
To: <msp430@msp4...>
Sent: Saturday, December 14, 2002 6:33 PM
Subject: [msp430] Re: Hex File generation


There is no great mystery to the TI TXT format. It is an ASCII file 
containing statements like:
@F000
meaning, "now the starting address on the chip is 0xF000"
followed by Hex data like:
B2 40 20 02 60 01 A2 D2 60 01 B2 F0 F7 FF 26 02
B2 F0 EF FF 26 02 82 43 62 01 A2 D2 62 01 E2 D3
...
These data are the actual data that go into the chip.

terminated by a 
q

You are correct in saying that you don't need the source code any 
more, once you have the TXT file. You can program chip after chip 
just using it. 




Forgot to mention one thing. A customer of ours asked us to add a 
special mode to AQ430, by which you can automatically launch a user-
defined executable after the project is successfully built, instead 
of burning the project to the chip. He uses this feature to burn 
programs using the boot loader (instead of the JTAG interface), after 
AQ430 creates the TI TXT file during project building.

Michel

--- In msp430@msp4..., Ladstter Martin <ladii@g...> wrote:
> Hi Michel!
> 
> That was exactly the information i was looking for 
> Tnx for your coments and the fast help
> 
> Yours martin
> 
> ----- Original Message ----- 
> From: <michel@q...>
> To: <msp430@msp4...>
> Sent: Saturday, December 14, 2002 6:33 PM
> Subject: [msp430] Re: Hex File generation
> 
> 
> There is no great mystery to the TI TXT format. It is an ASCII file 
> containing statements like:
> @F000
> meaning, "now the starting address on the chip is 0xF000"
> followed by Hex data like:
> B2 40 20 02 60 01 A2 D2 60 01 B2 F0 F7 FF 26 02
> B2 F0 EF FF 26 02 82 43 62 01 A2 D2 62 01 E2 D3
> ...
> These data are the actual data that go into the chip.
> 
> terminated by a 
> q
> 
> You are correct in saying that you don't need the source code any 
> more, once you have the TXT file. You can program chip after chip 
> just using it.