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

Can't compile in arduino #5

Open
andrezibaia opened this issue Sep 22, 2015 · 2 comments
Open

Can't compile in arduino #5

andrezibaia opened this issue Sep 22, 2015 · 2 comments

Comments

@andrezibaia
Copy link

Hi,

First things first: thank you for this project! I have been having some trouble getting the milight bridge to work consistently and I hope to overcome its limitations with openmili.

That said, I am having some trouble getting this code to compile in Arduino IDE. I am trying to flash it to an ESP8266 ESP-201 module, but keep hitting the same walls:

I get this error:
"printf.h:34:27: error: 'fdevopen' was not declared in this scope
fdevopen( &serial_putc, 0 );"

...and if I comment said line, I get this one:

several times "openmili.ino:23: undefined reference to `putchar'" and then "collect2.exe: error: ld returned 1 exit status. Error compiling."

What am I doing wrong?

PS: if I select an Arduino Pro Mini board, it compiles correctly.

Thanks!

André

@VincentGijsen
Copy link

Hi,

I've had a similar issue, although i'm using this marvellous code with an MSP430, so ENRGIA, not arduino.

That being said, I had the same issue with put char.

i've added

#undef putchar
int putchar(int c) {
    Serial.write(c);
    return (c);
}

into the libraries/RF24/RF24.cpp, although It might work within your own sketch as well.

good luck

@andrezibaia
Copy link
Author

Thank you very much! I will try that and will let you know how it goes.

A ter, 29/12/2015, 19:01, Vincent Gijsen [email protected]
escreveu:

Hi,

I've had a similar issue, although i'm using this marvellous code with an
MSP430, so ENRGIA, not arduino.

That being said, I had the same issue with put char.

i've added

#undef putchar
int putchar(int c) {
Serial.write(c);
return (c);
}

into the libraries/RF24/RF24.cpp, although It might work within your own
sketch as well.

good luck


Reply to this email directly or view it on GitHub
#5 (comment).

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

2 participants