I started to use MQX 4.0.2 with CW10.2 on K60 device. I noticed a significant delay on socket connection - either TCP or UDP.
EX:
in TFTP_read:
sock = TFTP_WAIT(time_left);
TFTP_read is called after issuing RTCS_load_TFTP_BIN() in my program.
The call above sometimes stops for very long time (time_left is 4999). Then continue with new time_left (10000).
This did not happen on MQX 4.0.0
I wonder what is the root cause. I know there are some HW timer related changes in MQX 4.0.2. Are they tested and worked fine?
it seems I have add a _time_delay(1). This will force a sched_yield. Is there something changed related to scheduler?
_time_delay(1);
sock = TFTP_WAIT(time_left);
Now I added _time_delay(1) everywhere before I call RTCS_selectset(). The TCP/UDP connection back to normal - as in MQX 4.0.0