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:
Any idea to fix this issue ?
Thanks
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
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: