-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't format with SdFormatter.ino and XSTD Adafruit SPI FLASH #382
Comments
I can't help since it is not a true SD. Contact Adafruit and use their SD library. |
@greiman Yes it' not a true SD but it's like an SD card so I don't know if it change something or not. But I've used your library to read/wrtite everything works perfectly, it's only the formatter has bricked my card |
I suspect you should never format the card since it is pre-formatted. Maybe this card does not support formatting with the SD standard format. The flash and buffer layout for cards is specified by the SD Association and I use the SD standard layout for cards. Contact Adafruit - I only have internal info for cards that comply with the SD Association Standard. |
Ok nice thanks for your help |
Just for information , I've contacted the manufacturer of the device, and here is that answer
|
What type board/cpu are you using? The errors look like SPI hardware failures. The SdFormatter uses the highest speed possible and dedicated SPI. Some SAMD and ESP boards require a slower speed and shared SPI. Try editing these settings in SdFormatter:
|
I'm using a personnal board build with an |
By default the Arduino SD.h wrapper for my 2009 version of SdFat uses a clock rate of 4 MHz for SD.begin(csPin). In 2009 there was only the AVR 328 Arduino and I allowed 8 Mhz and 4 MHz with 4 MHz the default since the first SD modules used resistors for 5V to 3.3V level shifters and would not run at 8 MHz. Arduino has added a more modern SD.begin(clock, csPin). It is amazing to still see most of the 2009 SdFat library in D:\arduino\arduino-1.8.19\libraries\SD\src\utility. with the old copyright:
|
Hi @greiman
|
Try slower SPI, like 8 MHz. SAMD is a dog, AVR is usually faster. |
Hi,
I'm working with this module https://learn.adafruit.com/adafruit-spi-flash-sd-card/overview I've just tried to format it with the SdFormatter example but after thaht my card is down, when I try a SdInfo I got
Try to do a new format with SdFormatter
And after this new format
Any ideas?
The text was updated successfully, but these errors were encountered: