9 years, 9 months ago.

SDFileSystem with STM32F74DISCO

Hi Neil everyone ;) I am a student who had already used mbed with a LPC1768 in simple project. I've got a new one where I need to write in a csv file but for now I am trying it in a text file.

I trying to use Neil re-written library with a simple code and a STM32F74 DISCOVERY assuming that :

MOSI=DI=CMD=PD_2 ; MISO=DO=DAT0=PC_8 ; SCLK=CLK=CLK=PC_12 ; CS= = DAT3=PC_11 ; CD= Card detector =PC_13 ;

I used this : https://learn.adafruit.com/downloads/pdf/adafruit-micro-sd-breakout-board-card-tutorial.pdf p8-9 ->spi http://elm-chan.org/docs/mmc/gfx1/micro_contact.jpeg spi->sd http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00190424.pdf p24 sd->STM32F74

Unfortunately it doesn't work. I can compile but nothing happen and the uC dont even enter in the main fonction. Maybe I've got all wrong with my pins declaration ?

If you have a clue,I will be greatful. Thank you for your time and sorry for my english, that isn't my mother tongue :)

  1. include "mbed.h"
  2. include "SDFileSystem.h" SDFileSystem sd(PC_8, PC_2, PC_12, PD_11, "sd"); DigitalOut myled(LED1);

int main() { while(1) { myled = 1; LED is ON wait(0.2); 200 ms myled = 0; LED is OFF wait(1.0); 1 sec } }

Thomas

Be the first to answer this question.