Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeensyStep HelloStepper with Teensy 4.1 will not compile #131

Open
Atomfusion1 opened this issue Mar 13, 2022 · 8 comments
Open

TeensyStep HelloStepper with Teensy 4.1 will not compile #131

Atomfusion1 opened this issue Mar 13, 2022 · 8 comments

Comments

@Atomfusion1
Copy link

Hello, With what could be a shortage of Teensy 3.5/3.6 but PJRC saying that they have a lot of Teensy 4.1 available I am looking to move my code over to it, I see in some of your other projects you have already implemented Teensy 4.0 and 4.1 code, but the Current TeensyStep HelloStepper will not compile under 4.1. I will assume the hardware timers are not in it yet, do you happen to have a development branch for them yet ?

In file included from F:\PCloud\arduino-1.8.19\libraries\TeensyStep\src/timer/generic/TimerField.h:6:0, from F:\PCloud\arduino-1.8.19\libraries\TeensyStep\src/TeensyStep.h:11, from F:\PCloud\arduino-1.8.19\libraries\TeensyStep\examples\HelloStepper\HelloStepper.ino:19: F:\PCloud\arduino-1.8.19\libraries\TeensyStep\src/timer/generic/TickTimer.h: In static member function 'static uint32_t TimerBase::get_cycles()': F:\PCloud\arduino-1.8.19\libraries\TeensyStep\src/timer/generic/TickTimer.h:28:34: error: 'dwt_getCycles' was not declared in this scope return dwt_getCycles();

Thanks

@christophepersoz
Copy link

Hello, same here. I would be tremendous to get an update for Teensy 4.x boards as they are much more powerful compare to 3.6. Is there any plan to do so or just out of the scope?
Thanks a lot for your amazing lib.

C

@luni64
Copy link
Owner

luni64 commented Mar 29, 2022

There is a very first experimental version here:
https://github.com/luni64/TeensyStep4

@ipsod
Copy link

ipsod commented Mar 31, 2022

Glad to see this is happening. Teensy 3 boards are out of stock.

@christophepersoz
Copy link

There is a very first experimental version here:
https://github.com/luni64/TeensyStep4

Nice, thank a lot. Is this version working? I do not have Teensy 4.x board to test it. Thanks

@luni64
Copy link
Owner

luni64 commented May 5, 2022

It should be working in principle (used it in a small project) but there certainly will be bugs.

@KrisKasprzak
Copy link

KrisKasprzak commented Sep 1, 2022

I downloaded and installed this lib but get

C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_957164\sketch\main.cpp:2:25: fatal error: teensystep4.h: No such file or directory
compilation terminated.
Error compiling for board Teensy 4.0.

Any help appreciated.

After reinstall / reboot I get

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\TeensyStep4-main/stepper.h:3:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\TeensyStep4-main/teensystep4.h:3,
from C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_94389\sketch\main.cpp:2:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\TeensyStep4-main/stepperbase.h:4:31: fatal error: timers/interfaces.h: No such file or directory
compilation terminated.
Error compiling for board Teensy 4.0.

@luni64
Copy link
Owner

luni64 commented Sep 2, 2022

I'd like to reproduce that. Which sketch did you try to compile? Which build system are you using (Arduino/PIO/VisualTeensy...)?

@KrisKasprzak
Copy link

silly me...

  1. sketch: 01_basic.ino
  2. install path: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\TeensyStep4-main\examples\01_basic
  3. Win10
  4. IDE Arduino 1.8.13
  5. Teensy loader 1.57

I have no extra compilers, add-on, I run basic Arduino IDE with Teensyduino.

I did move all .h and .cpp files to the TeensyStep4-main\ folder and changed all the include path and I'm able to compile. Just odd my Arduino could not find all the files on all the sub-folders.

TIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants