I have a question about an hard fault generated by a line of code.
I'm working with a STM32F401RE and Atollic True Studio
The line is :
the BT_deviceTAB.BDADDRtype is char tab;
and previously filled with a string ended with '\0'
The hardfault is :
Bus, memory management or usage fault (FORCED)
Attempt to switch to invalid state (INVSTATE)
But when i use the following methode i don't have any problems :
Do you have an explanation of how this functions works.
I'm very surprised that sprintf generate memory hard fault Oo !
Thanks a lot