大家好,
我尝试在WWD文件夹中发送CANENDY发送示例,用于从CYW954 907AEVA1F发送UDP数据到PC。在调试模式(WWD.CANEDDS-NEON-NOS-CYW954 907AEVA1F调试下载)中,程序没有错误地编译。然而,在终端上,它只显示了这一点:
平台cyw954907aeval1f初始化
WICED vwiced_006.001.000.0040出发
我跟踪了代码,并意识到程序在WWDYCLM.C中以以下方式停止:
check_ioctl_buffer(iov_data);
函数WSDJSDPCMGETGE
tiOVALIORM缓冲区在此之前返回空一行。
进入函数中,InnalHythHooBuffRyGET返回NULL,因为请求的大小大于MyLaluBuffReMax大小。
因此,我改变了主密钥中的PKTH缓冲区大小,WSDDSDPCMMGETYIOVALIL缓冲工程
然而,另一个问题出现了,程序在WWDDSSDPCMysEnthiIOCTL中循环,好像在执行时不能从WiFi芯片接收SEM。
wwd_thread_poll_all();所以程序停在这里永远。
有人知道原因,请帮助我吗?
以上来自于百度翻译
以下为原文
Hello everyone,
I'm trying
canned_send example in
wwd folder for sending UDP data from CYW954907AEVAL1F to the PC. In the debug mode (wwd.canned_send-NoOS-NoNS-CYW954907AEVAL1F-debug download), the program is compiled without errors. However, on the terminal it only shows this:
Platform CYW954907AEVAL1F initialised
Starting Wiced vWiced_006.001.000.0040
I traced down the code and realized that the program stops at
wwd_clm.c in the following line:
CHECK_IOCTL_BUFFER( iov_data );
as function
wwd_sdpcm_get_iovar_buffer returns
Null one line before this.
step into the function ,
internal_host_buffer_get returns a NULL, because the size requested is larger than
internal_buffer_max_size
so i change the
pkt_buffer size in main , the
wwd_sdpcm_get_iovar_buffer works
however another problem appears, the program loops in wwd_sdpcm_send_ioctl ,it seems like it can not receive a sem from wifi chip when execute
wwd_thread_poll_all( ); so the program stop here forever.
so anybody knows the reason, please assist me with this?