-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
sdiof1 library example #694
Comments
You may adapt this example for F4 to F1 (reduce buffer size). |
There is an error when compiling I'm using Sdfat library from Bill Greiman v1.1.0 |
You have to enable USE_SDIO in configuration file of SdFat. |
Insert |
I have enabled USE_SDIO in configuration and added #define ENABLE_SDIO_CLASS 1, but still same error. |
Do you use Arduino IDE? |
I'm using Arduino IDE. |
I don't know. |
You must be missing some installation detail if SDIo is not recognized. |
https://github.com/victorpv/SdFat |
That fork of Victor is very old. |
https://github.com/stevstrong/SdFat |
Please revise your installation directories. |
C:\Users\serka\Documents\Arduino\libraries... I can use sdfat with normal SPI examples. But it give an error when I want to compile sdio examples |
I'm using Generic stm32103R as board. variant Stm32103RE |
Try to compile for Generic STM32F103C (blue pill). |
Example in Sdfat by stevstrong STM32test.... Sdfat Bill Greiman works perfect with stm32f103 with spi ( SPIClass and Arduino SPi library, both works) |
Using library SPI at version 1.0 in folder: C:\Users\serka\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2019.9.24\libraries\SP Using library SdFat at version 1.0.14 in folder: C:\Users\serka\Documents\Arduino\libraries\SdFat |
I passed "error: 'SdFatSdio' does not name a type" this writing #define ENABLE_SDIO_CLASS 1 under
|
This is because the core you are using does not have that specific SPI function. |
2019.9.24 stmduino STM32F1 ... what is your board manager url ? |
Installation procedure: https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Installation For the ZIP file containing the STM32 files download use this link: https://github.com/stevstrong/Arduino_STM32/archive/master.zip |
I copied your repo, deleted other stm2duino.com repo.... COmpiled for STM32f103R
|
OK, I see that my repo differs a lot from the original repo, so I suggest you to get the original repo and replace only the SPI lib files from my repo to your local (original) repo. |
No luck :) |
I tried fresh from your STM32 Arduino fork, Sdfat from your fork. It compiles for F407 but for F103, BLINK example throw error...
|
I just made two commits to support SDIO for variant F103R8 in my repo. Please report any further issues relating my repo in my repo: https://github.com/stevstrong/Arduino_STM32/issues |
@serkanc , |
Yes, I have compiled and tested. But SdFatEx was faster than Sdio... I have tried with 1 bus line... |
@serkanc |
SDIO is slower that SPI with 1 single data line because we can run the SPI port at 72Mhz and the SDIO at 48Mhz max if I remember right. The big advantage for SDIO comes from using 4 bits. |
|
SPI was better and stable. |
@serkanc , |
I will test it 4 bus width, then you can add it. |
I’m using fgets method to read txt file line by line. But it’s too slow against to benchmarks. Can you give me advice for faster line reading of a txt file? |
Hi,
I need sample sdiof1 library example to try sdio port on stm32f103ret breakout board.
I can't find any example for the library.
Thanks
The text was updated successfully, but these errors were encountered: