DSPRelated.com
Forums

Problems bootloading 5402 DSP

Started by Unknown October 28, 1999
Hi

I have a small program written in C-code. This program should toggle
the XF
pin. I made this small test program to see if I was able to bootload
something.
I use the McBsp0 16 bit serial boot mode, but so far I have not been
able to
make this program run after the bootloading of the DSP.

The MP/!MC pin on the device is connected to GND to enable the
bootloader
program. We can see that the XF line goes low after reset, so it is
ready to be
bootloaded. The bootloading is done from a microcontroller, and the
clock output from the microcontroller is connected to the BCLKR0 pin.
The frame output from the micro is connected to the BFSR0 pin and the
data output to the BDR0 pin.

The main() function is shown below, and also the linker command file
and the
command file for the HEX500 program. I belive my linker command file is
correct. I do not have any external memory.

I want to have the program and data in the internal DARAM, and if I am
not
wrong the OVLY bit is set on reset if the MP/!MC pin is low.
I also believe my hexconv.cmd command file is correct.

I do not know where the problem could be, if it is my code, the
bootloading
from the microcontroller or the generated boot code which is send to
the DSP. I hope someone can help me with this problem.
----------------------

void main(void)
{
while(1)
{
asm(" SSBX XF");
asm(" RSBX XF");
}
}

----------------------
Linker command file, with memory and section settings:

MEMORY
{
PAGE 1: SPAD: origin=0x0060, length=0x0020 /* Scratch-Pad RAM */
PAGE 0: VECTOR: origin=0x0080, length=0x0074 /* Space for int.
vectors */
PAGE 0: PROGRAM: origin=0x00F4, length=0x1C00 /* Space for program
code */
PAGE 1: PROGDATA: origin=0x1CF5, length=0x1800 /* Space for data */
}

SECTIONS
{
vectors >VECTOR
.text >PROGRAM
.cinit >PROGRAM
.data >PROGDATA
.bss >PROGDATA
.cont >PROGDATA
.stack
>PROGDATA
}

----------------------
Hex500 command file:

Testold.out
-o Testold.s2 /* Output file */
-m /* Ascii format on output file */
-memwidth 16 /* 16 bits memory width */
-romwidth 16 /* 16 bits rom width */
-boot /* Converts all sections to bootable code */
-e 00F4h /* Program starts here */
-bootorg serial /* Bootload from serial port */
----------------------- Best regards
Torgeir Jakobsen
e-mail:
phone: +4755132500
fax: +4755137950