Skip to main content
Santhamurthy R
Associate III
March 27, 2017
Question

Undefined reference to 'sbrk'

  • March 27, 2017
  • 1 reply
  • 2285 views
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
    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    March 28, 2017
    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