2021-11-24 04:09 AM
Hai, I am using stm32h743zi nucleo board in that I am send and receiving float via UART using sprintf but facing hard fault error while running , help me to sort this issue would be appreciated.
2021-11-24 04:44 AM
First of all, normally sprintf is used for writing something into a string.
Second, maybe you need to set these checkboxes in the project settings:
2021-11-24 06:57 AM
Also note that printf/sprintf (and maybe sscanf, not sure) use the heap and a failed allocation can cause a crash.
2021-11-24 09:42 PM
Thanks,I have this done in my code still I am facing the same issue.
2023-06-01 08:22 AM
I have same Error. Did you solve it?
2023-11-04 09:03 PM
Just add
#include<cstdio>
2023-11-05 01:13 AM - edited 2023-11-05 01:16 AM
I'm not sure but I think you may send or receive some data is not char or not ascii.
Or you may send or read data oversize from your buffer so you had write in some address which it's may affect to another function and then that function is fail.
2023-11-05 02:05 AM
Would it be possible to share the part of the code you changed yourselves?
This way we will be more able to assist.