This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm6437 - HOW to use DSPINT to trigger my ISR using HWI in DSP/BIOS



HI~

I  have configured a HWI trigger by DSPINT from FPGA.But it didn't work.

in my main()

i opened my INT5 by this codes:

#include <c64.h>
// ...
C64_enableIER(C64_EINT5);
// ...

and i have configured my HWI_INT5 as:

bios.HWI.instance("HWI_INT5").fxn = prog.extern("T1HIsr");

bios.HWI.instance("HWI_INT5").interruptSelectNumber = 47;
bios.HWI.instance("HWI_INT5").useDispatcher = 1;

but the FPGA change DSPINT to enabled.my ISR didn't work.the corresponding bit in IFR was 0.and the GIE bit is enabled ,the corresponding bit in IER is enabled.

i don't know why.Is there anything i forgot to configure?

 

P.S;in my ISR,there is one LOG_printf()

  • To debug this, have you verified that the FPGA is actually getting to write to DSPINT through the HPI? You don't mention that but it may be worth checking the HPIC register from the DM6437 side to ensure that the DSPINT bit was actually set by the FPGA and than trace through the interrupt signal path from there.

    Having a LOG_printf within the ISR should be fine.

  • Bernie Thompson said:

    To debug this, have you verified that the FPGA is actually getting to write to DSPINT through the HPI? You don't mention that but it may be worth checking the HPIC register from the DM6437 side to ensure that the DSPINT bit was actually set by the FPGA and than trace through the interrupt signal path from there.

    Having a LOG_printf within the ISR should be fine.

    Thank you for replying~~

    But I have checked DSPINT bit in HPIC register from the 6437 side . It's status is enabled.Is that mean the FPGA side really send the interrupt signal?

    But my ISR is still not work...