-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Support JTAG debugging in Arduino IDE 2.0 #7295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Try to find if there is any issues upstream @VojtechBartoska |
|
fc24e98
to
e20c018
Compare
@me-no-dev Can you please add some brief documentation to this? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@me-no-dev
I tested it using Win11, IDE 2.0.3 with these boards:
- ESP32 using FTDI JTAG from ESP-WROVER-KIT
- ESP32S3 and ESP32C3 using USB JTAG
All fine. It debugs using the new IDE.
Overview from my testing. Tested on MacOS Ventura 13.0.1
|
Hi, I found this error in the new IDE 2.0.3 and the ESP32 platform 2.0.6 Error: 226 175 libusb_helper.c:190 jtag_libusb_open(): libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: 227 177 esp_usb_jtag.c:651 esp_usb_jtag_init(): esp_usb_jtag: could not find or open device!
Error: 230 178 riscv.c:1752 riscv_get_gdb_arch(): Unsupported xlen: -1
Error: 231 178 esp_semihosting.c:78 target_to_esp_semihost_data(): Unknown target arch! Full log: |
@ajsb85 did you connect the hardware USB port of the C3? Log shows that computer was not able to find the port |
Yes (ESP32-C3: Built-In USB JTAG) I changed the driver version after follow this procedure: BTW this launch.json file looks good for you? Now I got this error: Failed to launch GDB: Remote replied unexpectedly to 'vMustReplyEmpty': PacketSize=4000;qXfer:memory-map:read+;qXfer:features:read+;qXfer:threads:read+;QStartNoAckMode+;vContSupported+ (from target-select extended-remote localhost:50000) Full logs: https://gist.github.com/ajsb85/d1a07b71d549d1f02ca01983554a1398 Thank you in advance for the support. |
@P-R-O-C-H-Y can you have someone from debug team have a look at the logs? @ajsb85 that is rather strange. JTAG works well on C3 here without any modifications, though since you are on Windows, I guess fixing WinUSB driver was necessary. @SuGlider what is your experience? |
@P-R-O-C-H-Y In this comment: #7295 (comment)
I'm having very little success keeping the debugger stable with either an external FTDI device or with an integrated connection. Tested so far on an ESP32-WROOM-32 based kit and -S3 and -C3 boards. Also keep seeing this crop up in the debugger console logs: When this all gets sorted, it'll make good background for the Debugging Tutorial I'll write! Appreciate your work. |
General Info
Known issues
cortex-debug
, but newer "fixed" versions also fail)To-Do
openocd-esp32
inplatform.txt
tools/ide-debug
to the archivelib-builder
to skip adding-Os
to the build flags reflib-builder
to removeCONFIG_FREERTOS_WATCHPOINT_END_OF_STACK
from ESP32-C3 sdkconfig ref