Loading...
 
Skip to main content

System Workbench for STM32


Issue snprintf floats

Ok I found a discussion on reddit. One of the fixes they describe is doing a garbage snprintf call very early. This allocates the necessary memory. This seems to work. The obvious problem is will it always work?

https://www.reddit.com/r/embedded/comments/9uvogb/freertos_malloc_and_c_standard_library/e9896qo?utm_source=share&utm_medium=web2x

I have updated my project with the fix:
https://bitbucket.org/arminoonk/printf-float-issue/src/master/