2

我在我的 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 ---

如您所见,我不再得到任何输出。不幸的是,我没有抓住之前的任何输出。

4

2 回答 2

0

短暂断开串行电缆允许“make monitor”工作。我一直无法确定原因,但我确实注意到全新的芯片在几个周期内都能正常工作,但随后又采取了相同的行为。

于 2019-06-20T18:48:37.717 回答
0

我也遇到了这个问题,并且在运行“idf.py -p com7 monitor”后看到了上面提到的唯一文本。在执行“idf.py fullclean”后,它指出“与之前使用的生成器不匹配:Visual Studio 15 2017”的错误。我记得我在命令行中使用 Cmake 和 make,所以这可能是导致损坏状态的原因。它告诉我删除 CMakeCache.txt 和 CMakeCache 目录,我这样做了,然后我重建了它,它又开始工作了。希望这可以帮助某人。

于 2019-09-25T13:24:49.140 回答