Open
Description
Hello everybody,
I had to substitute the older openocd-esp32 in .platformio/ to include the p4.
Anyone debugging the p4 already? I am getting errors with:
[env:esp32p4]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = arduino
board = esp32-p4-evboard
monitor_port = COM9
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
log2file
build_flags =
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-fpermissive
-est
-Og
debug_init_break = break setup
build_type = debug
Reading symbols from C:\projects\rb_tree\.pio\build\esp32p4\firmware.elf...
warning:
could not convert 'main' from the host encoding (CP1252) to UTF-32.
This normally should not happen, please file a bug report.
Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.
Use 'set mi-async'.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = cmsis-dap
PlatformIO: Initializing remote target...
Warning: 'flushregs', an alias for the command 'maintenance flush register-cache', is deprecated.
Use 'maintenance flush register-cache'.
Open On-Chip Debugger v0.12.0-esp32-20250422 (2025-04-22-13:02)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'gdb port', not 'gdb_port'
DEPRECATED! use 'tcl port' not 'tcl_port'
DEPRECATED! use 'telnet port', not 'telnet_port'
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
embedded:startup.tcl:154: Error: session transport is "swd" but your config requires JTAG
Traceback (most recent call last):
File "C:/Users/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32p4.cfg", line 117, in script
create_esp_target riscv
File "C:/Users/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 152, in create_esp_target
create_esp_jtag
File "C:/Users/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 89, in create_esp_jtag
jtag newtap esp32p4 tap0 -irlen 5 -expected-id 0x0012c25
, in jtag
default_to_jtag jtag newtap esp32p4 tap0 -irlen 5 -expected-id 0x0012c25
File "embedded:startup.tcl", line 154, in default_to_jtag
error {session transport is "swd" but your config requires JTAG}
.pioinit:11: Error in sourced command file:
Thank you.
Metadata
Metadata
Assignees
Labels
No labels