LPC11C24 and newlibnano

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11C24 and newlibnano

690 Views
gfa
Contributor I

I'm using an LPC11C24 and I implement in my code the printf routine, using redlib.

But the printf function is very heavy in term of code size. So I tried to use the redlib nano, but I still have the following compliation error:

erreur newlibnano.jpg

 

Any idea to fix this issue ?

Thanks

0 Kudos
Reply
2 Replies

503 Views
michaelhermann0
Contributor III

I have used both redlib and newlib(nano) in some projects.

While I prefer newlib (redlib is closed source and development seems to have stopped) I have also noted that newlib(nano) grabs about 1.5k of RAM right at the beginning.

For the LPC11xx series that is quite a lot.

In terms of ROM footprint redlib and nano were on equal footing (2015).

Mike

0 Kudos
Reply

503 Views
converse
Senior Contributor V

If you look in the startup file, you will see that this code is conditionally compiled if you have __REDLIB__ defined. So, stop defining __REDLIB__.

Alternatively, read this FAQ on switching between the different C libraries:

https://community.nxp.com/thread/389104 

0 Kudos
Reply