Problems with microSD card module and Nucleo-L432KC
Hi,
seems that I'm having many problems using the peripherals I need for my MSc Thesis project with the Nucleo-L432KC.
Now it's time to have problems with the microSD card module.
I bought this module:
https://www.amazon.it/gp/product/B01DRT4RU4/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

I'm using the library SDFileSystem.h from
https://developer.mbed.org/cookbook/SD-Card-File-System
and I tried the example program on my Nucleo-L432KC with these connections:SD card module | Nucleo-L432KC
CS ---> D3 (SPI1_NSS)
SCK ---> A4 (SPI1_SCK)
MOSI ---> A6 (SPI1_MOSI)
MISO ---> A5 (SPI1_MISO)
VCC ---> +3v3
GND ---> GND

I'm using this
https://www.amazon.it/Kingston-SDC4-8GB-MicroSDHC-Adattatore/dp/B001CQT0X4
formatted as FAT32.I got the error message ''Could not open file for write''.
I also tried other connections, using
- {D2 (SPI1_MOSI), D10 (SPI1_MISO), A4 (SPI1_SCK), D3 (SPI1_NSS)}
- {D11 (SPI3_MOSI), D12 (SPI3_MISO), D13 (SPI3_SCK), A3 (SPI3_NSS)}
but I continue getting the same error message.
I tried to create in the SD card the directory and file .txt, used in the example program, before running the program, but it didn't work.
I don't have any other ideas to face and solve this problem, so I would appreciate any kind of help, because I'm going crazy with it!
Thank you all in advance and have a good day!
#nucleo-l432kc #micro-sd-card #sd-card #mbed #sd #stm32l432 #sd-card