I treated myself to an esp-prog but I can’t get it to debug.
Output Debugger:
undefinedC:\.platformio\packages\toolchain-xtensa-esp32\bin\xtensa-esp32-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
Reading symbols from c:\Users\BeeBl�h\Documents\PlatformIO\Projects\BTTF-TCD\.pio\build\esp-wroom-32\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
adapter speed: 5000 kHz
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 5000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : [esp32.cpu0] Target halted, PC=0x400889CE, debug_reason=00000000
Info : starting gdb server for esp32.cpu0 on pipe
Info : accepting 'gdb' connection from pipe
Warn : No symbols for FreeRTOS!
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Info : Set GDB target to 'esp32.cpu0'
Info : [esp32.cpu1] Target halted, PC=0x4008885B, debug_reason=00000002
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 64 KB
Info : Flash mapping 1: 0x30020 -> 0x400d0020, 170 KB
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Info : Auto-detected flash bank 'esp32.cpu0.flash' size 4096 KB
Info : Using flash bank 'esp32.cpu0.flash' size 4096 KB
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 64 KB
Info : Flash mapping 1: 0x30020 -> 0x400d0020, 170 KB
Info : Using flash bank 'esp32.cpu0.irom' size 172 KB
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 64 KB
Info : Flash mapping 1: 0x30020 -> 0x400d0020, 170 KB
Info : Using flash bank 'esp32.cpu0.drom' size 68 KB
Info : New GDB Connection: 1, Target esp32.cpu0, state: halted
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1009 ms). Workaround: increase "set remotetimeout" in GDB
0x400889ce in xPortSysTickHandler () at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/port_systick.c:167
167 /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/port_systick.c: No such file or directory.
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : [esp32.cpu0] requesting target halt and executing a soft reset
Info : [esp32.cpu0] Target halted, PC=0x400E1E77, debug_reason=00000000
Info : [esp32.cpu1] requesting target halt and executing a soft reset
Info : [esp32.cpu0] Core was reset.
Info : [esp32.cpu0] Target halted, PC=0x40000400, debug_reason=00000000
Info : [esp32.cpu1] Core was reset.
Info : [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, 64 KB
Info : Flash mapping 1: 0x30020 -> 0x400d0020, 170 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
** Programming Started **
Info : [esp32.cpu0] Target halted, PC=0x40092612, debug_reason=00000001
Error: couldn't open C:/Users/BeeBlüh/Documents/PlatformIO/Projects/BTTF-TCD/.pio/build/esp-wroom-32/bootloader.bin
.pioinit:12: Error in sourced command file:
Exception in callback DebugSubprocessProtocol.pipe_data_received(1, bytearray(b'&...ile:\\n"\r\n'))
handle: <Handle DebugSubprocessProtocol.pipe_data_received(1, bytearray(b'&...ile:\\n"\r\n'))>
Traceback (most recent call last):
File "C:\.platformio\python3\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\.platformio\penv\Lib\site-packages\platformio\debug\process\base.py", line 43, in pipe_data_received
pipe_to_cb[fd](data)
File "C:\.platformio\penv\Lib\site-packages\platformio\debug\process\gdb.py", line 130, in stdout_data_received
self._handle_error(data)
File "C:\.platformio\penv\Lib\site-packages\platformio\debug\process\gdb.py", line 179, in _handle_error
DebugInitError(self._errors_buffer.decode()), self.debug_config
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 212: invalid start byte
Protocol error with Rcmd
Output Terminal :
Building in debug mode
Retrieving maximum program size .pio\build\esp-wroom-32\firmware.elf
Checking size .pio\build\esp-wroom-32\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 7.6% (used 25008 bytes from 327680 bytes)
Flash: [== ] 24.1% (used 316417 bytes from 1310720 bytes)
================================================================== [SUCCESS] Took 13.12 seconds ==================================================================
* Terminal will be reused by tasks, press any key to close it.
platformio.ini
:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp-wroom-32]
platform = https://github.com/platformio/platform-espressif32.git ; Läd die aktuellen Einstellungen des Mikrokontrollers
; board = wemos_d1_mini32 ; Entwicklerboard
board = esp32dev ; Debug Board
framework = arduino
monitor_speed = 115200
upload_speed = 921000
debug_tool = esp-prog
upload_protocol = esp-prog
debug_init_break = tbreak setup ; 1. Haltepunkt setzen in der setup()-Funktion
build_type = debug
lib_deps =
bblanchon/ArduinoJson@^6.21.3
adafruit/Adafruit GFX Library@^1.11.7
adafruit/Adafruit BusIO@^1.14.1
dfrobot/DFRobotDFPlayerMini@^1.0.6
waspinator/CD74HC4067@^1.0.2
adafruit/Adafruit LED Backpack Library@^1.3.2
makuna/RTC@^2.4.2
johnnyb/Shifty@^0.1.5
mickey9801/BlinkControl@^1.1.0
wayoda/LedControl@^1.0.6
plerup/EspSoftwareSerial@^8.1.0
; debug_port = COM8
upload_port = COM8
Oft bekomme ich die Fehlermeldung (oder ähnlich) : with 11 or 12 or 15
https://community.platformio.org/uploads/default/original/2X/2/26b4d77bfa40d457dbf002220a3237b55dbd5640.png