Hello, I'm a new Visual Micro user, trying to debug my ESP32 Arduino project.
I have two problems out of the box:
0. (SOLVED) When I tried to "Start Debugging" or "Attach to Process..." I got an error MessageBox Quote:
Unable to start debugging. The value of miDebuggerPath is invalid
. That was because I did not install "esp32" in Micro Explorer -> Board Manager. 1. When I try to "Start Debugging" or "Attach to Process..." I get an error MessageBox
Quote:Unable to start debugging. Check your debugger settings by opening project properties and navigating to 'Configuration Properties-->Debugging'
. The "Micro Debug" option does not appear in Output. In "Micro Build" there's only "MI Debugger Properties" JSON:
Quote:// MI Debugger Properties
{
"serverLaunchTimeout": 5000,
"filterStdout": false,
"filterStderr": true,
"targetArchitecture": "arm",
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "gdb",
"MIDebuggerServerAddress": "localhost:3333",
"cwd": if_esp32wroverkit\\Release",
"MIDebuggerPath": p32-elf-gcc\\esp-2021r2-patch5-8.4.0/bin\\xtensa-esp32-elf-gdb.exe",
"MIDebuggerArgs": "-ex \"set remote hardware-watchpoint-limit 2\" -ex \"mon reset halt\" -ex \"flushregs\" -ex \"thb app_main\" -ex \"c\"",
"debugServerPath": nocd.exe",
"debugServerArgs": "-d2 -l ssif_esp32wroverkit\\Release/test_wrover_ILI9341.ino_DebugOpenOCD.log}\" -s cripts/\" -f cripts/interface/ftdi/esp32_devkitj_v1.cfg\" -c \"set ESP32_RTOS none\" -f cripts/board/esp32-wrover.cfg\" -c \"init\"",
"setupCommands": [],
"program": wroverkit/Release/test_wrover_ILI9341.ino.elf",
"logging": {
"moduleLoad": false,
"trace": false,
"engineLogging": false,
"programOutput": false,
"exceptions": false,
"traceResponse": false
},
"showDisplayString": true
}
The Configuration Properties -> Debugging window has "Unsupported debug option" selected, if I select "Remote GDB Debugger" I see empty configuration (see screenshot). I haven't found information on visualmicro.com on how to set this up.
2. If my project uses SPIFFS, LittleFS or FFat, and I select "No Project + Libraries Optimization" or "No Optimization", the build fails with a message
Quote:ld.exe: FS\\vfs_api.cpp.o:(.literal._ZN2fs8FileImplD5Ev[_ZN2fs8FileImplD5Ev]+0x0): undefined reference to vtable for fs::FileImpl
Windows 10 22H2
Visual Studio 2022 v17.5.1 + Visual Micro 2023.220.2205, no settings altered
ESP32-WROVER-KIT_V4.1 with JTAG built in, WinUSB installed, 4 JTAG jumpers in place
VM settings: Arduino 2, ESP32 Wrover Kit (all versions), Debug: Hardware, ESP32 DEVKIT, No Optimization
Will provide any additional information needed. Thank you in advance.