This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请教一个WIFI发送阻塞的问题

Other Parts Discussed in Thread: CC3200

CC3200建立一个发送任务,在发送任务中调用sl_send()一次发送1024个8位数据,简化程序如下:

while(1)

{

//测试用

if(flag==1)  flag=0;

else            flag=1;

set_out(flag);

if(data_0k==1)

{

sl_send();

data_ok=0;

}

}

data_ok每600us有效一次,这个验证过没问题

通过示波器测量发现:
测试信号反转有时正常有时不正常,有时20ms不反转一次!!!!!!如果在WIFI发送任务中屏蔽sl_send(),则信号反转正常,

所以应该是WIFI发送有问题阻塞了!导致sl_send阻塞几十ms的原因可能是什么?有什么好的解决办法吗?