Other Parts Discussed in Thread: SYSCONFIG
Hello
I am using the cc3220sf on a custom board with a MCU device. The cc3220sf(in further text wifi device) is running a http server based on the one in the portable example with TIRtos. The Mcu and wifi device are connected through UART.
Due to the board being wifi certified with sdk 5,20 we are using that sdk.
The problem is the following:
I connect and open a page from the wifi device. The server returns the page and all the scripts and images needed to open it. After loading the js it automatically sends a request for the WIFI device and the MCU device to enter uart communication. Aproximately 1 in 10 or 20 times, this request fails. If this happens, all the requests that go through the http server fail. We can get files and images,
I can reload the page, but mq_receive in the httpServerThread never triggers.
Once this bug happens, looking at the object view there are 5 threads. Idle task is running and never stops,.httpServerThread us blocked on Task_sleep(2), which i can not find anywhere in the code.
Uart TX thread is blocked waiting on an event which is as intended. The Uart RX task is blocked on "Unknown"(?), which it should be blocked waiting for an interrupt(blocking call of UART2_read from driver) on uart rx but the unknown part may be suspicious. The sl_Task is blocked on a semaphore. I can not find the TI Rtos implementation of the sl_Task source code anywhere, could you give me information where to find it in the sdk?
All the tasks remain blocked indefinetly, and we can not figure out why. Without giving away too many details as im not sure what im allowed to share, the Uart tx thread will not trigger without receiving data from httpServerThread. The uart RX thread will not trigger without the MCU receiving data from the Wifi device. All requests toward the http server are relatively small in size and happen automatically and sequentially on load, one after another. As far as we can see, the very first request never triggers the mq_receive, but due to the sporadic and unpredictable nature of the bug its hard to confirm this.
Refreshing the page reloads it, but httpServer requests still never go through. the only way to bring it out of this bugged state is to power it off and back on.
All HW initialization was done using sysconfig GUI from Code composer 12.
All in all it seems to me like i have a breakdown of communication between the network processor and the M4 on the cc3220SF, but have been unable to figure out the reason( for more than 2 weeks now). Its obvious im missing some crucial infomration to fix it.
Please advise