DSPRelated.com
Forums

Problems at download C programs

Started by Bernd Pfaff June 28, 2002
Hi,

I am accessing a 21065L via the host port and want to download a program.
I wrote my own boot loader (because of several problems) that sets up SYSCON,
enables global interrupt, enables interrupt IRQ1, disables the interrupt of
the DMA1 (EP1I, the DMA channel I use to download the whole data) and goes
into an idle state with the program counter set to the address 0x8004.
For the download I set all the necessary IOP registers IIEP1, IMEP1, CEP1 and
DMAC1 via the host port.

When I download a program written in assembler the download succeeds and with
asserting IRQ1 the program runs.

The problem occurs when I try to download a program written in C. When I
assert IRQ1 after the download, the program doesn't start.
Are there any prerequesites necessary to make the C runtime environment
running the processor e.g. setting several registers?

Thanks in advance !

Bernd



On Fri, 2002-06-28 at 09:18, Bernd Pfaff wrote:

> The problem occurs when I try to download a program written in C. When I
> assert IRQ1 after the download, the program doesn't start.

How do you know it doesn't start? Does it start to run the C runtime's
startup code? Where does it get hung up?

With VDSP and an ICE, disable "run to main" in preferences so you can
walk through the startup code.