I've never gone through university, so please don't trust this
compleatly(or even all that much).

A ram loader would be quite simple to make, realy... the main question on
how to go about making one is will it ever reprogram itself.
If it will, you have to write an extra bit to copy the code to ram, and
execute from there.

Now, the code to work with the flash is all the mspgcc includes(though i
haven't accually tried using them myself), so that should make the job
easier... then it's pretty simple to just load from your memory device,
and write to the flash(after erasing the block)...

Myself, i would make it always copy it's code to ram, since then there
isn't as much chance of mistakes. I'ld also write a block to copy back the
loader code into flash if it finds that area blank. But that is just my
method.

the layout in the memory device should be well thought out and layed
out... hopefully all the code for talking with the memory, and the full
loader, will fit in your devices ram... if it doesn't, one option is to
have your loader in two places in flash while programming... but then you
have to keep both clear of your accual code...

I don't have any examples of code that does all this, but i have asked TI
if they'ld give me their source for the BSL... there is a link on their
site for it, but the tech guy i talked to sayed he couldn't get into it at
the time... If you need it, you can contact them as well to get it, or
maybe the link will be up(though i didn't find it while searching).

hope this helps a bit
   Matthew

On Wed, 10 Sep 2003 nobo...@web.de wrote:

> Hi,
>
> i have to code a ramloader, i. e. function in ram for updating the flash, 
> which has to load the new flash
> content only via RxD and TxD from an UART.
> I also have to code a bootloader which can update the flash above itself from 
> a storage card (MMC/SDC,
> connected via SPI to an UART). Therefore, and because at university i´ve 
> never heard details about coding
> such code, i´m looking for examples but TI has no examples.
>
> Can someone post links to examples or send me some examples?
>
> Regards
>
> Rolf F.
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>


Reply via email to