# FreeRTOS + newlib

**URL:** <https://forums.freertos.org/t/freertos-newlib/1541>\
**Category:** Kernel\
**Created:** [June 2, 2013, 1:05am UTC](https://forums.freertos.org/t/freertos-newlib/1541 "2013-06-02T01:05:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 2, 2013, 1:05am UTC](https://forums.freertos.org/t/freertos-newlib/1541/1 "2013-06-02T01:05:29Z")

</div>

**[chrismorgan](https://sourceforge.net/u/chrismorgan/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#5e8d):

Wanted to bring this thread up again, [http://sourceware.org/ml/newlib/2008/msg00384.html,](http://sourceware.org/ml/newlib/2008/msg00384.html%2C) 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?

Chris

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 2, 2013, 7:05am UTC](https://forums.freertos.org/t/freertos-newlib/1541/2 "2013-06-02T07:05:08Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#f81a):

Please add a link to the same post in the SourceForge feature request tracker.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 2, 2013, 5:39pm UTC](https://forums.freertos.org/t/freertos-newlib/1541/3 "2013-06-02T17:39:16Z")

</div>

**[chrismorgan](https://sourceforge.net/u/chrismorgan/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#639e):

Hi Richard.

Which micro lib are you referring to for gcc on arm? I’m using an stm32f1 part. I wasn’t aware that there was one.

Presuming I go the newlib route, should I just submit the patches to the patch tracker here on sourceforge?

Chris

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 2, 2013, 6:14pm UTC](https://forums.freertos.org/t/freertos-newlib/1541/4 "2013-06-02T18:14:55Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#cfe8):

Google newlib-nano and you will find something. I think its also included in the official Cortex-M GCC distributed from [Launchpad.com](http://Launchpad.com).

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 2, 2013, 6:41pm UTC](https://forums.freertos.org/t/freertos-newlib/1541/5 "2013-06-02T18:41:34Z")

</div>

**[chrismorgan](https://sourceforge.net/u/chrismorgan/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#5279):

Hi Dave.

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?

Chris

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 2, 2013, 6:44pm UTC](https://forums.freertos.org/t/freertos-newlib/1541/6 "2013-06-02T18:44:35Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#89da):

Please post the same link you have already posted here to the feature request tracker, rather than posting a patch.

Thanks and regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 2, 2013, 6:52pm UTC](https://forums.freertos.org/t/freertos-newlib/1541/7 "2013-06-02T18:52:55Z")

</div>

**[chrismorgan](https://sourceforge.net/u/chrismorgan/)** wrote on [Sunday, June 02, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#9c6c):

Hi Richard.

Added to the feature request tracker.

Chris

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 6, 2013, 5:48pm UTC](https://forums.freertos.org/t/freertos-newlib/1541/8 "2013-06-06T17:48:16Z")

</div>

**[carlnorum](https://sourceforge.net/u/carlnorum/)** wrote on [Thursday, June 06, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/46c4c4aa/#6414):

I’m using newlib-nano (with some local patches to fix up thread safety in stdio).&nbsp; 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.
