-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
Compiling difference between Arduino IDE and Platformio #506
Comments
Hello, I seem to have the same problem on Windows 10 64-bit, just installed platformio IDE 1.2.1 core 3.2.1 with clang & python 2.7, all is updated. What can I provide / how to troubleshoot? Compilation works perfectly fine on Arduino IDE. Error: C:/Users/Massi/Dropbox/Arduino, RPi, Adafruit/test/m0_mudra_bleuart_v1.1/m0_mudra_bleuart_v1.1/m0_mudra_bleuart_v1.1.ino:168:51: error: 'isUSBOn' was not declared in this scope Many thanks |
Moving methods loop() and setup() at the very end of the .ino file, after all accessory methods, seems to have resolved the issue. Still, a discrepancy between Arduino IDE and Platformio. I suspect it's some build flag re. forward reference but cannot find where to look for it ... |
@mbariola Could you provide INO file to reproduce this issue? It looks that INO to CPP converter doesn't work correctly in your case. Thanks. |
@ivankravets sure, is there a way to send it privately to you? it is a project I want to develop commercially and so I'd like to not attach it publicly here |
Of course, please send to [email protected]. I'll not share it. |
Thanks @ivankravets , just sent. |
@mbariola Thanks a lot for provided demo project. Our INO to CPP is VERY STRICT. See Please remove spaces/tabs before |
@mbariola Please note that I deleted your email and all tracks related to your project. |
@ivankravets so it was a spurious space character? wow, I'd have never guessed (nor found) that. I removed it and all compiles. Thanks for your troubleshooting, confidentiality and quick answer. Now I know what to look for if it ever pops up again. cheers! |
@mbariola yes, we don't catch spaces before types of prototypes. It will break general regular expression. A few recommendations to your project:
|
ok, I can't say I comprehend the why of what you suggest me to do as I picked platformio just 3 days ago and had used arduino.cc's manager to not change too much in one go, but I'll clone the project to be sure and follow your instructions. it'll help me in familiarizing with the platform. thanks! |
OK, done, took just a few minutes and properly separating general libs such as the adafruit bluetooth one from the project specific ones such as BluefruitConfig.h. Thanks! |
Happy coding with PlatformIO! 😊 |
@mbariola would be thankful for a star 🌟 |
gladly, how would I do it? star your profile .. this issue .. the project ...? |
Yes, please use "🌟 Star" button above. |
Done! Cheers :-) |
Moved from platformio/platformio-atom-ide#38
First, let me say thank you for this incredible Atom plugin!!! It majorly improves my dev time compared with the Arduino IDE!
I successfully compiled and uploaded a few programs for Arduino Due, but I ran into one bug.
The following program compiles, uploads and works with the Arduino IDE:
Using Atom + Platformio, I get the following build error:
error: 'fillMyBuffer' was not declared in this scope
Here's what's on the build panel:
Thanks again!
The text was updated successfully, but these errors were encountered: