Am big novice at SD only used it once years ago on PIC and now trying to get SD working on WeAct STM32H563 board Arduino.
I have read much on subject but either missed something on done something dumb.
problem is SD.begin() must be returning false as stays in SD.begin wait for true loop forever, code snippet below also STM32 card and other details.
I get the "Initializing SD card..." msg but then loops awaiting good status.
Card info here https://github.com/WeActStudio/WeActStu ... SchDoc.pdf
WeAct Board I have is version 1.1. Have fitted Micro SD card type HC 64gb this card is working in Windows PC ok.
Help much applicated IMK
Code: Select all
#include <STM32SD.h>
#define SD_DETECT_PIN PA8
void setup()
{// Open serial communications and wait for port to open:
Serial.begin( 115200 );
while( !Serial ); // wait for serial port to connect.
Serial.print("Initializing SD card..."); // see if the card is present and can be initialized:
SD.setDx( PC8 , PC9 , PC10 , PC11 );
SD.setCMD( PD2 );
SD.setCK( PC12 );
while( !SD.begin( SD_DETECT_PIN ) )
{
delay(10);
}
delay(100);
Serial.println("card initialized.");
}