Page 11 of 30

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 2:26 pm
by Roberthh
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?

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 2:45 pm
by Roberthh
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.

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 2:50 pm
by loboris
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.

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 2:55 pm
by loboris
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.

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 3:00 pm
by Roberthh
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.

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 3:06 pm
by loboris
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.

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 3:13 pm
by alphaFred
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?

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 3:24 pm
by Roberthh
It is different to what works on the 1020 or Teensy (like 8 pads, differential clock, ..., all the settings from the hyperflash).

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 3:29 pm
by alphaFred
I guess I need to take a look at that tonight, too.

Re: Teensy 4.0 & 4.1

Posted: Tue Oct 05, 2021 4:02 pm
by loboris
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.