$ 0 0 Solved. Had to add --heap_size=512 and --printf_support=nofloat in linker and compiler options.