Re: Flash memory again - sorry!

Thomas Chenot <tom.chenot-6tN4nzCoH/[email protected]> Wed, 16 Jun 2004 09:38:16 -0500
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Andy Page wrote:

>Hi all,
>
>I don't want to push this too much but I really need to get some data into
>flash...
>
>Rather than using java directly, is it possible to use javakit to upload
>files as binary data into flash?  It would seem like it could but I'm having
>trouble making it work.  Is there an upper limit to the bank/address
>possible?  I am using a TStik so the upper 1MB (banks 50 to 5F) should be
>available.  I tried creating a simple hex file as follows:
>
>:0300000002337A4E
>
>:00000001FF
>
>As far as I can tell, this is the correct Intel HEX file format for 3 data
>bytes (02, 33, 7A).
>
>I run the bootloader by running javakit (javakit -400 -flash 40), choose
>bank 55 (B55) (available on TStik) and then load the hex file using the drop
>down menu.  This reports back 'Load Complete'.  Then I do a dump of the
>first 255 bytes of this bank using D 0 FF but the flash is all FF's.  What
>am I doing wrong?  I tried this on bank 49 as well but this didn't seem to
>work either.
>
>  
>
You need extended linear addressing information in the hex file in order 
to load into bank 55h.

This would look like:

:020000040055A5
:0300000002337A4E
:00000001FF

you would also have to specify -flash 50 and use the -ROMSize 1048576  
with javakit to load the banks specified above.

>Thanks for any help,
>
>Andy Page,
>
>Unipower Europe Limited
>U.K.
>  
>

-- 
Thomas Chenot

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini