乐鑫技术交流
直播中

刘艳

8年用户 2502经验值
私信 关注
[问答]

如何解决ISR不在IRAM中的问题?

引入了新的 ISR 检查。
代码:全选Decoding stack results
0x4020eb15: Print::write(char const*) at /Users/marcelstoer/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 60
0x401004be: __attachInterrupt(uint8_t, voidFuncPtr, int) at /Users/marcelstoer/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_wiring_digital.cpp line 206
0x402053c0: XPT2046_Touchscreen::begin() at /Users/marcelstoer/Data/Arduino/libraries/XPT2046_Touchscreen/XPT2046_Touchscreen.cpp line 41
调用它的草图片段如下:
代码:全选void setup() {
  Serial.begin(115200);

  // The LED pin needs to set HIGH
  // Use this pin to save energy
  // Turn on the background LED
  Serial.println(TFT_LED);
  pinMode(TFT_LED, OUTPUT);
  digitalWrite(TFT_LED, HIGH);    // HIGH to Turn on;

  connectWifi();

  Serial.println("Initializing touch screen...");
  ts.begin(); // this is XPT2046_Touchscreen::begin() in the stacktrace
  
  Serial.println("Mounting file system...");
...

这是我可以在草图中修复的问题,还是 XPT2046_Touchscreen 库作者必须在他的代码中解决这个问题?
                          

更多回帖

发帖
×
20
完善资料,
赚取积分