W25q128 memory and arduino nano not working

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
crazyleggs77
 
Posts: 10
Joined: Sat Jul 11, 2015 10:52 am

W25q128 memory and arduino nano not working

Post by crazyleggs77 »

Sales order # 2967137-9648310759
I purchased several W25Q128 memory modules to work with an arduino nano (old bootloader). I have wired it as shown in the photographs and I am trying to run the example program in the data sheet. I note that the flash memory only accepts 3.3 V, so the Clk, MISO and MOSI output from the nano are dropped to 3.3 V using 2.2k - 3.3k voltage dividers. I have the CS pin connected to ground and the 102 and 103 pins connected to 3.3V. A photograph of the layout is attached. I have run the SdFat_format program when the example program did not work. The error message after running SdFat_format is:

Adafruit SPI Flash FatFs Format Example
Unknown flash device 0x0
Error, failed to initialize flash chip!

The error message after running the W25Q128 example is:

Initializing Filesystem on external flash...
Unknown flash device 0x0
Error: filesystem is not existed. Please try SdFat_format example to make one.
Adafruit SPI Flash FatFs Format Example
Unknown flash device 0x0

I have searched the form for similar problems, but do not find anything on this. Can you provide some suggestions on how I can proceed to get this ciruit to work? What am I missing?
flash Nano circuit.JPG
flash Nano circuit.JPG (137.17 KiB) Viewed 65 times

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: W25q128 memory and arduino nano not working

Post by mikeysklar »

Can you provide close up shots of the DIP breakout board and Nano? I can see the wiring overall, but can't quite make out the individual connections.

This is definitely a lot more complex due to the voltage dividers. You don't have to do that with the SPI Flash Breakout W25Q128 model. That or use a 3v3 based controller.

https://www.adafruit.com/product/5643

User avatar
adafruit2
 
Posts: 22146
Joined: Fri Mar 11, 2005 7:36 pm

Re: W25q128 memory and arduino nano not working

Post by adafruit2 »

CS must be connected to a GPIO pin, not graound!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”