Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 10 of 10

Thread: Teensy 4 Circuit Phython.

  1. #1
    Senior Member
    Join Date
    May 2015
    Posts
    401

    Teensy 4 Circuit Phython.

    Lady Ada posted a Youtube video showing a 4 in a feather adapter pulling data with a esp32 feather and displaying it an a feather lcd. Itís still a preview build port for the NXP chip by a third party but I found it very interesting. Interesting times we live in.
    https://www.youtube.com/watch?v=ICg_...&index=25&t=0s
    Last edited by DaQue; 01-11-2020 at 12:22 PM. Reason: bad link

  2. #2
    Senior Member
    Join Date
    May 2015
    Posts
    401
    OLED feather, not a LCD.

  3. #3
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,099
    Really cool project - looking forward to when they publish it

  4. #4
    Junior Member
    Join Date
    Nov 2019
    Posts
    7
    CircuitPython 5.0.0-beta.3 was released to Feather MIMXRT1062.

    But the firmware is in .uf2 format. How to use an .uf2 firmware on Teensy 4.0 ?

    AFAIK, Teensy Loader CLI needs .hex firmwares.

  5. #5
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,674
    I imagine you would need to build it from scratch since the memory layout of the Teensy is likely different from that board. I imagine you would also need to add a serial flash chip to hold the Circuit Python code.

  6. #6
    Hi all, I'm glad you are excited for CircuitPython on the Teensy 4! I'm the project lead for CircuitPython and just started another thread with lots of info. I'll keep an eye out to answer questions in both places. Be sure to check it out for all of its info. Here are some answers to what you've wondered so far.

    Quote Originally Posted by rcolistete View Post
    CircuitPython 5.0.0-beta.3 was released to Feather MIMXRT1062.

    But the firmware is in .uf2 format. How to use an .uf2 firmware on Teensy 4.0 ?

    AFAIK, Teensy Loader CLI needs .hex firmwares.
    Our plan is to provide a hex you can use with Teensy loader. This is the only option now. However, we plan on providing a uf2 bootloader hex as well. It will run after the Teensy loader and enable you to drag and drop uf2s over. CircuitPython uf2s will be available too. This is a work in progress though, so use the .hex with TeensyLoader for now.

    Quote Originally Posted by MichaelMeissner View Post
    I imagine you would need to build it from scratch since the memory layout of the Teensy is likely different from that board. I imagine you would also need to add a serial flash chip to hold the Circuit Python code.
    CircuitPython runs on a stock Teensy 4. We allocate the first 1 MB of the QSPI flash to CircuitPython's core code and the latter 1 MB to the filesystem. Other boards with more will have 1 MB for CP and the remainder for the file system.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,815
    Quote Originally Posted by tannewt View Post
    We allocate the first 1 MB of the QSPI flash to CircuitPython's core code and the latter 1 MB to the filesystem.
    Please keep in mind the last 4096 bytes of flash are reserved for Teensy 4.0's restore image. If you hold the pushbutton for 15 seconds, the bootloader does a complete wipe of flash memory and copies that restore data to the beginning of flash, so you can always reboot to a program with known-good USB communication.

    Those 4096 bytes are permanently hardware locked. They can not be erased or written with different data. You probably should make sure Circuit Python doesn't assume that last 4K sector can be used for data storage.

  8. #8
    Will do! Thanks!

  9. #9
    Senior Member
    Join Date
    May 2015
    Posts
    401
    Please just move discussion over to the real source for info. All I know is in the video.
    https://forum.pjrc.com/threads/59040...n-on-Teensy-4!

  10. #10
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,491
    CircuitPython-on-Teensy-4!

    ... closed for this dev thread ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •