firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Trying to debug current dev branch on core s3 - linking fails

Open itdiscovery-bot opened this issue 1 month ago • 2 comments

Describe the bug: Dev branch builds fine, for cores3, can upload rom runs, trying to debug the cc1101 and nrf24 not being detected.

When debug build is run linking fails with .platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/m5stack-cores3/src/main.cpp.o:(.literal._ZN9USBSerialD5Ev[_ZN9USBSerialD5Ev]+0x4): undefined reference to `vtable for SerialDevice'

have tried creating a definition file for the virtual functions but still complains

Steps To Reproduce: Run debug

Expected behavior: debugging sessions established

Actual behavior: Debugging session fails with error

Additional context / logs: .platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/m5stack-cores3/src/main.cpp.o:(.literal._ZN9USBSerialD5Ev[_ZN9USBSerialD5Ev]+0x4): undefined reference to `vtable for SerialDevice'

itdiscovery-bot avatar Oct 30 '25 09:10 itdiscovery-bot

Close vscode Delete c:/users//.platformio folder Delete the .pio folder from the project folder

Open vscode again and wait for it to reinstall all dependencies

This problem happens when you change the framework base, due to different dependencies..

bmorcelli avatar Oct 30 '25 11:10 bmorcelli

OK did this problems persist, still getting same error complete fresh dload and install - is there something specific in the m5cores3 env I should be looking into.???

is it that the framework base is not declared as the correct version for the core s3 ??

itdiscovery-bot avatar Nov 04 '25 02:11 itdiscovery-bot