cancel
Showing results for 
Search instead for 
Did you mean: 

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

JSext.1
Associate II

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

1 REPLY 1
FBL
ST Employee

Hello @JSext.1​,

Could you please screenshot 0xE000ED28?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.