Skip to content

Incorrect "Bootloader file specified but missing" warning #3831

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

Closed
per1234 opened this issue Sep 21, 2015 · 6 comments
Closed

Incorrect "Bootloader file specified but missing" warning #3831

per1234 opened this issue Sep 21, 2015 · 6 comments
Assignees
Labels
Component: Compilation Related to compilation of Arduino sketches
Milestone

Comments

@per1234
Copy link
Collaborator

per1234 commented Sep 21, 2015

Using Arduino IDE 1.6.6 Hourly Build 2015/09/18 06:03 with Windows 7 64bit

  • Select any board with a bootloader specified that is not located under Arduino15/packages/arduino/hardware/avr
  • Compile a sketch
  • Output window displays the warning. For example: Bootloader file specified but missing: C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.8\bootloaders\caterina\Caterina-Yun-noblink.hex

Edit: The Yun warning is caused by a different issue, a correct example is from Mighty 1284P:
Bootloader file specified but missing: C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.8\bootloaders\optiboot\optiboot_atmega1284p.hex

@ffissore
Copy link
Contributor

Can you give the actual board you selected? If I select a Yun, no warning is printed

@ffissore ffissore added the Waiting for feedback More information must be provided before we can proceed label Sep 21, 2015
@ffissore ffissore added this to the Release 1.6.6 milestone Sep 21, 2015
@ffissore ffissore self-assigned this Sep 21, 2015
@ffissore ffissore added the Component: Compilation Related to compilation of Arduino sketches label Sep 21, 2015
@per1234
Copy link
Collaborator Author

per1234 commented Sep 21, 2015

It's Yun but I get it for any 3rd party boards also, for example Adafruit Metro. I think I know why we're getting different results. The Arduino AVR Boards package I'm using is located at \Arduino15\packages\arduino\hardware\avr\1.6.8 because I had updated the package from 1.6.7 previously. However when I deleted my Arduino15 and sketchbook/hardware folders to make sure no 3rd party hardware files were causing the issue I noticed that the IDE uses C:\Program Files (x86)\arduino-nightly\hardware\arduino\avr for Arduino AVR Boards v1.6.8 instead of using the Arduino15 folder. When I compile using that location I don't get the warning. So I installed Arduino AVR Boards v1.6.7 and the warning shows up again. So it happens only when the Arduino AVR Boards package is located in the Arduino15 folder and not when it's in the IDE install folder.

EDIT: Yun and Adafruit Metro is a different issue
EDIT: The issue occurs whether using the bundled AVR core or the Boards Manager installed Arduino15 core.

@ffissore
Copy link
Contributor

Ok then. This is the same issue as #3821. Bundled AVR core, while still published as 1.6.8, is really 1.6.9. In order to avoid a whole set of different configurations specific to the hourly builds, we don't use a greater version number for bundled AVR core.
So, when you're using bundled AVR core 1.6.8, you're actually using 1.6.9, while the core installed through boards manager is the "old" 1.6.8.
Assigning to @cmaglie as this will autofix once he'll release AVR 1.6.9

@ffissore ffissore assigned cmaglie and unassigned ffissore Sep 21, 2015
@ffissore ffissore removed the Waiting for feedback More information must be provided before we can proceed label Sep 21, 2015
@per1234
Copy link
Collaborator Author

per1234 commented Sep 21, 2015

Oh I see, sorry the Yun was a bad example, that bootloader actually is missing from the non-bundled 1.6.8 so the warning is correct in that case. I'm having the issue with some 3rd party hardware like Mighty 1284P but not with others like Arduino on a Breadboard. I haven't figured out what the difference is but I'll update if I find out.

@per1234
Copy link
Collaborator Author

per1234 commented Sep 26, 2015

I figured out why Arduino on a Breadboard is not causing the warning to appear. A bootloader of the same name as that core specifies:
atmega328bb.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex)
is present in C:\Program Files (x86)\arduino-nightly\hardware\arduino\avr\bootloaders\atmega. The issue is that the IDE is looking in the wrong location for the bootloader file when it does the check that causes the Bootloader file specified but missing message. I really don't think this is related to using the bundled AVR core because I still get this error if I delete the C:\Program Files (x86)\arduino-nightly\hardware\arduino\avr folder which should force the use of C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.8 installed via Boards Manager which I'm guessing is the true Arduino AVR Boards 1.6.8 core.

To replicate this issue using Adafruit Flora as an example(must use Arduino IDE 1.6.6):

@per1234
Copy link
Collaborator Author

per1234 commented Sep 28, 2015

Fi\xed via arduino/arduino-builder@d661e83 thanks ffissore!

@per1234 per1234 closed this as completed Sep 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Compilation Related to compilation of Arduino sketches
Projects
None yet
Development

No branches or pull requests

3 participants