sprintf call causes STM32L4xx to crash
Hello,
I am trying to convert an integer number into a string. I have tried both a locally defined string and a global instance. I have increased my stack size. Interestingly this works correctly when tried on STM32CubeIDE. I am only passing 101 as an int. M am presuming it’s to do with hoc GCC being being called? Ignore RetVal as that was going to be converted into a float like 10.1.
Code excerpt:
float32_t ParamConverter(int32_t Input){
float32_t RetVal = 0;
char Holding5;
sprintf(Holding, “%i”, Input);
return 0;
}