LPC11C24 and newlibnano

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC11C24 and newlibnano

1,216件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,029件の閲覧回数
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 件の賞賛
返信

1,029件の閲覧回数
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 件の賞賛
返信