hi,
i am trying to get an external interrupt work without DSP/BIOS on an 6711 dsp.
i think i did it everything to get it work, but still something seems to be missing.
- i added the linker command file configuration:
MEMORY { ...
VECS: org= Oh, len = 0x220
...}
SECTIONS { ...
vectors :> VECS
...}
- created the vectors.asm file
.ref _myFunc
.ref _c_int00
.sect "vectors"
RESET_RST:
mvkl .S2 _c_int00, B0
mvkh .S2 _c_int00, B0
B .S2 B0
NOP
NOP
NOP
NOP
NOP
...
INT7: b _myFunc
NOP
NOP
NOP
NOP
NOP
NOP
NOP
...
- in main, i setup the interrupt config:
ISTP = 0x...; //update the ISTP register to the start of "VECS" section
IRQ_resetAll();
IRQ_enable(EXT_INT_7);
IRQ_nmiEnable();
IRQ_globalEnable();
When i try the same configuration with DSP/BIOS version of the project it works fine. But i have to make it without DSP/BIOS. Also when i update the IFR register manually i can make the interrupt work. This means the vector table is configured correct. Seems to be i need to to do some more adjustments to get it work. Can someone help me with the problem please ?
thanks,
Gokhan.