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
|