Pages: [1]   Go Down
Author Topic:  boarduino w/ pololu usb avr programmer on ubuntu  (Read 983 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can't find a setup that works for this. I have tried a few methods but would like to see a step by step on how to get this to work.

I am using/trying to use:
DC version of the boarduino from adafruit atmega328.
pololu usb avr programmer item #1300
ubuntu 10.04
arduino software 0017 or 0019 (tried both)

I have several projects that I have done with the standard Duemilanove using the atmega328. Can't find a way to get the arduino ide to see the pololu programmer, which is showing up as a device ttyACM0 and ttyACM1 and seems to be working as far as the OS is concerned.

Since I don't have the USB port or the FTDI 6-pin programmer, I have no way to know if the boarduino is working.  I do have 2 boarduinos and I do a lot of surface mount soldering, so I am fairly confident that they were put together properly.

If anyone has gotten the pololu to work with the Duemilanove for icsp and can tell me how that happened it should be the same. That whole, no bootloader thing.

I already posted this in the hardware interfacing section and it was suggested to try here.

Any help would be appreciated.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


I'm using Windows Vista.  These are the files for using the Pololu Programmer with an ATtiny84.  The setup is similar for other processors / boards.  The "boards.txt" that comes with Arduino will have the details you need.

My "programmers.txt" file...
Code:
######################################################################
# Orginal from b.cook ...
pololu.name=Pololu USB AVR Programmer
pololu.communication=serial
pololu.protocol=avrispv2
######################################################################
# http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274820597/49#49
# avrispv2.name=AVR ISP V2 per Bill Aug 31
# avrispv2.communication=serial
# avrispv2.protocol=stk500v2
# avrispv2.speed=19200
######################################################################

My "boards.txt" file...
Code:
######################################################################
#
# Example boards.txt from...
#
# http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236434254/94#94
# http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274754985/6#6
# http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274820597/49#49
#
######################################################################

attiny84at8.name=ATtiny84 @ 8 MHz

# The following do NOT work...
# attiny84at8.upload.using=avrispv2
# attiny84at8.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
# attiny84at8.upload.protocol=avrispv2
attiny84at8.upload.using=pololu

attiny84at8.upload.maximum_size=8192
attiny84at8.upload.speed=19200

# Default clock (slowly rising power; long delay to clock; 8 MHz internal)
# BOD disabled

attiny84at8.bootloader.low_fuses=0xE2
attiny84at8.bootloader.high_fuses=0xDF
attiny84at8.bootloader.extended_fuses=0xFF
attiny84at8.bootloader.path=attiny84
attiny84at8.bootloader.file=empty.hex
attiny84at8.bootloader.unlock_bits=0xFF
attiny84at8.bootloader.lock_bits=0xFF

attiny84at8.build.mcu=attiny84
attiny84at8.build.f_cpu=8000000L
attiny84at8.build.core=tiny
 
##############################################################

attiny84at1.name=ATtiny84 @ 1 MHz

# The following do NOT work...
# attiny84at1.upload.using=avrispv2
# attiny84at1.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
# attiny84at1.upload.protocol=avrispv2
attiny84at1.upload.using=pololu

attiny84at1.upload.maximum_size=8192
attiny84at1.upload.speed=19200

# Default clock (slowly rising power; long delay to clock; 8 MHz internal; divide clock by 8)
# BOD disabled

attiny84at1.bootloader.low_fuses=0x62
attiny84at1.bootloader.high_fuses=0xDF
attiny84at1.bootloader.extended_fuses=0xFF
attiny84at1.bootloader.path=attiny84
attiny84at1.bootloader.file=empty.hex
attiny84at1.bootloader.unlock_bits=0xFF
attiny84at1.bootloader.lock_bits=0xFF

attiny84at1.build.mcu=attiny84
attiny84at1.build.f_cpu=1000000L
attiny84at1.build.core=tiny
 
##############################################################
« Last Edit: September 30, 2010, 12:35:26 pm by bcook » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So you didn't have to change your preferences.txt file?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


I didn't have to.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You were right.

That did work in XP.

specifically.
#####
##Add this to the top of the boards.txt file.
#####
board328p.name=Boarduino
board328p.upload.using=avrispv2
board328p.upload.maximum_size=32768
board328p.build.mcu=atmega328p
board328p.build.f_cpu=16000000L
board328p.build.core=arduino
#####

#####
##Add this to the bottom of the programmers.txt file.
#####
avrispv2.name=AVR ISP v2
avrispv2.communication=serial
avrispv2.protocol=avrispv2
#####

and tell the arduino ide to write to com3 (Pololu usb AVR Programming Port) in hardware manager.

Still no joy in Ubuntu. Tried linking the ttyACM0 to ttyS0 that the ide is looking for but I am pretty sure that is a one way link and I will have to play with that; just gives me errors. I am a few steps further than I was a day ago. Thanks for taking the time to help.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Still no joy in Ubuntu
I can't help with Linux.  You may get more / better information on Pololu's forum.
Logged

Pages: [1]   Go Up
Jump to: