Hi!
I am exploring SYS/BIOS on CC2538. I've got some help in an earlier post from Mark Grosen where he sent me an example project for CCS which got me up and running.
Now I'm trying to configure a HWI in runtime. So I am basically configuring a button as input and calling
Hwi_create(16, lightLED, NULL, NULL);
Where 16 is the vector number for GPIO port A (I'm using the CC2538 together with the SmartRF06EB where the select button is placed on GPIO port A). When compiling and pushing the button, console shows
[Cortex_M3_0] 206c44 LR(R14) = 0x0020519f
R7 = 0x00000000 PC(R15) = 0x00204750
PSR = 0x21000000
ICSR = 0x0400f810
MMFSR = 0x00
BFSR = 0x00
UFSR = 0x0000
HFSR = 0x00000000
DFSR = 0x00000000
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
Under the Exception tab in ROV's Hwi section, i see
Exception core 0
Decoded: Undefined Hwi: 16
And a record in the LoggerBuffer says
ERROR: "(unknown file)", line 1120: E_noIsr: id = 16, pc = 00204750
The E_noIsr is an "Error raised when an uninitialized interrupt occurs" which does not give me anything...
If I configure the HWI statically in my .cfg, It works like a charm:
Program.global.hwi0 = M3Hwi.create(16, "&lightLED");
But this is not what i want to do. Does anybody see what's wrong?
Best regards,
Anders