stdio.h....for printf(),sprintf() support on Newlib(None)...

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

stdio.h....for printf(),sprintf() support on Newlib(None)...

514 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by chintan.parmar on Sat Oct 27 00:08:55 MST 2012
Hello Every one,

I am using LPCExpressso_V4.3.

I want to use stdio.h for printf(),sprintf() function through newlib....
As per mention changes on code_red...i have switched from Redlib to newlib.

but i am getting error that is mentioned below:

sbrkr.c:(.text+0x18): undefined reference to `_sbrk'......so many undefined reference show......:confused::confused:

i have already...libm.a = C:\nxp\LPCXpresso_4.3.0_1023\lpcxpresso\Tools\arm-none-eabi\lib
to
Properties->Settings->Tool Settings->MCU Linker->Libraries->Library search path

but still
libm.a file isnot getting....:confused:
what is solution????


Please solve my problem as soon as possible....
0 Kudos
2 Replies

352 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sat Oct 27 08:46:25 MST 2012
Suggest you read this, to discover the difference between the none, nohost and semihost libraries.
http://support.code-red-tech.com/CodeRedWiki/LibraryVariants
0 Kudos

352 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Sat Oct 27 01:06:38 MST 2012
Newlib(None) is not including this functions :eek:

http://support.code-red-tech.com/CodeRedWiki/UndefinedReference
0 Kudos