Unable to start debugging. Unexpected GDB output from command "- interpreter-exec console "target remote:3333""

ESP_bignacio
Posts: 214
Joined: Wed May 02, 2018 12:12 pm

Re: Unable to start debugging. Unexpected GDB output from command "- interpreter-exec console "target remote:3333""

Postby ESP_bignacio » Thu Nov 23, 2023 5:12 am

How do you start the openOCD ? Are you using the extension OpenOCD Server ? What is the openOCD output ? Click menu View -> Output -> Choose ESP-IDF from drop down and see the OpenOCD output.

Jimis1
Posts: 35
Joined: Wed May 03, 2023 6:20 am

Re: Unable to start debugging. Unexpected GDB output from command "- interpreter-exec console "target remote:3333""

Postby Jimis1 » Mon Nov 27, 2023 6:03 pm

How do you start the openOCD ?
A: I press ctr+Shift+D or select the buton on the left

Are you using the extension OpenOCD Server ?
A: No. I don't see any extension with that name. I don't see that in the instructions.

What is the openOCD output ? Click menu View -> Output -> Choose ESP-IDF from drop down and see the OpenOCD output.
A: I dont see that in the output drop-down list
Only
Screenshot_1.jpg
Screenshot_1.jpg (66.29 KiB) Viewed 65330 times
Screenshot_2.jpg
Screenshot_2.jpg (17.85 KiB) Viewed 65330 times


ESP_bignacio
Posts: 214
Joined: Wed May 02, 2018 12:12 pm

Re: Unable to start debugging. Unexpected GDB output from command "- interpreter-exec console "target remote:3333""

Postby ESP_bignacio » Thu Dec 14, 2023 4:00 am

So you are just starting a debug session without starting openOCD as far as I can see.

You need to start openOCD, either using ESP-IDF: Start OpenOCD command or in a terminal somewhere. Your launch.json configuration is not starting it.

Jimis1
Posts: 35
Joined: Wed May 03, 2023 6:20 am

Re: Unable to start debugging. Unexpected GDB output from command "- interpreter-exec console "target remote:3333""

Postby Jimis1 » Wed Feb 28, 2024 4:04 pm

I run the OpenOCD manager and I get below error. The USB port is fine since I can download my code so why can't it find my device ?
I would like to use the commands to an external terminal but I'm not optimistic. I never managed to make them work inside VS code anyway

OpenOCD server failed to start because of Error:
❌ _init(): esp_usb_jtag: could not find or open device!
Debug: 936 184 command.c:541 run_command(): Command 'init' failed with error code -4
User : 937 184 command.c:612 command_run_line(): c:\Applications\Programming\ESP\tools\tools\openocd-esp32\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "c:\Applications\Programming\ESP\tools\tools\openocd-esp32\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9
Debug: 938 185 esp_xtensa.c:198 esp_xtensa_target_deinit(): start
Debug: 939 185 xtensa.c:3423 xtensa_target_deinit(): start
Debug: 940 185 target.c:2166 target_free_all_working_areas_restore(): freeing all working areas
Debug: 941 185 esp_xtensa.c:198 esp_xtensa_target_deinit(): start
Debug: 942 185 xtensa.c:3423 xtensa_target_deinit(): start

Who is online

Users browsing this forum: vpascucci and 82 guests