Open lunamera opened 1 year ago
Hi @lunamera, thanks for reporting. Indeed the new PlatformIO core v6.11 contains changes that may cause this issue. Until we figure out how to solve it, could you please temporarily copy the stm8-objdump
binary from /home/YOUR_USER/.platformio/packages/tool-stm8binutils/bin
to /home/YOUR_USER/.platformio/packages/toolchain-sdcc/bin
and try again?
Hi @valeros , I've copied the file & debugging is working now! Thanks for the workaround and sorry for filing the bug against the wrong repo.
Configuration
Operating system: Linux x86
PlatformIO Version (
platformio --version
): pio --version PlatformIO Core, version 6.1.11I've read the release note: "Resolved a possible issue that may cause generated projects for PlatformIO IDE for VSCode to fail to launch a debug session because of a missing “objdump” binary when GDB is not part of the toolchain package"
STM8 target.
Description of problem
STM8 debugging fails: "Failed to load symbols from executable file: Error: Could not find "objdump" program"
Steps to Reproduce
Any minimal sample program is sufficient for reproduction:
Actual Results
Error message shows up: "Failed to load symbols from executable file: Error: Could not find "objdump" program
Expected Results
Debugging should work
Additional info
Content of launch.json: