[libmaple] SDIO

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
User avatar
Pito
Posts: 1497
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [libmaple] SDIO

Post by Pito » Wed Jul 05, 2017 11:36 pm

Tried with latest bin again, but got the first result after about 6 minutes
Kingston CL4 4GB

Code: Select all

size, write, read
bytes, KB/sec, KB/sec
512, 24.00, 485.60
1024,
Otherwise the Kingston works fine, under Win7 4.9MB/sec write with a large file, the results above 4k are pretty good, it seems

Code: Select all

..
4096, 1337.13, 2271.51
8192, 1702.51, 3916.33
16384, 3012.27, 5492.42
32768, 3638.46, 7413.43
Something wrong with 512-2048b buffer sizes?
Why do you not use the SdFatEX?
Pukao Hats Cleaning Services Ltd.

stevestrong
Posts: 1502
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] SDIO

Post by stevestrong » Wed Jul 05, 2017 11:53 pm

Pito wrote:
Wed Jul 05, 2017 11:36 pm
Something wrong with 512-2048b buffer sizes?
I don't know, and I cannot figure out since I don't have no such a card.
For my cards, as well as for your other cards, it seems to work fine.
Pito wrote:Why do you not use the SdFatEX?
Because if I mix it up with previous non-EX file system, it destroys the file system.

acronis
Posts: 107
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] SDIO

Post by acronis » Wed Aug 02, 2017 8:37 am

Hello.

If you #include <MapleFreeRTOS900.h> SD card (SDIO) the error appears.

Code: Select all



#include <Arduino.h>
#include <SPI.h>
#include "SdioF4.h"


SdFatSdio sd;
File file;



In file included from C:\Users\Admin\Documents\Arduino\libraries\SdFat\src/BlockDriver.h:27:0,

                 from C:\Users\Admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:27,

                 from C:\Users\Admin\Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\libraries\SDIO/SdioF4.h:5,

                 from C:\Users\Admin\Desktop\STM32F4\RFIDRTOS\RFIDRTOS.ino:12:

C:\Users\Admin\Documents\Arduino\libraries\SdFat\src/SdCard/SdSpiCard.h:264:51: error: macro "writeData" passed 2 arguments, but takes just 1
without FreeRTOS everything works.
Tell me how to fix this error

stevestrong
Posts: 1502
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] SDIO

Post by stevestrong » Wed Aug 02, 2017 8:42 am

If you are looking more carefully, you see that this is not an SDIO error, but something wrong with a macro in your sketch and SdSpiCard.h:

Code: Select all

SdSpiCard.h:264:51: error: macro "writeData" passed 2 arguments, but takes just 1
As I already told you, I cannot give you any support for FreeRTOS.

acronis
Posts: 107
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] SDIO

Post by acronis » Wed Aug 02, 2017 8:47 am

Thank you.

victor_pv
Posts: 1599
Joined: Mon Apr 27, 2015 12:12 pm

Re: [libmaple] SDIO

Post by victor_pv » Wed Aug 02, 2017 1:28 pm

Steve,

Are you porting this library to the libmaple F1? I was reading the F1 to F4 porting documents from STM and says the peripheral is pretty much the same on both, except for some bugfixes (only errata I could find for SDIO in F1 is about using some serial ports and timers in the same pins, nothing big).
The base address is different, but registers etc claim to be the same.

stevestrong
Posts: 1502
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] SDIO

Post by stevestrong » Wed Aug 02, 2017 1:32 pm

Hi Victor,
as I don't own any F1 board which would support SDIO, I cannot test it so I cannot give any support on that, that's why will not port it.
But anyone is free to do it.

victor_pv
Posts: 1599
Joined: Mon Apr 27, 2015 12:12 pm

Re: [libmaple] SDIO

Post by victor_pv » Wed Aug 02, 2017 4:46 pm

stevestrong wrote:
Wed Aug 02, 2017 1:32 pm
Hi Victor,
as I don't own any F1 board which would support SDIO, I cannot test it so I cannot give any support on that, that's why will not port it.
But anyone is free to do it.
I have some boards that support it, so may give it a shot.
It seems to be stable now right? or are you planning changes to the code?

stevestrong
Posts: 1502
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: [libmaple] SDIO

Post by stevestrong » Wed Aug 02, 2017 5:20 pm

No changes planned, it seems to work stable, but which does not mean that is bug-free :P
So you are good to go.

acronis
Posts: 107
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] SDIO

Post by acronis » Thu Aug 03, 2017 2:10 am

Hello victor_pv.

Saw Your message in the desire of porting FreeRTOS on STM32F4 microcontroller.
Do You have such plans? An example from the library works fine, but I failed to run my program with ETHERNET.
The compiler gave the error I wrote above.
Do you have the opportunity to understand and help me ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest