Re: Flashing too big??

Barry Demchak <[email protected]> Wed, 02 Jun 2004 12:37:46 -0700
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Aha ... OK, that does it.

Thanks for your help!

At 12:08 PM 6/2/2004, Kris Ardis wrote:
> > How does the low level TINI bootstrap know that it should be loading banks
> > 47 *and* 48 instead of just 47 ... or 47-4F? Is there a descriptor record
> > somewhere that says how much to load? (I assume that the descriptor would
> > contain a byte count, not a bank count, and that however many bytes are
> > actually valid is however many bytes it actually loads.)
>
>The TBIN file format contains this
>information...ftp://ftp.dalsemi.com/pub/tini/ds80c400/c_libraries/tbinformat
>.html
>
>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:54 PM
>Subject: Re: [TINI]Flashing too big??
>
>
> > Aha ... that clears up lots of questions.
> >
> > But it raises one, too ... So my bootstrap is apparently getting loaded
> > into banks 47 and 48. Fine. And that apparently leaves banks 49-4F unused.
> >
> > How does the low level TINI bootstrap know that it should be loading banks
> > 47 *and* 48 instead of just 47 ... or 47-4F? Is there a descriptor record
> > somewhere that says how much to load? (I assume that the descriptor would
> > contain a byte count, not a bank count, and that however many bytes are
> > actually valid is however many bytes it actually loads.)
> >
> > ... just tying up loose ends ... not planning any weird tricks.
> >
> > At 10:38 AM 6/2/2004, Kris Ardis wrote:
> > >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              :
> > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> >
> > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > : Barry Demchak               :
> > : Torrey Pines Software, Inc. :
> > : http://www.tpsoft.com/      :
> > : (858) 452-8700              :
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


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