Hello all,
I'm aiming to do some endurance testing of spi nor flash chips, and thought the teensy 3.6 would be a great microcontroller for the job.
For now I'm using the code from this instructables post:
http://www.instructables.com/id/How-to-Design-with-Discrete-SPI-Flash-Memory/
direct code link:
https://cdn.instructables.com/ORIG/F18/CHIA/I0C8YA8Z/F18CHIAI0C8YA8Z.cpp
The ic I have is a M25PE16 which shares the same instructions as the winbond ic from the instructables post.
I am able to get the flash to reply with its correct id, but more than half the time, the replies are all ones, and sometimes all zeros.
I have tried 10k ohms and 100k ohms pullups on the CS, but they just lock the signal to the rail?
MOSI seems to be always high when the spi isn't doing anything, and the SCK is always running (not sure if this is normal or not).
The problem might be with the flash ic, but for now I choose to believe the problem is with the teensy. I've tried 2 chips of the same kind, and the exact same behavior was observed.
Just for reference the pins used by SPI.h are:
CS0 - 10
MOSI0 - 11
MISO0 - 12
SCK0 -13
Should I be using a different header directory?
I'm aiming to do some endurance testing of spi nor flash chips, and thought the teensy 3.6 would be a great microcontroller for the job.
For now I'm using the code from this instructables post:
http://www.instructables.com/id/How-to-Design-with-Discrete-SPI-Flash-Memory/
direct code link:
https://cdn.instructables.com/ORIG/F18/CHIA/I0C8YA8Z/F18CHIAI0C8YA8Z.cpp
The ic I have is a M25PE16 which shares the same instructions as the winbond ic from the instructables post.
I am able to get the flash to reply with its correct id, but more than half the time, the replies are all ones, and sometimes all zeros.
I have tried 10k ohms and 100k ohms pullups on the CS, but they just lock the signal to the rail?
MOSI seems to be always high when the spi isn't doing anything, and the SCK is always running (not sure if this is normal or not).
The problem might be with the flash ic, but for now I choose to believe the problem is with the teensy. I've tried 2 chips of the same kind, and the exact same behavior was observed.
Just for reference the pins used by SPI.h are:
CS0 - 10
MOSI0 - 11
MISO0 - 12
SCK0 -13
Should I be using a different header directory?