cancel
Showing results for 
Search instead for 
Did you mean: 

cubeide sprintf float error with FreeRTOS

Hoang_Tran
Associate III

I trying to force some types of floats into string types. When using keil c, there is no problem, but when using Cube IDE, the program jumps to HardFault_Handler. I have allowed to use float with printf from newlib - nano in the tool setting. I only get this error when using FreeRTOS and if not using FreeRTOS then there is no problem. I tried both STM32f4 and H7 to get the same error.

Please help me .

thank all0693W000001rEGIQA2.png0693W000001rEG8QAM.png

6 REPLIES 6
SKacp.1
Senior II
kurta999
Senior

Or use this printf as replacement: https://github.com/mpaland/printf

thank you verry much!

i will try.Thank you for replay.

It's worked.thank you.

sprintf is working but osDelay is not working anymore.