Pages: [1]   Go Down
Author Topic: Adafruit bootloader, boards.txt problems  (Read 2327 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello guys

I recently upgradet my arduino IDE to 1.0.1. and i can't get IDE to work properly. I have arduino Nano with adafruit bootloader and i always get this error.
Code:
In file included from sketch_aug24a.cpp:3:
C:\Users\Grega\Desktop\arduino-1.0.1\hardware\arduino\cores\arduino/Arduino.h:213:26: error: pins_arduino.h: No such file or directory

This is what i added to Boards.TXT
Code:
##############################################################

atmega328ADA.name=Arduino Duemilanove or Nano ATmega328 w/Adafruit bootloader

atmega328ADA.upload.protocol=stk500
atmega328ADA.upload.maximum_size=30720
atmega328ADA.upload.speed=19200

atmega328ADA.bootloader.low_fuses=0xFF
atmega328ADA.bootloader.high_fuses=0xDA
atmega328ADA.bootloader.extended_fuses=0x05
atmega328ADA.bootloader.path=atmega
atmega328ADA.bootloader.file=ATmegaBOOT_xx8_adaboot328.hex
atmega328ADA.bootloader.unlock_bits=0x3F
atmega328ADA.bootloader.lock_bits=0x0F

atmega328ADA.build.mcu=atmega328p
atmega328ADA.build.f_cpu=16000000L
atmega328ADA.build.core=arduino

##############################################################

I copied all files from adafruit zip to bootloaders directory


does anyone know what im doing wrong ?
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Same problem here.
The boards.txt file has been taken from here
http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Copyed pins_ardino.h file from \Arduino\arduino-1.0.1\hardware\arduino\variants\standard to D:\Arduino\arduino-1.0.1\hardware\arduino\cores\arduino and problem has gone.
But I think Arduino team should patch this anyway.
Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You think the Arduino team should provide a patch for a third party's bootloader? Isn't that up to the third party?
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this third party?
http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, no, that one isn't. I thought you were referring to the OP's Adafruit bootloader.
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As I see Adafruit's bootloader file is the same.
Problem isn't in bootloader, problem is in Arduino.h file, there is statement
Code:
#include "pins_arduino.h"
that instructs compiler to load the library from local folder, but there is no such file in the same folder.
 
Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The breadboard.zip file from the tutorial in http://arduino.cc/en/Tutorial/ArduinoToBreadboard contains only the file boards.txt in the subfolder breadboard.

This file is missing a line at the end to indicate the board variant:
Code:
atmega328bb.build.variant=standard

The subfolder must also contain the standard variant with the corresponding pins_arduino.h file.

So, follow the instructions in the tutorial to open your sketchbook folder and create the subfolder \hardware\breadboard\ containing the file boards.txt.
Then edit the file boards.txt to add the missing line.
Then create a subfolder \variants\standard\, and copy the file pins_arduino.h from the folder hardware\arduino\variants\standard\ in your Arduino IDE installation.
In Ubuntu 12.10 this is \usr\share\arduino\ when the Arduino IDE is installed using the Ubuntu Software Center.

This will make the compilation work also for gnoduido.


Logged

Pages: [1]   Go Up
Jump to: