Other Parts Discussed in Thread: CC3200
Problem:
I am getting the following error on a CC3200 application using TI-RTOS and the HTTP Client Library.
Semaphore: line 207: assertion failure: A_badContext: bad calling context. Must be called from a Task.
This happens when a Semaphore_pend occurs. I know that Semaphore_pend must take place within a Task and not HWI or SWI. So perhaps this is related to the issue. Note: I am not creating the Semaphore_pend, this is being performed by the SimpleLink driver.
My application has a handler which is initiated when I press button, it then established a secure TLS connection, performs a HTTP GET and then a HTTP POST which then sends an SMS message.
Everything works perfectly on the first press, but on the second press of the button I get the crash as described above on the HTTP POST. (I do not believe this has anything to do with the button, as further tests that remove this do not change the result)
Additional Details:
Versions being used:
CC3200 SDK v1.1
TI-RTOS SimpleLink v2.13.01.09
XDC Tools v3.31.01.33
I have tried both the MIN and the FULL version of the HTTP Client Library, they get the same issue.
I did need to make a change to the the httpcli.c and increase the size of all configurable lengths.
Questions:
What could be the cause? What do I need to keep an eye on?
Has there been a recent test of the HTTP Client Library using HTTP POST, TLS 1.2 and TI-RTOS. where more than one HTTP POST is sent?
Thanks!
Glenn.