CC3000 nvmem_set_mac_address()可以,但nvmem_get_mac_address( );不行
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.
CC3000 nvmem_set_mac_address()可以,但nvmem_get_mac_address( );不行
你好,后来我找到原因了。
我是用的STM8S单片机,SPI通信没问题,IRQ有问题,STM8S丢失了IRQ下降沿中断,导致进入了hci_event_handler( ) 的while(1){}死循环,但此时IRQ引脚为低电平。后来我修改了程序,在hci_event_handler的while(1)中判断IRQ是否为低电平,如果为低电平,就证明IRQ已产生下降沿中断,单片机丢了,然后触发SPI接收中断。
然后一般的操作能正常进行,后来用recvefrom( )函数接收UDP数据包时又出问题了,要是在一分钟内收不到数据,recvefrom( )函数就会返回 -57,以后再也收不到数据了。配置成阻塞和非阻塞都有这个问题,这个问题还没解决。
你的recvfrom()是怎么调用的?你的RECV_TIMEOUT设置的是多久?