Can not compile (link) because of the famous undefined '_sbrk'
I tried to update my compiler from Freddie Chopin's Bleeding Edge Toolkit to official ARM-GCC 4.7 2013 Update 2 but could not create the final image because of the well known "sbrkr.
It wasn't there with the old compiler. I know this is related to libnosys.a library and it should be added to linker parameters. Here is my parameter group:
"-lc -lnosys --specs=nano.specs"
I'm sure ld.exe (linker) is accessing the libnosys.a via using Sysinternals' Procmon. It reads the library well without an error.
So shouldn't I get the final elf file? Am I missing something else?
P.S: I'm using calloc/free, that's why it asks for _sbrk function.
Toolchain:
-------------
IDE: Eclipse Juno 4.2.2 (+ OpenOCD 0.7.0 and Zylin-Cygwin)
Compiler: ARM-GCC 4.7-2013-q2-update
MCU: STM32L100RB
Debugger: STLink/V2 (STM32L Discovery Kit)
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Grieger
- Solved:
- Last query:
- Last reply: