"undefined reference to _sbrk" error whenever using Malloc

4-Channel CAN Router with Data Logger
Post Reply
eprasetio
Posts: 1
Joined: Wed 28. Jan 2015, 01:49

"undefined reference to _sbrk" error whenever using Malloc

Post by eprasetio » Wed 28. Jan 2015, 02:24

Hi,
I got a problem whenever calling malloc() function in my code. My code is based on the Routing example code that was given from the installation package. I read from other forums saying that the way to fix this is to change the newlib(none) to newlib(nohost). However, i'm not sure how to do this. Could you help me fixing this issue?

Thanks

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: "undefined reference to _sbrk" error whenever using Mall

Post by PEAK-Support » Thu 29. Jan 2015, 10:55

Hi, we are sorry, but we could not support any problems using the GCC compiler - only PEAK-System Hardware relevant questions. Please post your question in one of the GCC forums for ARM µC.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply