cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to SD card with Simulink Embedded Coder Support for STM32 Microcontrollers

escott01
Visitor

Has anyone successfully used this Simulink STM32 guide to write to an SD card? I am trying to run a simulink model on a Nucleo-F767ZI and write the output to an SD card. I have tried to follow the directions, but it is not working. The model can compile and run on the board, but when I check the SD card, it is still empty. I have tried different clock speeds, 1-bit and 4-bit modes, but nothing seems to work. I scoped the clock signal, and it seems to be at 400 kHz, which is indicative of it being in the initialization stage. Does anyone know what may be wrong? Thanks!

 

 

1 REPLY 1

@escott01 wrote:

 I have tried to follow the directions, but it is not working. 


It's a Mathworks document - nothing to do with ST - so you need to take that up with Mathworks

https://uk.mathworks.com/support/contact_us.html?s_tid=hc_resources

https://uk.mathworks.com/matlabcentral/?s_tid=hc_resources

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.