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

Fails compiling on Nano (ATSAMD21) #4

Open
kb- opened this issue Mar 7, 2017 · 3 comments
Open

Fails compiling on Nano (ATSAMD21) #4

kb- opened this issue Mar 7, 2017 · 3 comments

Comments

@kb-
Copy link

kb- commented Mar 7, 2017

Hi,

I get the following error when I compile the code:

Arduino: 1.8.1 Hourly Build 2017/01/05 05:34 (Windows 8.1), Board: "Nano Zero (Native USB Port)"

libraries\MemoryFree\MemoryFree.cpp.o: In function `freeMemory':

C:\Users\Olivier\Documents\Arduino\libraries\MemoryFree/MemoryFree.cpp:18: undefined reference to `__brkval'

C:\Users\Olivier\Documents\Arduino\libraries\MemoryFree/MemoryFree.cpp:18: undefined reference to `__bss_end'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Nano Zero (Native USB Port).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@surfsoft
Copy link

surfsoft commented Nov 7, 2018

Also happens on Adafruit Feather Huzzah with ESP8266

@per1234
Copy link

per1234 commented Nov 7, 2018

I'm pretty sure this is an AVR-only library. So no, it's not going to work on your SAMD (e.g. Zero, MKR) or ESP8266.

The ESP8266 Core for Arduino has built-in functions for this:
https://arduino-esp8266.readthedocs.io/en/latest/libraries.html#esp-specific-apis

@surfsoft
Copy link

surfsoft commented Nov 7, 2018

Yeah, just found that too. Thanks for the response though.

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

No branches or pull requests

3 participants