Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `__heap_end' #102

Open
NickkoG opened this issue Feb 6, 2023 · 3 comments
Open

undefined reference to `__heap_end' #102

NickkoG opened this issue Feb 6, 2023 · 3 comments
Labels

Comments

@NickkoG
Copy link

NickkoG commented Feb 6, 2023

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`

@cpldcpu
Copy link
Owner

cpldcpu commented Nov 18, 2023

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

@ihatechoosingusernames
Copy link

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

@cpldcpu
Copy link
Owner

cpldcpu commented May 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants