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

Build issues depending on selected board #63

Open
jrial opened this issue Dec 1, 2018 · 3 comments
Open

Build issues depending on selected board #63

jrial opened this issue Dec 1, 2018 · 3 comments

Comments

@jrial
Copy link

jrial commented Dec 1, 2018

I've been having some issues with failed builds for a couple of weeks, and finally found a way to get them to work. The cause is strange though, and I can't explain what's going on. Reporting the issue since it appears there's some weirdness going on between Arduino-upload and the Arduino IDE.

I'm trying to compile a sketch for the NodeMCU board, and these are my results:

  1. First build was in Atom with NodeMCU 0.9 selected. It failed:

screenshot from 2018-12-01 15-47-00

  1. Then I went into Arduino IDE, selected the NodeMCU 0.9 board and performed a successful build:

screenshot from 2018-12-01 15-53-35

  1. After that, the new build succeeded without a hitch:

screenshot from 2018-12-01 15-56-54

I also noticed that if I set Atom to use the Arduino Settings for the board, and have the right board selected in the Arduino IDE, the build also succeeds. But unless I also perform a build in the Arduino IDE, I can not get the build to succeed under Atom when selecting the board directly.

@StaticRocket
Copy link
Collaborator

@jrial I'm going to try to replicate this so, just to be sure, where are you getting this board's config from? Did you just add http://arduino.esp8266.com/stable/package_esp8266com_index.json to the Additional Boards Manager section in Arduino IDE's settings?

@jrial
Copy link
Author

jrial commented Dec 31, 2018

It contains these two extra board URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://dl.espressif.com/dl/package_esp32_index.json

@StaticRocket
Copy link
Collaborator

Alright, that board config actually has its own options that are set inside the Arduino IDE through new entries in the Tools context menu. We currently don't support these advanced options (I didn't even know they existed until now), but you should be able to adjust them in the IDE and use the == Arduino Setting == board entry or a custom entry with our package to work around this. Unfortunately these options are required for verifying, building and uploading the sketch as they all work on the same build method.


Context menu entries for reference

Normal:

annotation 2019-01-05 201101

With NodeMCU 0.9 (ESP-12 Module) board selected:

annotation 2019-01-05 201007

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