cpldcpu/light_ws2812

undefined reference to `__heap_end'

Opened this issue · 3 comments

Hello, I use Arduino 2.0.2 (lastest build) and I have imported the light_WS2812 ZIP file.
I try to complie the example but I get this error:

.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr25/tiny-stack/libc.a(malloc.o):(.data+0x0): undefined reference to __heap_end'
collect2: error: ld returned 1 exit status`

I updated the zip file - i hope its fixed now?

Not fixed for me, compiling for ATTiny13A on Arduino IDE 2.2.1

I imported the zip file and tried to compile the blinky example with updated pin.

.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr25/tiny-stack/libc.a(malloc.o):(.data+0x0): undefined reference to `__heap_end'
collect2: error: ld returned 1 exit status

I believe it is running out of memory on the ATiny13A. Just exclude that example in the Makefile.