VSCODE: purchased Wrover-kit, serial flashing does not work and JTAG flash/debug does not work

espdorian
Posts: 33
Joined: Sat Dec 26, 2020 10:57 am

Re: VSCODE: purchased Wrover-kit, serial flashing does not work and JTAG flash/debug does not work

Postby espdorian » Tue Mar 16, 2021 7:20 pm

I have added "loglevel 5" to the debug configuration. Pressed F5 (with 2 breakpoints configured) the application was executing (LED blinks serial output) but but it did not stop on a breakpoint.

Some noticable part from the log:

Code: Select all

2021-03-16 20:07:42,755 - Gdb - INFO - CONS: '\\n'
2021-03-16 20:07:42,755 - Gdb - INFO - CONS: 'Thread 1 hit Temporary breakpoint 1, app_main () at ../main/blink.c:28\\n'
2021-03-16 20:07:42,756 - Gdb - INFO - CONS: '28\\t    gpio_pad_select_gpio(BLINK_GPIO);\\n'
2021-03-16 20:07:42,756 - Gdb - INFO - NOTIFY: stopped {'bkptno': '1',
 'disp': 'del',
 'frame': {'addr': '0x400d2b07',
           'args': [],
           'file': '../main/blink.c',
           'fullname': 'H:\\esp-blink\\blink\\main\\blink.c',
           'func': 'app_main',
           'line': '28'},
 'reason': 'breakpoint-hit',
 'stopped-threads': 'all',
 'thread-id': '1'}
2021-03-16 20:07:42,756 - Gdb - DEBUG - new target state 1
2021-03-16 20:07:42,757 - Debug Adapter(Command Processor) - DEBUG - Processed command: launch
2021-03-16 20:07:42,757 - Debug Adapter (WriterThread) - DEBUG - Writing: {"type": "response", "request_seq": 2, "success": true, "command": "launch", "seq": 11}
This breakpoint, is not the one I had set, it is the first line within main() .
Here in the log it indicates "stopped", but it was not.
- The LED was blinking
- The serial "led on" "led off" message was output
- There was a "yellow arrow" displayed in VScode on the corresponding line, as if it was stopped
- The 'continue' button in the debug toolbas was active.
- Except for the 'stop' button, no buttons of the debug toolbar have any effect.

The situation is easy reproducable, press 'debug stop' -> toolbar disappears -> press F5 -> It looks as if it is stopped on the first line
within main(), but it isn't.

vpascucci
Posts: 5
Joined: Fri Apr 09, 2021 6:12 am

Re: VSCODE: purchased Wrover-kit, serial flashing does not work and JTAG flash/debug does not work

Postby vpascucci » Fri Apr 09, 2021 8:45 am

I have the exact same issue that you are experiencing at this moment, debugger stuck and application actually running and being monitored. I hope somebody can help

vpascucci
Posts: 5
Joined: Fri Apr 09, 2021 6:12 am

Re: VSCODE: purchased Wrover-kit, serial flashing does not work and JTAG flash/debug does not work

Postby vpascucci » Fri Apr 09, 2021 9:19 am

Ok I found something, reverting to version 0.6.1 of the esp-idf extension at least allows me to properly start a debug, I can step through the code and set breakpoints, however when I jump through the last breakpoint I can never pause the application again, thus I cannot set new breakpoints

Who is online

Users browsing this forum: No registered users and 18 guests