完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嘿,
我正在尝试调试执行一些看似简单的 digitalWrite/shiftOut 调用的库与 ESP8266WiFi 之间的潜在竞争条件。 以下代码: 代码:全选#include #include \"LedController.hpp\" LedController lc; void setup() { Serial.begin(115200); Serial.println(\"start\"); lc = LedController(13, 14, 5, 8); lc.activateAllSegments(); lc.setIntensity(0); lc.clearMatrix(); lc.setDigit(0, 0, 0, false); delay(100); WiFi.mode(WIFI_STA); WiFi.begin(\"SSID\", \"PASSWORD\"); while(WiFi.status() != WL_CONNECTED) { Serial.println(\"connecting...\"); lc.setDigit(0, 0, 2, true); delay(250); lc.setDigit(0, 0, 2, false); delay(250); } Serial.println(\"connected!\"); } void loop() {} 通常会产生以下异常: 代码:全选Exception 29: StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores PC: 0x4021e5af EXCVADDR: 0x00000019 Decoding stack results 0x4020fab9: do_memp_malloc_pool at core/memp.c line 255 0x40206b48: loop_task(ETSEvent*) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 205 0x40100154: ets_post(uint8, ETSSignal, ETSParam) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 177 0x40100154: ets_post(uint8, ETSSignal, ETSParam) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 177 0x4010092f: free(void*) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/umm_malloc/umm_malloc.cpp line 398 0x40202c00: ESP8266WiFiSTAClass::status() at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 634 0x40202de1: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 211 0x40202dbd: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 201 0x40202de7: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 211 0x40100279: __digitalWrite(uint8_t, uint8_t) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring_digital.cpp line 86 0x4020765c: shiftOut(uint8_t, uint8_t, uint8_t, uint8_t) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring_shift.cpp line 49 0x40100279: __digitalWrite(uint8_t, uint8_t) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring_digital.cpp line 86 0x40100279: __digitalWrite(uint8_t, uint8_t) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring_digital.cpp line 86 0x40204dbc: LedController::spiTransfer(unsigned int, unsigned char, unsigned char) at /Users/mysterion/Documents/Arduino/libraries/LedController/src/LedController.cpp line 285 0x4010092f: free(void*) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/umm_malloc/umm_malloc.cpp line 398 0x40100279: __digitalWrite(uint8_t, uint8_t) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring_digital.cpp line 86 0x4020765c: shiftOut(uint8_t, uint8_t, uint8_t, uint8_t) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring_shift.cpp line 49 0x40206bc8: __esp_yield() at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_features.h line 92 0x402071ce: __delay(unsigned long) at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring.cpp line 54 0x4020218f: setup() at /Users/mysterion/Documents/Arduino/robinhood_mini/robinhood_mini.ino line 32 0x40206ce4: loop_wrapper() at /Users/mysterion/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 194 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
525浏览 6评论
434浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
422浏览 5评论
415浏览 4评论
388浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-4 13:21 , Processed in 0.713672 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号