-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Add support for Teensy4.1 #19311
Add support for Teensy4.1 #19311
Conversation
Framework for Teensy 4.1 HAL in place.
Use GPT timers for Teensy4
fixes for timers started working on pinsDebug add definition for T41U5XBB (grblHAL breakout board)
More timer fixes
Removed test code
Fix NUM_SERIAL based on serial port selection
Seems like it's only really supporting Teensy 4.1 because there are not enough pins on Teensy 4.0. The bottom half of your pins diagram is missing in hardware, so calling it a "plan for teensy 4.0 and teensy 4.1" is misleading. |
@extesy, the firmware will support Teensy 4.0, but I didn't create a pinout for it. |
@bilsef You did. There is a file called It might not have been your intention, but this PR does look like it fully supports Teensy 4.0 but it doesn't. I'm not trying to make your contribution less valuable, just more accurate and more approachable for other, less technical users. If there's no pinout for Teensy 4.0 then the compilation should fail with the corresponding error message until somebody else creates the pinout. |
Changed supported board name to BOARD_TEENSY41.
@extesy I get your point. Changes made. |
Change board name in configuration.h |
Removed Teensy 4.0 references
@nanotuxi I just pushed a fix for a hang (watchdog reset) when telnet writes were attempted while no telnet client was attached. I also merged the latest bugfix-2.0.x with the SD Card fixes. SDCard and Ethernet both work for me. There are still some watchdog resets that I need to track down. |
Pulled it. Progress bar is running RepetierHost connected over TCP. But no commands are echoed. At the end of the file/print |
So, I was a little bit curious and found out that if I start the print from sd connected via TCP/IP only M27 commands are shown. Stopping and restarting the print made the print work as expected and all gcode commands are shown and in the |
FYI, read in #17973 and #16666 that @CrazzyFrenchDude from the OpenPnP community is developing a Breakout Board called "PeeNaPle" as open-source hardware that is made for Teensy 4.1 however that BoB do not have any stepper drivers slots or power Mosfets directly on it so would still need a RAMPS board to build 3D-printer with it. Fab files available here: https://gitlab.com/CrazzyFrenchDude/peenaple_v1.1b/ PeeNaPle_V1.1b PeeNaPle is a modular controller BoB for Teensy 4.1. It is designed with Pick and place machines using Open PnP software in mind, but is also 3D Printing, CNC and other Cartesian machines oriented, thanks to an extension and adapter daughter boards eco-system being developed. It is built upon a 6 layer PCB, offering stability an immunity to EMF and electric noises. it Natively offers 8 stepper outputs, 4 End_Stops, UEXT port, Extension port, USB_HOST, Ethernet PHY and CAN_FD. Among the adaptors and extensions being developed you can find a stepper driver adapter to use your favorite TMC2208/09 or else as well as a powerful driver with closed loop so you never miss a step, capable of handling not less than 10A, just to name those 2! Tolerance of up to 35V Max Power In and offers 12V, 5V 3A DCDC, and 3.3V 1A for your convenience. Which are available on the extension ports so you do not need complicated wiring! Crazzy French Dude first posted about it in #16666 As a matter of fact, this board do not have any stepper drivers or power Mosfet directly on it! This is what makes it modular! Let's say you have a set of your favourite TMC2208 we got you covered! Just plug your driver on the daughter board, plug it to PeeNaPle, set your jumpers and you good to go, same as if you would with a BTT. The reason why I came to this design is sometimes, in the Open Pnp community we need beefy drivers for X and Y Axis, so I have developed a strong and reliable driver for those using big stepper driver in the CnC environment, no need to have those big boxes! If you need more steppers, just plug in the extension board and off you go, you need Wifi, sure, use the UEXT port. This board makes it easy for you build your controller with exactly and only what you need, it has an eco system ready extension package in development, and can't wait to see what extension the makers will build for it as well! Actually in testing phase I am. planning for mass production so It will the coast at a very low entry point what would get the makers interest tick! The only thing I haven't done yet is work on any Firmware. But as you suggested it is good for Open Pnp and for 3D printing as well! Crazzy French Dude then posted in #17973 All this began with the need of a Pick and Place Machin for my "daily" DIY's!Then found out that the makers were using 3D printing controller boards for that matter! And some would have issues with using the thermistors input to plug in there vacuum sensor or other little annoying problems which are not real because the 3D controllers were not especially built for that (Pick And Place Machines)! So I went to the Open Pnp Forum and launched a thread, asking them what would their dream controller for OPNP be. Then started a humble design pcb design around the new comer Teensy 4.1, the PeeNaPle_V1.1b. With it's modularity it joins 3 worlds, not so different! 3D printing, CNC and Pick and Place Machines! With an array of extension boards, stepper driver adapters, Mosfet switches, extension boards, etc and not to mention what the makers will come up with! His website is not yet active |
This looks like a similar approach known from ESP32 board developer Bart Dring. His 6 Pack Universal CNC Controller has been built with a modular approach, too. The sources are available on github. This approach is in my personal opinion the best way to get rid of waisting tons of microcontroller boards where only a single element is broken. So this is a step towards "Friday for future" somehow. If Duet boards would be built in that manner I would have bought one. |
Hello Everyone and thanks for your interest in the PeeNaPle BoB! Was a bit busy designing daughter boards and other oriented 3D world stuffs! Thanks so much to everyone and thanks to @bilsef for this amazing work on the MarlinFirmware, CFD!!! |
It works for me with this workaround:
You have to upload in 8.3 file format, otherwise it won't work with RepetierHost. |
I am building this teensy4.1 to Mega2560 adapter/RAMPS shield. |
@kursatu |
FYI, there is some further discussion about Marlin Firmware for Teensy 4.1 and breakout-boards on CNX-Software website here: Personally, I would love to see an all-in-one breakout-board similar to the SKR series of boards by BIQU/BIGTREETECH. That is, a BoB with onboard Ethernet port and Pololu/Stepstick-slots so only need to add Teensy 4.1 and plugin stepper-drivers. Alternatively just a complete controller board in BTT SKR style but with an integrated NXP i.MX RT10xx ARM Cortex-M7 SoC. Regardless, hope that we will see more NXP i.MX RT10xx / i.MX RT series based boards with ARM Cortex-M7 cores in the future. Another option is the STM32H7 series of SoCs from STMicro which is also based around single-core Cortex-M7 microcontroller Benefit with STM32H7 series is that it has embedded flash storage but it may increase the price compared to NXP i.MX RT series https://www.cnx-software.com/2018/09/07/stmicro-stm32f7x0-h7x0-value-line-cortex-m7-mcu/ |
@Gamester17 Lazy, lazy guy. Hey, just kidding. |
Another FYI, just read about newly announced "iMX RT1064 uCOM" board from Embedded Artists so submitted a feature request: Maybe depending on its price when general availability it might be an option for those looking at developing BoBs for Teensy 4.1 |
@bilsef What features/functions did you think about in regards to TCP Streaming? Basic TCP serial server feature would be nice for use with a serial client just for remote control over native Ethernet. If you are looking for that as a project then you might want to check out the tasmota-zbbridge subproject as they recently implement a TCP server for streaming serial data into Tasmota firmware for ESP8266 for other reasons, see arendst/Tasmota#8583 |
FYI, e.g. STM32 Nucleo-144 boards based on STM32F7 (STM32 F7) features Ethernet PHY and a relatively fast Cortex-M4 -> #19373 Also newer STM32 Nucleo-144 boards based on STM32H7 (STM32 H7) feature Ethernet PHY and a very fast Cortex-M7 -> #19751 |
I recommend to the people working with Teensy Ethernet to post a new pull request with the code and continue the discussion there. As for the STM32 stuff @Gamester17, please stop spamming every semi-related issue or pull request with it. It now has a home in the open feature request, let’s try to keep discussion about it there. |
@nanotuxi, @kursatu, I was thinking about a RAMPS adapter as well. Unfortunately, there are not enough pins on Teensy 4.1 to map to everything on RAMPS, so it will have to be a subset. I've taken a stab at it here: https://github.com/bilsef/Teensy4.1-RAMPS |
Hello guys, hope you are doing fantastic!!! Preview of the common board... |
@sjasonsmith Your teensy41-ramps is exactly what I thought of ;-) |
PR #19801 created for Teensy Ethernet. |
@CrazzyFrenchDude |
I am wondering if anyone has gotten this working with actual hardware? If so, would you be willing to post your config files? I flashed a 4.1 and a 4.0 and both lock up hard, not even programming again unless I use the hardware button. Also, Teensy 4.0 has enough pins for a 3D printer: https://hackaday.io/project/179657-cnc-mod-board-pendant |
I am using it with a Teensy 4.1, but not for 3d printing.
This is my working branch:
https://github.com/bilsef/Marlin/tree/Teensy4.1_PnP_6axis
…On Tue, Jun 8, 2021 at 7:55 AM KillerBug ***@***.***> wrote:
I am wondering if anyone has gotten this working with actual hardware? If
so, would you be willing to post your config files? I flashed a 4.1 and a
4.0 and both lock up hard, not even programming again unless I use the
hardware button.
Also, Teensy 4.0 has enough pins for a 3D printer:
https://hackaday.io/project/179657-cnc-mod-board-pendant
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19311 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASIW5GHBG3KRMTPF3PJO6LTRYVN7ANCNFSM4RARM34A>
.
|
Thanks bilsef! |
Description
Add support for Teensy 4.1
Benefits
More flexibility for Marlin
Configurations
Configuration.h and platformio.ini attached
config.zip
Related Issues
#16666
#17973