You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have been porting your library to the STM32 series uP.
After introducing some "#if defined(ARDUINO_ARCH_STM32)" into your examples to address some processor specific issues, I have run into a problem with the Interface,hpp code that I cannot understand.
I am using: Arduino Version: 2.3.3
Date: 2024-09-25T09:35:36.798Z (1 month ago)
CLI Version: 1.0.4
on a MAC M2.
I can compile and upload (but not work!) successfully without 'debug' turned on.
However, if I set "Optimize" for debug (-Og'), I get the following errors:
Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: sketch/TMCTestStepperInterface.ino.cpp.o: in function `TMC51X0::TMC51X0()':
Documents/Arduino/libraries/TMC51X0/src/TMC51X0.hpp:23:(.text._ZN7TMC51X0C2Ev[_ZN7TMC51X0C5Ev]+0x6c):
undefined reference to vtable for tmc51x0::Interface
Hi! This library is still under active development so I may be making significant changes until I have worked out most of the functionality.
The unused parameter warning should disappear if you remove the parameter names. I have implemented these changes in one of the last commits that I pushed up to the repository. Can you please try it again and see if it fixes your issue? Thanks!
Hi,
I have been porting your library to the STM32 series uP.
After introducing some "#if defined(ARDUINO_ARCH_STM32)" into your examples to address some processor specific issues, I have run into a problem with the
Interface,hpp
code that I cannot understand.I am using:
Arduino Version: 2.3.3
Date: 2024-09-25T09:35:36.798Z (1 month ago)
CLI Version: 1.0.4
on a MAC M2.
I can compile and upload (but not work!) successfully without 'debug' turned on.
However, if I set "Optimize" for debug (-Og'), I get the following errors:
undefined reference to vtable for tmc51x0::Interface
collect2: error: ld returned 1 exit status
Internet searches suggest I need to change :
to
This allows the code to compile and allows the Arduino debug interface to work.
But, if I then set the compile options back to smallest '-Os', compile fails with:
Any suggestions?
The text was updated successfully, but these errors were encountered: