Reply by Brian C. Lane November 19, 20042004-11-19
bsd_mike wrote:

>
> Ok, I believe I have programming the flash down.
> I am happy with that. I can load a simple program, have
> the reset vector hit it, and it is off and running.
>
> One more thing I am confused about. I am using a boot.asm
> file from TI, v3.10. It does have some code for the
> copy of pre-initialized variables into ram.
>
> The current last thing I am confused about is, how do I
> know where to put that data into flash? I get two
> ascii files out of hex500. One with data..one with code.
> The code will end up in flash...The data will have to end
> up there too...but the data will need to get copied out
> into ram sometime...
>
> Thanks a lot to everybody for their help, sorry for
> all the stupid questions.
> -Mike

What does the .cmd file look like? In all of my projects I have combined
the data and program into a single file (usually a motorola hex S29
formatted file).

/* This is the command file for the hex500 utility.
It converts the COFF output file from the compiler to Motorola
Hex that can be read by the SEAFLASH program.
*/
.\ais_v200.out
-m2
-romwidth 16
-map hex500.map

ROMS
{
PAGE 1:
ROM:
origin=0x0000, length=0xFFFFFF
files = {.\ais_v200.hex}
} Brian

--
-----------------
Brian C. Lane (W7BCL) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design


Reply by bsd_mike November 19, 20042004-11-19

Ok, I believe I have programming the flash down.
I am happy with that. I can load a simple program, have
the reset vector hit it, and it is off and running.

One more thing I am confused about. I am using a boot.asm
file from TI, v3.10. It does have some code for the
copy of pre-initialized variables into ram.

The current last thing I am confused about is, how do I
know where to put that data into flash? I get two
ascii files out of hex500. One with data..one with code.
The code will end up in flash...The data will have to end
up there too...but the data will need to get copied out
into ram sometime...

Thanks a lot to everybody for their help, sorry for
all the stupid questions.
-Mike