TeensyHelpers icon indicating copy to clipboard operation
TeensyHelpers copied to clipboard

Installation with PlatformIO

Open ernestum opened this issue 3 years ago • 4 comments

Hi, thanks for this nice helper library! I wanted to use teensy_clock in my PlatformIO project with a Teensy 3.1. Unfortunately it was unclear how to properly incorporate the library in my source code. What I tried so far:

  • Putting the teensy_clock folder in the lib subfolder of my project
  • Putting the teensy_clock folder in the src subfolder of my project
  • Putting the teensy_clock files directly into the src subfolder of my project
  • All of the above variants with the .cppx file renamed to cpp

I always get an error at link time:

.pio/build/teensy31/src/main.cpp.o: In function `L_214_delayMicroseconds':
main.cpp:(.text._Z20perform_needed_stepshR7StepperS0_S0_S0_+0x28): undefined reference to `cycles64::get()'
collect2: error: ld returned 1 exit status
*** [.pio/build/teensy31/firmware.elf] Error 1

(it is a different error when I rename the .cppx file)

Do you have any hints for me?

ernestum avatar Dec 08 '21 16:12 ernestum