Teensy 4.0 & 4.1

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
User avatar
rcolistete
Posts: 352
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Teensy 4.0 & 4.1

Post by rcolistete » Wed Aug 07, 2019 4:03 pm

A new powerful Teensy which would be nice to have MicroPython.

Teensy 4.0 was released today
Image

More details :
Teensy 4.0 Development Board at PJRC Store

Forum topic :
https://forum.pjrc.com/threads/54711-Te ... -Beta-Test
Last edited by rcolistete on Tue Jun 02, 2020 2:43 pm, edited 1 time in total.
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

User avatar
rcolistete
Posts: 352
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Teensy 4.0

Post by rcolistete » Wed Aug 07, 2019 7:25 pm

My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: Teensy 4.0

Post by OutoftheBOTS_ » Wed Aug 07, 2019 8:34 pm

There has been some other very fast open source boards around for some time.

The older Lichee Pi For NanoFW(16M) Cross-Border Core Board with WIFI Module + TF WIFI Adapter Development Board with an ARM 926EJS running at 900MHz, this thing is the size of an SD card https://www.aliexpress.com/item/3292936 ... b201603_53

And the newer Lichee Pi Zero ARM Cortex-A7 running at 1.2GHz and about the same form factor as the new Teensy https://www.aliexpress.com/item/3304722 ... b201603_53

Many of the hackers like the Lichee Pi Zero ARM Cortex-A7 running at 1.2GHz because they don't hit road blocks with closed source grey blobs

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Teensy 4.0

Post by mattyt » Fri Aug 09, 2019 4:34 am

While those are pretty neat boards the Cortex-M7 architecture is very different and targets low-power operations. The M7 ought to be remarkable for its high performance for low power consumption...

chrismas9
Posts: 152
Joined: Wed Jun 25, 2014 10:07 am

Re: Teensy 4.0

Post by chrismas9 » Sun Aug 11, 2019 2:45 am

Rocky Song from NXP has ported MicroPython and OpenMV to the RT1060.

https://github.com/RockySong

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

Re: Teensy 4.0

Post by kamikaze » Tue Sep 17, 2019 3:51 pm

if only I knew how to do porting...

User avatar
rcolistete
Posts: 352
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Teensy 4.0

Post by rcolistete » Sun Jan 12, 2020 7:04 pm

CircuitPython being tested on Teensy 4.0 :
https://blog.adafruit.com/2020/01/10/te ... toffregen/

New firmware CircuitPython 5.0.0-beta.3 for Feather MIMXRT1062 :
https://circuitpython.org/board/feather_mimxrt1062/

Discussion on PRJC (Teensy) forum :
https://forum.pjrc.com/threads/59028-Te ... it-Phython
But the firmware is in .uf2 format. How to use an .uf2 firmware on Teensy 4.0 ?

AFAIK, Teensy Loader CLI needs .hex firmwares.
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Teensy 4.0

Post by mattyt » Sun Jan 12, 2020 10:19 pm

Has anyone tried Rocky's port enough to give any feedback on it?

User avatar
rcolistete
Posts: 352
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Teensy 4.0

Post by rcolistete » Mon Jan 13, 2020 2:08 am

New topic on PJRC/Teensy Forum has a first .hex image of CircuiPython 5.0.0 beta-3 for Teensy 4.0 ! x
https://forum.pjrc.com/threads/59040-Ci ... n-Teensy-4
Just use Teensy Loader (GUI or CLI).

First tests :

Code: Select all

$ screen /dev/ttyACM0
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 5.0.0-beta.3-6-g926375d99-dirty on 2020-01-10; Teensy 4.0 with IMXRT1062DVJ6A
>>> import gc
>>> gc.collect()
>>> gc.mem_free()
746976
>>> import os
>>> os.uname()
(sysname='mimxrt10xx', nodename='mimxrt10xx', release='5.0.0', version='5.0.0-beta.3-6-g926375d99-dirty on 2020-01-10', machine='Teensy 4.0 with IMXRT1062DVJ6A')
>>> help('modules')
__main__          busio             microcontroller   struct
_os               collections       micropython       supervisor
_pixelbuf         digitalio         neopixel_write    sys
_time             errno             os                time
analogio          gamepad           pulseio           touchio
array             gc                random            usb_hid
bitbangio         io                re                usb_midi
board             json              rtc
builtins          math              storage
Plus any modules on the filesystem
A USB meter shows 88 mA (at 5.06V) when using REPL on Teensy 4.0 connected to microUSB cable, without any running program.
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Teensy 4.0

Post by Roberthh » Mon Jan 13, 2020 7:19 am

Interesting. But i do not like to use another flavour of MicroPython. Circuitpython tries to have the same API on any platform including RasPi, making the interface for peripherals like I2C or SPI very bulky. Porting driver code from Circuitpython to Micropython typically results in trowing away pretty many lines of code.

Post Reply