Forums

Booting DSP563xx over SCI port

Started by ukkiwikid October 22, 2003
Hi,

I am new to programming this device and am trying to fathom the
booting over the SCI port. I have 2 targets, one is a 56303EVM
module and the other is our own 56311 target platform. The SCI ports
on both are connected via RS232 to the outside world. I understand
that there might be a utility floating around to enable the
downloading of code to the targets is this true?

Also the manual specifies that I must download a bootloader first
that will then download the application. The only bootloader I can
find is the one printed as a pdf in the manual and this does not seem
to asssemble. Any tips or pointers to an actual bootloader?

The manual also specifies that the first 2 words must be the length
and starting address of the code being downloaded. Is there a
utility that takes either a cld or srec file and can create the
required format file (binary I presume)?

I know this is a lot of questions and I am sorry if I sound ignorant,
but that is how I feel at the moment.

So to Summarise

Is there a utility for downloading code over the the serial port of a
PC?

Where can I find bootloader code for the DSP?

How can I convert either the srec, cld or whatever format files to
the needed format for downloading?

Thanks, Scott.



Moin Scott,

All DSP563XX derivates have a ROM bootcode that usually executes after
reset, and depending on the configuration fetches code from SCI, host
Interface, 8-bit wide memory, starts executing code from external
memory or whatever. The configuration is usually determined by the MODA/
MODB/MODC pins, this is very well documented in the specific datasheet
and in the source code for the bootloader.

BTW, documentation is the only reason the source code for the bootloader
is provided, it is already inside the ROM of the DSP, so trying to assemble
and download it is quite useless.

If you are not sure if the proper booting method is selected, you should
reset and single-step you target and compare execution with the provided
bootloader code.

> The manual also specifies that the first 2 words must be the length
> and starting address of the code being downloaded. Is there a
> utility that takes either a cld or srec file and can create the
> required format file (binary I presume)?

Not quite, I did a lot of utilities that convert .lod files to binaries,
but these include initialized data for P: X: Y: L: mem, which the built-in
bootloader cannot handle, so first thing I do is to download my own bootloader
which does exactly this. Tell me if you want any of these.

Stefan



Thanks Stefan,
I have just noticed that the RS232 input on the DSP303EVM should
enable me to boot over the SCI port, however it appears as if the
sclk goes to pin 7 of the serial connector. Is hyperterminal running
under Windows 2000 capable of generating the 16x clock required to
load the data?

If not can somebody point me in the direction of a tool that would.

Cheers,

Scott.

--- In , Stefan Stenzel <Stefan@S...>
wrote:
> Moin Scott,
>
> All DSP563XX derivates have a ROM bootcode that usually executes
after
> reset, and depending on the configuration fetches code from SCI,
host
> Interface, 8-bit wide memory, starts executing code from external
> memory or whatever. The configuration is usually determined by the
MODA/
> MODB/MODC pins, this is very well documented in the specific
datasheet
> and in the source code for the bootloader.
>
> BTW, documentation is the only reason the source code for the
bootloader
> is provided, it is already inside the ROM of the DSP, so trying to
assemble
> and download it is quite useless.
>
> If you are not sure if the proper booting method is selected, you
should
> reset and single-step you target and compare execution with the
provided
> bootloader code.
>
> > The manual also specifies that the first 2 words must be the
length
> > and starting address of the code being downloaded. Is there a
> > utility that takes either a cld or srec file and can create the
> > required format file (binary I presume)?
>
> Not quite, I did a lot of utilities that convert .lod files to
binaries,
> but these include initialized data for P: X: Y: L: mem, which the
built-in
> bootloader cannot handle, so first thing I do is to download my own
bootloader
> which does exactly this. Tell me if you want any of these.
>
> Stefan