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

Program linking working in previous version not working in 3.1 #11

Closed
albertoferna opened this issue Sep 22, 2016 · 2 comments
Closed

Comments

@albertoferna
Copy link

I have a program that uses arduino's SD library. It used to compile and work (using 3.0 development version and std32duino) but it gives a linker error with the latest version. I reduced the code to it minimum:
`#define SD_CS 25

include <Arduino.h>

include <SPI.h>

include <SD.h>

void setup() {
SPI.setModule(2);
pinMode(SD_CS, OUTPUT);
SD.begin(SD_CS);
}

void loop() {
}`

I get the error: undefined reference to `_sbrk' when linking. I have tried to set lib_ldf_mode to both 1 and 2. I have also tried installing the SD library from within platformio IDE as well as add it to the libs folder of the project.
Any ideas why this is not working with this version?

@ivankravets
Copy link
Member

Duplicate #10

@albertoferna
Copy link
Author

Upps, sorry for the duplicate, missed that

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

No branches or pull requests

2 participants