--- In , "nadhje" <nadhje@y...> wrote: > The only doubt i have now is how to say to the HPI
address register
> whether the data i'm going to write goes to the PROGRAM pages or
the
> DATA pages.
The HPI presents a flat address space - just ignore program vs. data.
You should find that they don't overlap. If they do overlap,
you've got other problems :)
Reply by Les Newell●August 11, 20042004-08-11
Hi David,
My experience is with the 5402 but I would have thought they are pretty
similar.
There is an output that has to be connected to an input to boot in HPI
mode. I can't remember the exact pins, the data is at work and I am at
home.
Reset the dsp
Release reset on the dsp.
With the two pins connected the DSP now runs a bootloder from it's
internal ROM.
Write to memory - OVLY is 1 at this time so program memory = data memory.
Write the program start address to the boot vector. Th DSP should now boot.
HTH,
Les
nadhje wrote: > Hello everyone.
>
> I've decided to build my own HPI bootloader for the C5410 and i
found
> some problems concerning the addressing.
>
> In order to boot the code I have to write the program in the DSP
> memory during the reset. I used the DSK coff extractor of the DSK5402
> to format the .out file.
>
> So, i've read the TI docs and i've writen a program analog to the
hpi-
> boot of the C5402 DPSK.
>
> That is:
>
> RESET THE DSP
> WRITE PROGRAM MEMORY
> WRITE DATA MEMORY
> STOP RESET
>
> The only doubt i have now is how to say to the HPI address register
> whether the data i'm going to write goes to the PROGRAM pages or
the
> DATA pages.
>
> I know that you have to write the address into the HPIA but my
> question is: Which address?
>
> Does anybody know how to translate a data/program address into a HPI
> address?
>
> David.
>
Reply by nadhje●August 11, 20042004-08-11
Hello everyone.
I've decided to build my own HPI bootloader for the C5410 and i found
some problems concerning the addressing.
In order to boot the code I have to write the program in the DSP
memory during the reset. I used the DSK coff extractor of the DSK5402
to format the .out file.
So, i've read the TI docs and i've writen a program analog to the
hpi-
boot of the C5402 DPSK.
That is:
RESET THE DSP
WRITE PROGRAM MEMORY
WRITE DATA MEMORY
STOP RESET
The only doubt i have now is how to say to the HPI address register
whether the data i'm going to write goes to the PROGRAM pages or the
DATA pages.
I know that you have to write the address into the HPIA but my
question is: Which address?
Does anybody know how to translate a data/program address into a HPI
address?