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.
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Teensy 4.0 & 4.1

Post by Roberthh » Tue Oct 05, 2021 2:26 pm

That's interesting. I used that branch just now for flashing. May it be that the flash is connected to a different flexspi port or requires different timings?

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

Re: Teensy 4.0 & 4.1

Post by Roberthh » Tue Oct 05, 2021 2:45 pm

Comparing at the schematics, the FLEXSPI connections seem identical. We never tested the 1052 port with QSPI flash. I could get a ARCH MIX board for testing. It seems to export more pins than the NXP EVK board. It seems to be on backlog at the moment, with a delivery time of three weeks.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Teensy 4.0 & 4.1

Post by loboris » Tue Oct 05, 2021 2:50 pm

Roberthh wrote:
Tue Oct 05, 2021 2:26 pm
That's interesting. I used that branch just now for flashing. May it be that the flash is connected to a different flexspi port or requires different timings?
I've checked the schematics for MIMXRT1050-EVK
Image
and Arch-Mix
Image

It looks the same.
As I've described only the write to Flash does not work.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Teensy 4.0 & 4.1

Post by loboris » Tue Oct 05, 2021 2:55 pm

I dont have the schematic for VisionSOM-RT (1062) module at the moment, but as booting and Flash read operations works, I suppose the connection is the same.

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

Re: Teensy 4.0 & 4.1

Post by Roberthh » Tue Oct 05, 2021 3:00 pm

I looked into the files, and for the 1050, the qspi_nor_flash_config.c looks wrong. Try to use the file from the MIMXRT1020_EVK at that place.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Teensy 4.0 & 4.1

Post by loboris » Tue Oct 05, 2021 3:06 pm

Roberthh wrote:
Tue Oct 05, 2021 3:00 pm
I looked into the files, and for the 1050, the qspi_nor_flash_config.c looks wrong. Try to use the file from the MIMXRT1020_EVK at that place.
Thanks, I'll try it later today.

According to the mex file I have for VisionSOM-RT (1062) module the qspi flash connection is the same as on MIMXRT1020_EVK/Arch-Mix.

alphaFred
Posts: 31
Joined: Wed Apr 15, 2020 6:47 pm

Re: Teensy 4.0 & 4.1

Post by alphaFred » Tue Oct 05, 2021 3:13 pm

Roberthh wrote:
Tue Oct 05, 2021 3:00 pm
I looked into the files, and for the 1050, the qspi_nor_flash_config.c looks wrong. Try to use the file from the MIMXRT1020_EVK at that place.
Unfortunately I have only access to the code vi phone now so a diff is not as easy. I just spotted that we have 133MHz clock speed configured in the 1050. That was one thing I found odd because that did not work for me with the 1020.

What else did you spot? Was the write command different?

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

Re: Teensy 4.0 & 4.1

Post by Roberthh » Tue Oct 05, 2021 3:24 pm

It is different to what works on the 1020 or Teensy (like 8 pads, differential clock, ..., all the settings from the hyperflash).

alphaFred
Posts: 31
Joined: Wed Apr 15, 2020 6:47 pm

Re: Teensy 4.0 & 4.1

Post by alphaFred » Tue Oct 05, 2021 3:29 pm

I guess I need to take a look at that tonight, too.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Teensy 4.0 & 4.1

Post by loboris » Tue Oct 05, 2021 4:02 pm

I've just checked on both boards and using the qspi_nor_flash_config.c from MIMXRT1020_EVK it works!
The file system is mounted on boot (from _boot.py) everything (at least what I've tested) works.

@Roberthh thank you for the help and congratulations on the great work.

Post Reply