大家好,我在使用VSCODE+platformio开发调试ESP32。
我买了2个ESP-PRog,其中一个还没开始用就坏了,任务管理器里看不到。
另外一个可以用,挺好的debug了几次都没问题。但是,突然有一天,不能用了,可以上传,我用的是ESP-Prog上传的,但是点调是的时候就不行。程序基本没改过,没有使用IO,之前可以调试,现在就不行,显示:
Error: timed out while waiting for target halted / 4 - 2
Error: xtensa_wait_algorithm: not halted 0, pc 0x40090d40, ps 0x60025
Error: Failed to wait algorithm (-302)!
Error: Algorithm run failed (-302)!
Error: Failed to run flasher stub (-302)!
Error: error writing to flash at address 0x400d0000 at offset 0x00000018
Error finishing flash operation
.pioinit:12: Error in sourced command file:
Error finishing flash operation
我把Error提取出来了,就是这些。
其实上传的时候也有个error:
debug_level: 1
none separate
adapter speed: 20000 kHz
esp32 interrupt mask on
** Programming Started **
auto erase enabled
Error: Failed to get flash maps (-1)!
Warn : Failed to get flash mappings (-4)!
wrote 917504 bytes from file .pio\build\firebeetle32\firmware.bin in 7.059533s (126.921 KiB/s)
** Programming Finished **
** Verify Started **
read 915296 bytes from file .pio\build\firebeetle32\firmware.bin and flash bank 0 at offset 0x00010000 in 3.277598s (272.713 KiB/s)
contents match
** Verified OK **
** Programming Started **
auto erase enabled
wrote 28672 bytes from file G:\project\Embedded\esp32\CfetPlc\controller\.pio\build\firebeetle32/bootloader.bin in 0.930001s (30.107 KiB/s)
** Programming Finished **
** Verify Started **
read 25520 bytes from file G:\project\Embedded\esp32\CfetPlc\controller\.pio\build\firebeetle32/bootloader.bin and flash bank 0 at offset 0x00001000 in 0.334000s (74.616 KiB/s)
contents match
** Verified OK **
** Programming Started **
auto erase enabled
wrote 4096 bytes from file G:\project\Embedded\esp32\CfetPlc\controller\.pio\build\firebeetle32/partitions.bin in 0.611001s (6.547 KiB/s)
** Programming Finished **
** Verify Started **
read 3072 bytes from file G:\project\Embedded\esp32\CfetPlc\controller\.pio\build\firebeetle32/partitions.bin and flash bank 0 at offset 0x00008000 in 0.264000s (11.364 KiB/s)
contents match
** Verified OK **
shutdown command invoked
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
但是能用没问题。
请问这是怎么回事呀?是不是又坏了?
ESP-PROG可以上传但是不能调试(之前可以调试)
-
- Posts: 290
- Joined: Wed Sep 05, 2018 6:23 am
Re: ESP-PROG可以上传但是不能调试(之前可以调试)
谢谢,后来不知为啥,又正常可以用了。但是调试的时候有个奇怪的问题,
他经常不能停在我设的断点上,有时候挺在前面有时候停在后面。然后step over也不太灵,进常一下就不知道跑到哪里去了。step into也是的,行为很奇怪。
我下面某一行代码会crash,但是,不能停在哪一行上面也进不去,挺在前面,然后step into就crash了。很奇怪。
他经常不能停在我设的断点上,有时候挺在前面有时候停在后面。然后step over也不太灵,进常一下就不知道跑到哪里去了。step into也是的,行为很奇怪。
我下面某一行代码会crash,但是,不能停在哪一行上面也进不去,挺在前面,然后step into就crash了。很奇怪。
Who is online
Users browsing this forum: No registered users and 88 guests