Alan DeMars posted RE: Sysbios Hwi in BIOS forum.
Mark,
Please open a new Forum thread for this issue.
Having said that, I suspect that the problem you're having is that you're application is being interrupted to death because ALL or SEVERAL of the interrupts you created are enabled and pending.
Just prior to calling the user's ISR, the interrupt dispatcher re-enables global interrupts.
If another interrupt is pending, it will be serviced immediately, preventing the ISR code from being arrived at.
On the way to servicing the pre-empting interrupt, the dispatcher will again re-enable global interrupts just before calling the ISR code. etc, etc...
By default, when interrupts are created, they are also enabled.
The Hwi parameter that controls whether an interrupt is automatically enabled when created is 'enableInt' and it is true by default.
If you want only ONE of your CAN interrupts enabled when created, set this parameter to 'false' in your config script for all Hwi's except the one you're interested in.
Alan
Hi Alan
When I try my code I transmit 1 packet to the 28335 only so I should get just one ISR. I also comment out the call to
PWMInit() ; /// this enables pwm interrupts
when I run my code just to be safe I will remove all the HWI's I have in the GUI and leave only the CAN RX mailbox and rerun the example
I dont think its being overidden by IRQS as setting a bkpt in any ISR I never get there