Re: Storing multiple apps in Flash

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]> Mon, 21 Jun 2004 11:26:20 -0500
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
marc-F8lsx2r+rRhWk0Htik3J/[email protected] wrote:
> I build the first bootstrap application and generate a .tbin file with the
> -l -t 470100 parameters, so that it will run on bootup.
> 
> I build the second application and generate a .tbin file but this time is
> use the -l -t 524288 (80000 hex) parameters.  I load both files using
> JavaKit using the -400 -flash 40 parameters. I'm using the DS80C400 module
> with the 1.12 firmware.

The -t parameter takes hexadecimal addresses only.  Flash runs from 
0x400000 to 0x4F0000, and tini_400 and slush_400 are loaded into 
0x400000 through 0x47FFFF.  You can put your application at 0x480000 by 
using -t 0x480000 on your command line.

> second app using the RuntimeClass. I don't get that far because I
> always get an IllegalAddress exception when I read the memory (even if I
> try to read a couple of bytes). Ironically I did accidentally get it to
> successfully read once from adress 0x800000 when I typed it in by
> accident.

Any memory in the range 0x000000 through 0x3F0000 is not accessible from 
Java as it is used by TINIOS as heap.  You probably want to access your 
application where the flash is (0x400000 through 0x4F0000).


-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]

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