Content originally posted in LPCWare by ECamino on Thu Mar 14 11:26:09 MST 2013
Hi,
I can build my project fine in debug. When I try to build in release, I get:
[LEFT]In function `malloc':[/LEFT]
alloc.c.text.malloc+0x78): undefined reference to `_sbrk'
I researched the error on CR site. It seems that to build the release, the setting under tool settings for Target has to be Redlib, Redlib, and Redlib (semihost), under MCU Linker.
But the debug version builds Redlib, Redlib, Redlib (none).
If host/semihost has to do with debugging support, then why does release not build with MCU Linker set to Redlib (none)?
I have not modified linker script.
EC
[SIZE=2][/SIZE]