Wanted to bring this thread up again, http://sourceware.org/ml/newlib/2008/msg00384.html, because I spent several hours debugging the issue. Even though I’m pretty well versed in this stuff it took a lot of effort to get to the root cause.
Any interest in me submitting patches for this support, along with a configuration setting for newlib and maybe some documentation?
It looks like Bin Cheng is submitting the patches to newlib mainline. I’m not sure how easy it would be for me to pull in newlib-nano but maybe I’ll look at it at some point. Given that newlib is pulling in the changes from newlib-nano maybe it makes more sense for FreeRTOS to have support for newlib?
I’m using newlib-nano (with some local patches to fix up thread safety in stdio). Note that newlib-nano has broken malloc locking, so you’ll want to fix that too, probably.
Check my recent posts to the newlib list for some context.