Closed Bambofy closed 3 years ago
Hi @Bambofy which target you used ?
Hi @Bambofy which target you used ?
Nucleo L452RE
Not the L452RE-P?
No
Could you be more precise on your environment? Arduino IDE version? STM32 core version? STM32SD library version? ... Thanks in advance
Using the latest Core release 19.0, the latest STM32SD 1.2.2, Arduino IDE 1.8.13 and enabling the HAL SD module thanks the hal_conf_extra.h. I'm able to build properly the CardInfo example for Nucleo L452:
Sketch uses 31252 bytes (5%) of program storage space. Maximum is 524288 bytes. Global variables use 2304 bytes (1%) of dynamic memory, leaving 161536 bytes for local variables. Maximum is 163840 bytes.
For the Nucleo L452RE, the PinMap_SD
has been added since the 1.8.0 core version. So it seems you used an old version of the core, right?
Sorry for the delay,
Core version is 1.9.0 from the library manager, i am using visual micro to upload the code, when i try arduino IDE instead, it works. sSo it must be a bug with visual micro. Thanks for your help :)!
I'm using also VSCode to debug but I do not have this issue. So probably a wrong configuration with Arduino plugin.
Hi i'm trying to use the STM32SD library on an STM32L452RE chip but i can't get it to compile.
Here's the linker messages:
I've used these defines in the hal_conf_extra.h which at the root of my project.
And these flags in build_opt.h
The card reader is connected to pins here:
And i'm trying to configure STM32Card to use these pins