cancel
Showing results for 
Search instead for 
Did you mean: 

float issue with printf/sprintf functions using Reduced C

PLane.1
Associate II

Using Nucleo H743ZI2

semihosting with printf and CLI using sprintf I am unable to get the runtime library set to Reduced C to work using float/doubles. Standard C works with floats as expected.

The initial stack size was 0x400, I have tried up to 0x1600 with Reduced C with no luck.

I don't see a reason why this wouldn't work.

Thank you,

Paul

1 REPLY 1
kurta999
Senior

I recommend you to use this small printf replacement library, it saved me from lot of headache due to floats, float malloc problem in RTOS and etc. It's also smaller than the original printf.

https://github.com/mpaland/printf