Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

RTOS/OMAP-L137: Non-dispatched interrupt service routine keeps being called for no reason

$
0
0

Part Number:OMAP-L137

Tool/software:TI-RTOS

Hi all,

I am trying to setup a non-dispatched interrupt for the USB0 controller of an OMAP-L137 in the SYS/BIOS cfg file (I am hoping to improve USB performances by avoiding the latency due to the Hwi dispatcher).

If I define the interrupt in the Hwi module as follows, it works properly:

var ti_sysbios_family_arm_da830_Hwi3Params = new ti_sysbios_family_arm_da830_Hwi.Params();
ti_sysbios_family_arm_da830_Hwi3Params.instance.name = "USB0_INT";
Program.global.USB0_INT = ti_sysbios_family_arm_da830_Hwi.create(58, "&USB0DeviceIntHandler", ti_sysbios_family_arm_da830_Hwi3Params);

But when I define a non-dispatched interrupt as follows, my USB0DeviceIntHandler ISR keeps being called repeatedly even though there is no interrupt pending (the INTSRCR  register of the USB controller is 0):

ti_sysbios_family_arm_da830_Hwi.nonDispatchedInterrupts["USB0_INT"] = new ti_sysbios_family_arm_da830_Hwi.NonDispatchedInterrupt();
ti_sysbios_family_arm_da830_Hwi.nonDispatchedInterrupts["USB0_INT"].intNum = 58;
ti_sysbios_family_arm_da830_Hwi.nonDispatchedInterrupts["USB0_INT"].fxn = "&USB0DeviceIntHandler";
ti_sysbios_family_arm_da830_Hwi.nonDispatchedInterrupts["USB0_INT"].priority = 31;
ti_sysbios_family_arm_da830_Hwi.nonDispatchedInterrupts["USB0_INT"].enableInt = true;

Any idea of what is wrong?

Thanks in advance.

Olivier


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>