esp32 - 需要对 esp32 的 esp-idf 中的 IDF 监视器进行故障排除。不再显示输出
问题描述
我在我的 MacBook 上设置了 esp-idf (v3.2),昨天早上我能够制作、刷新和监控一个项目,并在 IDF 监视器中查看调试输出。但是,经过一些停止工作的代码更改。我可以看到芯片仍在运行,因为它正在代码中生成 MQTT 输出。但是,“make monitor”不再有输出。
我已经尝试恢复到它工作但没有运气的早期代码。我还运行了“make menuconfig”来查看设置,但不确定我在寻找什么。
'make flash monitor' 的输出:
...(error free compile)...
LD build/Valve32.elf
esptool.py v2.6
Flashing binaries to serial port /dev/cu.SLAB_USBtoUART (app at offset 0x10000)...
esptool.py v2.6
Serial port /dev/cu.SLAB_USBtoUART
Connecting........_
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, Coding Scheme None
MAC: 24:0a:c4:1c:8a:d4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x0000d000 in 0.0 seconds (effective 8744.0 kbit/s)...
Hash of data verified.
Compressed 26224 bytes to 14981...
Wrote 26224 bytes (14981 compressed) at 0x00001000 in 0.2 seconds (effective 1139.3 kbit/s)...
Hash of data verified.
Compressed 1050416 bytes to 600114...
Wrote 1050416 bytes (600114 compressed) at 0x00010000 in 9.8 seconds (effective 861.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 135...
Wrote 3072 bytes (135 compressed) at 0x00008000 in 0.0 seconds (effective 3082.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
如您所见,我不再得到任何输出。不幸的是,我没有抓住之前的任何输出。
解决方案
短暂断开串行电缆允许“make monitor”工作。我一直无法确定原因,但我确实注意到全新的芯片在几个周期内都能正常工作,但随后又采取了相同的行为。
推荐阅读
- typescript - 如何使用 TypeScript 在 express 中键入`request.query`?
- nvidia - 尝试将其转换为 tensorrt 或 tflite 时出现内存问题
- sql - 基于条件结束的 SAS 宏循环
- mysql - Django order_by 导致查询非常慢
- primes - 素数的乘积
- vue.js - 如何在页面刷新时更新 vue-router?
- java - 在本地机器上克隆 JUnit 5 后,执行“assemble”任务时出现编译时错误
- python - 从 tensorflow_datasets 加载 mnist 数据集的问题
- pine-script - 在公式中使用 + 时交易视图最新价格历史问题
- c++ - 如何将二维数组的元素与其其余元素进行比较?