Skip to content

Unstable work with sd card on stm32f4  #53

Closed
@UncleSam27

Description

@UncleSam27

I am using a STM32F4VE board (Black F407VE in arduino) to read and write an S29GL512N memory chip which contains 64 megabytes of data (which I need to store on a sd card). I write the data on the SD card using STM32SD library. I found that after writing 4-10 megabytes, a write error occurs on the card and the program cannot read or write anything to the card until the reboot.

I tried changing boards and cards, but the problem persisted.

I assumed that the problem might be due to the microcontroller operating at too high a frequency.

I studied the library, increased the value of the SD_CLK_DIV variable in bsp_sd.c up to 8 and this change allowed me to work with the card without errors.

I did not find a way to specify this value manually when initializing the library, maybe it's worth providing such a way.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions