teensy4.1 with W25Q128

Status
Not open for further replies.

scjurgen

Member
Hi there,

Until now I did not have luck in making the teensy4.1 work with the SQPI flash W25Q128JVSIQ (no PSRAM installed, soldering checks out.

From my understanding of the schematics the CS should be on pin 51 (EMC_22), and the SPI class to use is SPI2.

Code:
#include <Arduino.h>
#include <SPI.h>
#include <SerialFlash.h> 

SerialFlashChip sfc;

setup() {
  Serial.begin(115200); while (!Serial);
  if (!sfc.begin(SPI2, 51)) {
     Serial.printf("error, id is 0,0,0 or 255,255,255\n");
  }
} 

loop() {}

compiled using Clion/platformio for teensy4.1 on mac, I tried also with SPI, SPI1 (same), and with default pin for CS.
So, any idea what I am doing wrong?
 
Until now I did not have luck in making the teensy4.1 work with the SQPI flash W25Q128JVSIQ (no PSRAM installed, soldering checks out.
[...]
So, any idea what I am doing wrong?

After reading through startup.c I think hooking up the Flash Memory on the teensy4.1 is not trivial (flexspi) and not supported yet. The only support that is there implemented AFAIU is psram access. I am more interested in just hooking up the flash-ram. However on the website for 4.1 (https://www.pjrc.com/wp-content/uploads/2020/05/teensy41_memory.jpg) there is a PSRAM with the W25Q128 hooked up, but no reference on how to access the flash. :(
Anyone did that before?
 
Status
Not open for further replies.
Back
Top