DSPRelated.com
Forums

C5402 Bootloader

Started by Jean Viljoen August 27, 2002
Dear Group

I am doing a hardware design with a TMS320VC5402. The processor needs to load
the program from flash memory on my board. I do not understand from what
address in memory the bootloader starts to load the program. I see from the
documentation that it reads a word from IO address 0FFFFh and that will specify
the start address of the program residing in flash. But how do I setup this IO
input on the hardware? This design of mine will be a standalone audio processor
that needs to load the program from flash to on-chip program memory space,
before the execution starts.

Rgds

Jean Viljoen
Development Engineer

Azoteq (Pty) Ltd
Tel: +27 21 863 0033
Fax: +27 21 863 1512



Jean

See the following (All available on the TI site)

SPRA618A
SPRA723F
SPRA773
SPRA774

The documents covers this question in reasonable detail. You might want to
think about booting from the HPI as this is, I believe, easier to handle.

Jerry.

----- Original Message -----
From: "Jean Viljoen" <>
To: "'C54x DSP Discussion Group'" <>
Sent: Tuesday, August 27, 2002 8:53 AM
Subject: [c54x] C5402 Bootloader > Dear Group
>
> I am doing a hardware design with a TMS320VC5402. The processor needs to
load the program from flash memory on my board. I do not understand from
what address in memory the bootloader starts to load the program. I see
from the documentation that it reads a word from IO address 0FFFFh and that
will specify the start address of the program residing in flash. But how do
I setup this IO input on the hardware? This design of mine will be a
standalone audio processor that needs to load the program from flash to
on-chip program memory space, before the execution starts.
>
> Rgds
>
> Jean Viljoen
> Development Engineer
>
> Azoteq (Pty) Ltd
> Tel: +27 21 863 0033
> Fax: +27 21 863 1512 >
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author
of this message will receive your answer. You need to do a "reply all" if
you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ >



--- In c54x@y..., Jean Viljoen <jean.viljoen@a...> wrote:
> Dear Group
>
> I am doing a hardware design with a TMS320VC5402. The processor
needs to load the program from flash memory on my board. I do not
understand from what address in memory the bootloader starts to load
the program. I see from the documentation that it reads a word from
IO address 0FFFFh and that will specify the start address of the
program residing in flash. But how do I setup this IO input on the
hardware? This design of mine will be a standalone audio processor
that needs to load the program from flash to on-chip program memory
space, before the execution starts. To be more precise, the '5402 bootloader will read I/O address 0FFFFh,
see if it points to a valid boottable in -data- space; if not, read
-data- address 0FFFFh and see if it points to a valid boottable in
-data- space. If your hardware isn't decoding I/O space, you can just
use data space. Your design should store a boottable directly in your
flash, and let the bootloader unpack it directly to program space, as
opposed to going through an extra step. I wrote a message here a few
weeks with source code for doing this on the DSK, which should be
adaptable to your hardware.