Hi ESP_Sprite, thanks so much for your prompt reply and suggestion. And yes, you're right, I didn't run in another terminal and now when I run in another terminal, it seems work but now I tried to add some configurations in launch.json as follow,
Code: Select all
{
"preLaunchTask": "preRun",
"type": "cppdbg",
"name": "ESP32 OpenOCD",
"request": "launch",
"cwd": "${workspaceFolder}/build",
"program": "${workspaceFolder}/build/blink.elf",
"miDebuggerPath": "C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe",
"setupCommands": [
{"text": "target remote localhost:3333"},
{"text": "set remote hardware-watchpoint-limit 2"},
{"text": "monitor reset halt"},
{"text": "flushregs"},
{"text": "mon program_esp build/bootloader/bootloader.bin 0x1000 verify"},
{"text": "mon program_esp build/partition_table/partition-table.bin 0x8000 verify"},
{"text": "mon program_esp build/blink.bin 0x10000"},
{"text": "monitor reset halt"},
{"text": "flushregs"}
]
}
and my preRun task will be as follow in tasks.json
Code: Select all
{
"label": "preRun",
"type": "shell",
"windows": {
"command": "clear and start openocd -c \"set ESP_RTOS none\" -f board/esp32-wrover-kit-3.3v.cfg '&' exit"
}
}
just to automate the process according to a youtube video instructions
https://www.youtube.com/watch?v=uq93H7T7cOQ
But after I have done everything and press F5 to start debugging, it doesn't direct me to the source code, I couldn't find the yellow highlighted line as in this image.
I have no idea whats happening behind, I am really lost and don't know how to procced...
For your info, the following are the messages appeared in cppdbg terminal when I press F5 key,
Code: Select all
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-l3whtnsk.rk5' '--stdout=Microsoft-MIEngine-Out-ttemoxzw.nww' '--stderr=Microsoft-MIEngine-Error-1nlb0jxn.sdp' '--pid=Microsoft-MIEngine-Pid-zajho3z3.x5i' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-nvghb0vr.maz' '--stdout=Microsoft-MIEngine-Out-302hxzk1.qri' '--stderr=Microsoft-MIEngine-Error-ow04saus.fph' '--pid=Microsoft-MIEngine-Pid-1nh1n1ny.4us' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-jsnuxiow.r4z' '--stdout=Microsoft-MIEngine-Out-zpnsyiw2.y20' '--stderr=Microsoft-MIEngine-Error-12lsu3ik.wm2' '--pid=Microsoft-MIEngine-Pid-uy0mkqpj.oz5' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-l5ofehv3.4js' '--stdout=Microsoft-MIEngine-Out-dkj3zapn.xqp' '--stderr=Microsoft-MIEngine-Error-a34la2be.gvz' '--pid=Microsoft-MIEngine-Pid-l02u5kum.jnk' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-stipgic5.rph' '--stdout=Microsoft-MIEngine-Out-03ijegiy.frz' '--stderr=Microsoft-MIEngine-Error-3cin0yyq.ol5' '--pid=Microsoft-MIEngine-Pid-tsmp0zhi.nn0' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-5pjmysx1.xhu' '--stdout=Microsoft-MIEngine-Out-cx0bnjzt.asb' '--stderr=Microsoft-MIEngine-Error-qhmooss0.q3q' '--pid=Microsoft-MIEngine-Pid-gtmpnk0y.cgo' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-tb2dzpm1.c2q' '--stdout=Microsoft-MIEngine-Out-b12jrsnp.pna' '--stderr=Microsoft-MIEngine-Error-v4luukmr.cio' '--pid=Microsoft-MIEngine-Pid-5h4puwtg.cgc' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-g1kjc0gp.ns4' '--stdout=Microsoft-MIEngine-Out-1d31jhzr.ca3' '--stderr=Microsoft-MIEngine-Error-d2iehpvx.rq5' '--pid=Microsoft-MIEngine-Pid-rqyt5re0.eoh' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-n22prbkh.5rr' '--stdout=Microsoft-MIEngine-Out-q3lrvd1w.ypt' '--stderr=Microsoft-MIEngine-Error-tnz2aief.dtv' '--pid=Microsoft-MIEngine-Pid-4gkx4mzw.kwa' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
PS D:\esp32_vscode_proj\blink> & 'c:\Users\anton\.vscode\extensions\ms-vscode.cpptools-1.8.0-insiders2\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-tmuzkl4m.s0u' '--stdout=Microsoft-MIEngine-Out-pdg1rhf4.czr' '--stderr=Microsoft-MIEngine-Error-nnsxvlbz.orp' '--pid=Microsoft-MIEngine-Pid-evqhe1fr.cv5' '--dbgExe=C:/Users/anton/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb.exe' '--interpreter=mi'
and the following messages are in 'Debug Console' terminal...
Code: Select all
=thread-group-added,id="i1"
GNU gdb (crosstool-NG esp-2021r1) 8.1.0.20180627-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-host_w64-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
Thanks so much again for your patience and great help and apology for my lack of knowledge in these basic setups...