完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我设计了一个使用WiC1500作为WiFi模块的电路板。我已经编写了与SMT32 F4XX接口需要的BSP和BUS包装器功能。相当多的工作似乎是在启用调试打印之后,我看到芯片ID被正确读取。然而,“ChIPApAPyy-CONF”函数永远不会返回。这是由WaiTaFuxBooTrm调用的。调试这个,我看到它在下面的代码中循环:它循环,因为Val32的值是0x102,而从芯片读取的值(Reg)是0x182。我似乎找不到寄存器描述来解决正在发生的事情。任何人都有一个链接来描述这个数据表,或者知道什么是失败的。非常感谢,Sid。
以上来自于百度翻译 以下为原文 I am designing a board that uses the WINC1500 as the WiFi module. I have written the bsp and bus_wrapper functions needed for interfacing with the SMT32F4xx. Quite a bit seems to be working in that after enabling debug printing I see the chip ID was read correctly. However the 'chip_apply_conf' function never returns. It is called by 'wait_for_bootrom'. Debugging this I see it is looping in the following code: val32 |= rHAVE_RESERVED1_BIT; do { nm_write_reg(rNMI_GP_REG_1, val32); if(val32 != 0) { uint32 reg = 0; ret = nm_read_reg_with_ret(rNMI_GP_REG_1, ®); if(ret == M2M_SUCCESS) { if(reg == val32) break; } } else { break; } } while(1); It loops because the value of val32 is 0x102 while the value read from the chip (reg) is 0x182. I don't seem to be able to find the register descriptions to work out what is going on. Anyone have a link to a datasheet describing this, or know what is failing. Many thanks, Sid |
|
相关推荐
2个回答
|
|
您好,您检查了从开始的项目示例:http://Stask.Atmel?com /yz示例/WiCcTee是为山姆D21(皮质M0+)编写的,并且应该很容易在任何其他处理器CORRIEGARDS上移植。
以上来自于百度翻译 以下为原文 Hi, Did you check the projects examples from START : http://start.atmel.com/#examples/winc They are written for SAM D21 (Cortex M0+) and should be easily portable on any other processor core Regards |
|
|
|
我已经研究了许多例子,没有发现任何线索。我的代码非常简单,正如我所说的,这不是一个SPI接口问题,因为主机读取芯片ID和其他数据。我真正需要的是一些文档,它告诉我什么是失败的,然后也许我能解决这个问题。正如你在这里看到的,我的代码很简单:这两个函数上面调用的是:对M2MWiFixIIT的调用最终到达原始帖子中的代码并循环到那里。
以上来自于百度翻译 以下为原文 I have examined many examples and none reveal any clues. My code is VERY simple and as I said this is not an SPI interface issue because the host reads the chip ID and other data. What I really need is some documentation that tells me what is failing, then perhaps I can figure out the issue. As you can see here, the code I have is simple: nm_bsp_init(); // Setup the hardware interface for the WINC1500 wifi_init(); // Setup the Wifi channel The two functions called above are: sint8 nm_bsp_init(void) { gpfIsr = NULL; init_chip_pins(); nm_bsp_reset(); return M2M_SUCCESS; } void wifi_init(void) { tstrWifiInitParam param = { 0 } ; param.pfAppWifiCb = wifi_cb; m2m_wifi_init(¶m); } The call to 'm2m_wifi_init' eventually gets to the code in my original post and loops there. |
|
|
|
只有小组成员才能发言,加入小组>>
5231 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3200 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
771浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
588浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
669浏览 0评论
571浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 08:49 , Processed in 1.445173 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号