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

Thread: teensy4.1 with W25Q128

  1. #1
    Junior Member
    Join Date
    Sep 2018
    Posts
    13

    teensy4.1 with W25Q128

    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?

  2. #2
    Junior Member
    Join Date
    Sep 2018
    Posts
    13
    Quote Originally Posted by scjurgen View Post

    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/uplo...y41_memory.jpg) there is a PSRAM with the W25Q128 hooked up, but no reference on how to access the flash.
    Anyone did that before?

Posting Permissions

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