If I make a very simple program,
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
I get the error :
Failed to launch GDB: .pioinit:12: Error in sourced command file:
Protocol error with Rcmd (from interpreter-exec console “source.pioinit”)
Open ‘launch.json’
I have done a lot of searching and the answers have made no sense to me.
Can someone what and where I need to alter?
This is the debug console output
[esp32.cpu1] requesting target halt and executing a soft reset
[esp32.cpu0] Core was reset.
Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000
Info : [esp32.cpu1] Debug controller was reset.
Info : [esp32.cpu1] Core was reset.
[esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000
[esp32.cpu1] Debug controller was reset.
[esp32.cpu1] Core was reset.
Info : [esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
[esp32.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 150 KB
Info : Flash mapping 1: 0x40020 -> 0x400d0020, 655 KB
[esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Flash mapping 0: 0x10020 -> 0x3f400020, 150 KB
Flash mapping 1: 0x40020 -> 0x400d0020, 655 KB
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Info : Auto-detected flash bank 'esp32.cpu1.flash' size 4096 KB
Info : Using flash bank 'esp32.cpu1.flash' size 4096 KB
[esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Auto-detected flash bank 'esp32.cpu1.flash' size 4096 KB
Using flash bank 'esp32.cpu1.flash' size 4096 KB
** Programming Started **
** Programming Started **
Error: timed out while waiting for target halted
timed out while waiting for target halted
Info : [esp32.cpu0] Target halted, PC=0x40092081, debug_reason=00000000
Error: xtensa_wait_algorithm: not halted 0, pc 0x40092081, ps 0x60025
Error: Failed to wait algorithm (-302)!
Error: Algorithm run failed (-302)!
[esp32.cpu0] Target halted, PC=0x40092081, debug_reason=00000000
xtensa_wait_algorithm: not halted 0, pc 0x40092081, ps 0x60025
Failed to wait algorithm (-302)!
Algorithm run failed (-302)!
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Info : PROF: Erased 20480 bytes in 111.022 ms
Target is already running an algorithm
Failed to start algorithm (-4)!
PROF: Erased 20480 bytes in 111.022 ms
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Info : PROF: Wrote 20480 bytes in 114.038 ms (data transfer time included)
Target is already running an algorithm
Failed to start algorithm (-4)!
PROF: Wrote 20480 bytes in 114.038 ms (data transfer time included)
** Programming Finished in 40930 ms **
** Verify Started **
** Programming Finished in 40930 ms **
** Verify Started **
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Info : PROF: Flash verified in 110.27 ms
Error: **** Verification failure! ****
Error: target_hash fcef9e...000
Error: file_hash: de528...15b7d
Target is already running an algorithm
Failed to start algorithm (-4)!
PROF: Flash verified in 110.27 ms
**** Verification failure! ****
target_hash fcef9e...000
file_hash: de528...15b7d
** Verify Failed **
.pioinit:12: Error in sourced command file:
Protocol error with Rcmd
Settings ;
ESP-WROVER-KIT, Arduino
Platform.ini
[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
framework = Arduino
upload_speed = 115200
monitor_speed = 115200
upload_port = COM25
monitor_port = COM25
;debug_tool = ftdi ; not required as already defined
debug_speed = 500
build_flags = -DBOARD_HAS_PSRAM
debug_init_break = break setup ; breaks at setup
JP2 Jumpers as per:-
Power set to external
Zadig
Select Dual RS232-HS (Interface 0)
Reinstall driver (I must do this step every time the board is unplugged!)