Hello,
I purchased a Teensy 4.1 from you guys along with the GD25Q16 SPI flash in SOIC form. I soldered it onto the teensy and tried addressing it with no avail. I've written the rest of an embedded program and just need to add external memory. I tried using Paul Stoffregen's libraries for memtest, erase, write, etc and still no luck.
https://github.com/PaulStoffregen/SerialFlash#readme
His memtest program found here: https://github.com/PaulStoffregen/teens ... emtest.ino
Results in: EXTMEM Memory Test, 0 Mbyte
I tried assigning the correct SPI pins and seems like it cannot address the chip.
Can't even resolve the device ID. What do you guys use to test these?
Thanks,
Teensy 4.1 Flash SPI not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Teensy 4.1 Flash SPI not working
It sounds as though you have done all the correct testing.
Can you post a photo of the soldering of the SPI flash onto the board?
There are some suggestions in this PJRC forum thread for testing code and pins that need to be connected which might also help.
https://forum.pjrc.com/threads/66161-Is ... -correctly
Can you post a photo of the soldering of the SPI flash onto the board?
There are some suggestions in this PJRC forum thread for testing code and pins that need to be connected which might also help.
https://forum.pjrc.com/threads/66161-Is ... -correctly
- zsnave
- Posts: 3
- Joined: Mon Dec 10, 2018 4:18 pm
Re: Teensy 4.1 Flash SPI not working
Well, Synth80s, I did a lot of work on this problem and discovered that the GD25Q16 flash chip is NOT supported. You can see that chip is missing from the list of supported chips on the PaulStoffregen/LittleFS GitHub page. Not sure why Adafruit offers that chip when you buy the Teensy4.1, since it doesn't work. I tried adding the device to the "known_chips" array (at the top of LittleFS.cpp), and it is recognized, and will run a bit further-down into the code, but then fails (again) with the "LFS_ERR_NOSPC" error code (-28) in the "lfs_format" function in the "LittleFS_QSPIFlash::begin" method. At least I know now that my chip is working, since it passes up the correct ID: C8 40 15 which gets picked up correctly by flexspi2_ip_read(). If you get it working, drop a note. Thanks.
Please be positive and constructive with your questions and comments.