cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined reference to 'sbrk'

Santhamurthy R
Associate II
Posted on March 27, 2017 at 10:53

Hello All,

I am using SPC5studio version 5.2.3 and SPC560B54L5 board.

I have problem in using sprintf() library function.

In a normal application sprintf() works fine but while using it in bootloader application it is creating a problem with the below error. Tried inserting relevant header files (string.h,stdio.h) also reinstalled the Free PowerPC-VLE GCC 4.9.2 toolchain but still the issue.

Error log in console:

0690X00000606dDQAQ.png

Kindly provide your suggestion to solve this issue.

Thanks in Advance,

With Regards,

R.Santhamurthy

#spc5studio
1 REPLY 1
Erwan YVIN
ST Employee
Posted on March 28, 2017 at 14:44

Hello ,

You can try to add sbrk in your main.c

https://community.st.com/0D50X00009XkgnUSAR

Best regards

Erwan