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_read()一个奇怪的问题?



        我最近发现一个奇怪的问题,就是我在对CC3000升级的时候,就是升级固件的时候发现在读取MAC地址时(函数nvmem_get_mac_address(cMacFromEeprom);)程序会死在UINT8 * hci_event_handler(void *pRetParams, UINT8 *from, UINT8 *fromlen)函数里面,但是我可以尝试用wlan_connect函数连上路由,正常,后来我发现,只要调用nvmem_read函数,程序就会死在UINT8 * hci_event_handler(void *pRetParams, UINT8 *from, UINT8 *fromlen)函数里面。无法继续进行下去。

       我尝试在执行nvmem_get_mac_address(cMacFromEeprom)函数时在程序卡死的时候查看spi_buffer的值,发现实际上MAC地址是由读出来的(在数组的第34个数据开始),如下图:

       这种情况一般是由于什么情况造成的,现在的情况是我无法对CC3000进行升级,而且无法进行Smartconfig的配置!因为在这些过程中都调用了nvmem_read函数!