我在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 ---
如您所见,我再也没有输出。不幸 我没有获取任何先前的输出。
答案 0 :(得分:0)
暂时断开串行电缆的连接即可使“ make monitor”正常工作。我始终无法确定原因,但我确实注意到全新芯片可以在多个周期内正常工作,但随后采取了相同的行为。
答案 1 :(得分:0)
我也遇到了这个问题,并且在运行“ idf.py -p com7 monitor”之后看到了上面提到的唯一文本。执行“ idf.py fullclean”后,它指出错误“与先前使用的生成器不匹配:Visual Studio 15 2017”。我记得我在命令行上玩Cmake和make,所以这可能是导致损坏状态的原因。它告诉我要删除CMakeCache.txt和CMakeCache目录,然后重新构建它,然后它又开始工作。希望这对某人有帮助。