Hi,
as I'm having some difficulties with TASKS (in a separate question), I've had a look at Hwi & Swi.
I've managed to add code (based on BIOS docs), and this compiles OK. However, at the point where the Hwi or Swi is CREATEd, I get a run-time error:
{module#35}: line 505: error {id:0x10000, args:[0x1aca0, 0x1aca4]}
xdc.runtime.Error.raise: terminating execution
> Is there something else that I still need to add to the code for this to work? My code is based on the oob_demo, which I don't think uses Hwi or Swi.
I'd like to try using a Swi to do the "less important" processing in an ISR ... which seems to be what they're for, according to the video tutorial. I'd like to see how this does, as oppose to the ISR setting a flag, which a separate TASK then monitors, to run the other code.
On Hwi: the BIOS docs talk about "attaching" a Hwi to an actual system hard-ware interrupt (3.4.1). Alternatively, I could "SOC_registerSysIntListener" a routine to run the ISR (as I have done, and works OK). Any reasons I should use one method or the other? Just for completeness, I've been using this with the CHIRPAVAIL interrupt.
many thanks
Alan Milne