Skip to main content
Hoang_Tran
Associate III
June 22, 2020
Question

cubeide sprintf float error with FreeRTOS

  • June 22, 2020
  • 2 replies
  • 4086 views

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

This topic has been closed for replies.

2 replies

SKacp.1
Associate
June 22, 2020
Hoang_Tran
Associate III
June 22, 2020

thank you verry much!

kurta999
Senior
June 22, 2020

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

Hoang_Tran
Associate III
June 22, 2020

i will try.Thank you for replay.