Every time my program runs into a sprintf with a float specifier, the whole system crashes. This is after porting from Codewarrior to KDS, with Codewarrior I had no problems whatsoever using floats with sprintf.
I have searched around and found multiple people with the same problem(or similar), the resolutions for their problem did not work for me.
I have tried:
- Adding "Use float with nano printf(-u _printf_float)"
- Made sure that MQX_INCLUDE_FLOATING_POINT_IO = 1
- Made sure that PSP_HAS_FPU = 1
- Increasing stack sizes
There has also been mention of increasing heap size, but looking at the linker file, there is not anything for the heap. With that said, I do not believe it uses the heap. If the program uses the heap, I am not sure where to increase that. I would welcome suggestions on where to find that.
Like I said, this program worked just fine until porting from Codewarrior to KDS, so I'm not sure what could be different between the two. Same company, same chip, seems like it would be a nearly seamless transition.
Links I have already used to try and solve this:
Thanks much!