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.
I have RTOS project for DSP c66
I want to configure interrupt to use sys_nirq1.
Code I used:
HwiP_Params_init(&hwip_params); hwip_params.priority = 0x20; hwip_handle = HwiP_create(IrqId, (HwiP_Fxn)&IrqFunction, &hwip_params); HwiP_enableInterrupt(IrqId);
Hi Ilya,
I am currently involving the appropriate expert on this thread. In the meantime, could you take a look at these related E2E threads?:
AM5728: IRQ_USER0 interrupt in C66x DSP - Processors forum - Processors - TI E2E support forums
Thank you,
Fabiana Jaimes
Hi Ilya,
Can you please confirm that the pinmuxing is proper? By default it the pin is not muxed to sys_nirq.
Regards,
Parth
In addition to Parth's comment, please note that by sys_nirq1 signal is connected to IRQ_CROSSBAR_2 which is then routed to DSP1_IRQ_33 by default in CTRL_CORE_DSP1_IRQ_32_33 register.
DSP1_IRQ_33 is then connected to EVT33 inside DSP_INTC.
DSP INTC has an interrupt mux to select interrupt from EVTs to a specific DSP CPU interrupt number, which is the interrupt number you pass into HWI API.
HwiP is OSAL API which is mapped to HWI in SYSBIOS. You should refer to SYSBIOS HWI API to understand the parameters used.
If you prefer, you can use HWI API directly from SYSBIOS, instead of calling HwiP from OSAL.