Skip to main content
JSext.1
Associate II
May 30, 2023
Question

SD issue using STM32H747I-DISCO when writing floats converted to strings using snprintf()

  • May 30, 2023
  • 1 reply
  • 1609 views

Dear all, I have an issue that only impacts floats and doubles when converted to strings using snprintf which are then stored to an SD card. The save is run in a dedicated task using TouchGFX and I am disabling dcache before and re-enabling after saving. If I write standard strings or integers (converted to strings via snprintf), there is no issue, the task exits normally and returns to the save screen. If I attempt to save any float or a double, the program has a Memory Management fault (attached). However, the data has been written to the card successfully. Would anyone be able to point me to a solution?
_legacyfs_online_stmicro_images_0693W00000bl85fQAA.png

This topic has been closed for replies.

1 reply

ST Technical Moderator
June 13, 2023

Hello @JSext.1​,

Could you please screenshot 0xE000ED28?

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL