Hi,
I'm just starting with development on TI-RTOS, and I tried to follow Introduction workshop, but I have some problem with semaphores, when I use semaphore_pend in my code it just loops there and don't allow any Hwi, or any other events to occur. Here's my code:
main.c
When i comment line: 64 and 65 and uncomment line: 73 It works as it should, but when i try to use semaphores it just loops in while(1)
program.cfg
I tried with both Hwi, using m3 i typed:
var hwi0Params = new M3Hwi.Params();
hwi0Params.instance.name = "hwi0";
Program.global.hwi0 = M3Hwi.create(35, "&hwi_start", hwi0Params);
And follow up question, if i use M3Hwi should i disable "var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');" ? Because it mess up my XDCtools view and sometimes i can't see custom M3 config, i tried to use only m3 and it seems to work. What are advantage of using m3 hwi?
Best regards