Go Down

Topic: Arduino as ISP, Mininial Circuit Error- pins_arduino.h No such file.. (Read 5 times) previous topic - next topic

Erni


Obviously you are missing the file pins_arduino.h, it should be in
hardware\arduino\cores\arduino



karl_b

New in Arduino 1.0 is the hardware/arduino/variants, you need to add a variant to your boards.txt like this:

atmega328bb.build.variant=standard

kermit

Hi Erni
looks like the pins_arduino.h files are there but not in the location you are talking about. In ...arduino-1.0\hardware\arduino\variants there are several folders (eightanaloginputs, leonardo, mega, micro and standard) each of these has a pins_arduino.h
This looks right to me, but I am not expert.

kermit

Hi Karl_b
thanks for that, tried what you said and added that line to boards but made not difference :(
Deleted the boards from from my sketchbook location and appended the boards information to the boards.txt file in ...arduino-1.0\hardware\arduino (not sure that its good practice but ...)
This compiled :) so that was good news. But still was not uploading properly. So I compared the information with Attiny code that uses the arduino as ISP and noticed that "Atmega328 on breadboard" that this line "atmega328bb.upload.protocol=stk500" seemed strange to me so I replaced it with "atmega328bb.upload.using=arduino:arduinoisp", which is what we are doing.
This worked :) so I'm very happy with. So here is my boards information for AtMega328 on breadboard(8Mhz internal clock), thanks for you help Karl_b great to get jigwas together.
If anyone can see any problems with this let me know.
Quote

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

atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)

atmega328bb.upload.using=arduino:arduinoisp
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xDA
atmega328bb.bootloader.extended_fuses=0x05
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=standard


osbock

hah! I just posted about the same problem. Apparently the boards.txt loading from sketchbook/hardware folder is broken. Works fine in 022, broken in 1.0

Go Up