VS Arduino
>> >> I can not use breakpoints.
https://www.visualmicro.com/forums/YaBB.pl?num=1632205745

Message started by kihara on Sep 21st, 2021 at 6:29am

Title: I can not use breakpoints.
Post by kihara on Sep 21st, 2021 at 6:29am
Debug: Hardware can not use errors and breakpoints can not be used.
I am troubled that some kind of setting is bad.
Debug: OFF works properly.

Please let me know if there is information that is not enough.
Thank you for advice.
1_ESP32.jpg ( 174 KB | 2 Downloads )
2_Prg_Err.jpg ( 208 KB | 1 Download )

Title: Re: I can not use breakpoints.
Post by kihara on Sep 21st, 2021 at 6:30am
next
3_Compiler.jpg ( 367 KB | 1 Download )
4_Uploader.jpg ( 108 KB | 1 Download )

Title: Re: I can not use breakpoints.
Post by kihara on Sep 21st, 2021 at 6:33am
Blink1.ino_DebugOpenOCD.log

none separate
none
adapter speed: 2000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
5_Debugger_001.jpg ( 329 KB | 2 Downloads )

Title: Re: I can not use breakpoints.
Post by kihara on Sep 21st, 2021 at 6:36am
Output.txt

Starting: "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" -d2 -l "{C:\Users\kihara.MASUNAGA1\AppData\Local\Temp\VMBuilds\Blink1\esp32_esp32\Debug/Blink1.ino_DebugOpenOCD.log}" -s "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/" -f "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg" -c "set ESP32_RTOS none" -f "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/board/esp-wroom-32.cfg" -c "init; reset halt"
Starting: "C:\Users\kihara.MASUNAGA1\AppData\Local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin\xtensa-esp32-elf-gdb.exe" --interpreter=mi -ex "set remote hardware-watchpoint-limit 2" -ex "mon reset halt" -ex "flushregs" -ex "thb app_main" -ex "c"
"C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" exited with code 1 (0x1).

Title: Re: I can not use breakpoints.
Post by Simon@Visual Micro on Sep 21st, 2021 at 9:23am
Thanks for the report.

From the first image, there is only a USB Lead connected to the ESP32 board.

Unless you are using a board with an in-built Hardware Debugger (e.g. ESP-WROVER-KIT), then you will need an additional board connected to the ESP, e.g. ESPPROG.  All pre-configured debuggers and wiring diagrams can be seen on our GDB and ESP32 Page

Alternatively you can use the Serial Debugger with your board, without any additional hardware, as shown on this page.


Title: Re: I can not use breakpoints.
Post by kihara on Sep 22nd, 2021 at 6:28am
Thank you for your response.
Hardware debug was misunderstood simply by connecting one USB code.
I study the serial debug tutorial and post an unknown point again.
Thank you very much.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.