Hello
I am using K22, 1M flash microcontroller
MQX 4.2
I am getting a strange error.
I am sending data on SPI bus. I need to send it 84 packets (2 byte each), one after another, without delay.
Everytime after 10-100 loops, my task is getting hanged. After debugging MQX tad, it says LWSEM_BLOCKED.
If I give 5 ms delay in between SPI calls then it is working good.
My task is MQX_TIME_SLICE_TASK.
I am using SPI0 port. no other task is using SPI0.
1 other task is using SPI 1. I tried blocking that task but no impact.
each of the 84 time, I send use instruction
numberOfBytesSent_pwm = fwrite (Data_toSend_PWM, 1, 2, SPI0_FD);
