Re: Flashing too big??

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]> Wed, 2 Jun 2004 12:38:39 -0500
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <000d01c448c8$711cabe0$764000b4@kardis>
No, 512 is KBytes...the TINI firmware goes in banks 40-46 (the file
tini400.tbin), and the application (slush400.tbin or what you are calling
your 'bootstrap' application) typically fits into bank 47.  The '-flash 40'
argument tells JavaKit that this thing has flash starting at address
400000h.  If JavaKit tries to load to something it thinks is flash, it tries
to erase the 64KB bank first.  JavaKit assumes that you only have 512KB of
flash (i.e. 8 'banks' of 64KB each)

Kris

----- Original Message -----
From: "Barry Demchak" <[email protected]>
To: "Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
Cc: "TINI Mailing List" <tini-6tN4nzCoH/[email protected]>
Sent: Wednesday, June 02, 2004 12:31 PM
Subject: Re: [TINI]Flashing too big??


> Hi, Kris --
>
> Thanks! You have save my lily-white keester! :)
>
> (Our bootstrap code shares a lot of code with the main application, and as
> the main application grows, the bootstrap gets dragged along. I was *not*
> looking forward to separating this code base into two!)
>
> As a point of education, then, I have a question.
>
> It seems like a "bank" would be 64KB ... which is why I would run into
> trouble when my bootstrap exceeded 64KB. (And most "banks" are either 64KB
> or 1MB these days.) I gather that JavaKit's limitation of 512K of flash is
> really 512Kb -> 64KB???   ... and so the -romsize option refers to bits,
> not bytes???
>
> ... just tying up loose ends.
>
> Thank you ... thank you ... thank you ... thank you ... thank you!
>
> :)
>
>
> At 07:45 AM 6/2/2004, Kris Ardis wrote:
> >JavaKit defaults to thinking there is only 512K of flash, so it is not
> >zapping bank 48.  Try starting JavaKit with the command line...
> >
> >   java JavaKit -flash 40 -400 -romsize 1048576
> >
> >Kris
> >
> >----- Original Message -----
> >From: "Barry Demchak" <[email protected]>
> >To: "TINI Mailing List" <tini-6tN4nzCoH/[email protected]>
> >Sent: Tuesday, June 01, 2004 8:31 PM
> >Subject: [TINI]Flashing too big??
> >
> >
> > > Hi, all --
> > >
> > > I'm using JavaKit 2.2.10 to try and flash a new bootstrap. I can flash
> >just
> > > fine if my bootstrap is below 64KB. If it goes over, I get an error
while
> > > downloading the bootstrap. Is there a 64KB limit on flashed
bootstraps? Is
> > > there a way to overcome it?
> > >
> > > The session is below:
> > >
> > > DS80C400 Silicon Software - Copyright (C) 2002 Maxim Integrated
Products
> > > Detailed product information available at http://www.maxim-ic.com
> > >
> > > Welcome to the TINI DS80C400 Auto Boot Loader 1.0.1
> > >
> > >  >
> > > Loading file: G:\Harris\RCED\Bootstrap\TINI\Bootstrap.tbin.
> > > Please wait... (ESC to abort.)
> > > Loading at bank number 48
> > > ERROR! Aborting load.
> > > ERROR Loading file: G:\Harris\RCED\Bootstrap\TINI\Bootstrap.tbin
> > >
> > >
> > >
> > > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > > : Barry Demchak               :
> > > : Torrey Pines Software, Inc. :
> > > : http://www.tpsoft.com/      :
> > > : (858) 452-8700              :
> > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >
> > > _______________________________________________
> > > TINI mailing list
> > > TINI-6tN4nzCoH/[email protected]
> > > To UNSUBSCRIBE, edit your profile, or see list archives:
> > > http://lists.dalsemi.com/mailman/listinfo/tini
> > >
> >
> >
> >_______________________________________________
> >TINI mailing list
> >TINI-6tN4nzCoH/[email protected]
> >To UNSUBSCRIBE, edit your profile, or see list archives:
> >http://lists.dalsemi.com/mailman/listinfo/tini
>
>
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> : Barry Demchak               :
> : Torrey Pines Software, Inc. :
> : http://www.tpsoft.com/      :
> : (858) 452-8700              :
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


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