Hi,
I am using KDS3.2.0 and KSDK 2.0 for K66F development.
I can use PRINTF to output debug message..
When I use sprintf and have the following problem:
sprintf(&LCD_character[d_position], "DDD"); ---Works fine
sprintf(&LCD_character[d_position], "%s_", temp_char); ---Not working, get the following error:
`_sbrk' referenced in section `.text._sbrk_r' of c:/fsl32/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libg_s.a(lib_a-sbrkr.o): defined in discarded section `.text' of ./utilities/fsl_sbrk.o (symbol from plugin)
`errno' referenced in section `.text._sbrk_r' of c:/fsl32/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libg_s.a(lib_a-sbrkr.o): defined in discarded section `.text' of ./middleware/lwip_2.0.0/port/sys_arch.o (symbol from plugin)
collect2.exe: error: ld returned 1 exit status
makefile:103: recipe for target 'iNetVu7710_V50_FW.elf' failed
make: *** [iNetVu7710_V50_FW.elf] Error 1
I tried the way that Erich provided to change "caddr_t _sbrk(int incr)" in fsl_sbrk.c to
void _sbrk(void){}
It didn't fix the problem...
Can anybody to help me to fix this problem?
Thanks,
Christie