background image

7. Troubleshooting

This section helps solve problems you might have using the Pololu USB AVR programmer.

If the computer fails to connect to the programmer:

• Make sure your programmer is connected to your computer via a USB A to mini-B
cable. If the programmer was previously working and has since stopped, try closing all
programs using the programmer (the configuration utility, the SLO-scope client, and the
AVR Studio ISP dialog), and cycle the power by unplugging it from your computer and
then reconnecting it.
• If you are in Windows, make sure you have installed the drivers the programmer
needs to operate.

Section 3.a

describes how to install the drivers in Windows.

• Is the programmer’s green USB status LED on? This is the LED next to the USB mini-
B connector. If this LED is blinking, then your drivers are not properly installed.
• If you are in Windows, can you see your programmer listed in the Device Manager?
The Device Manager should show three devices: under “Pololu USB Devices” should
be “Pololu USB AVR Programmer”, and under “Ports (COM & LPT)” should be “Pololu
USB AVR Programmer Programming Port” and “Pololu USB AVR Programmer TTL Serial
Port” and there should be no error symbols on the icons representing these devices.
• If you are in Linux, check that

/dev/ttyACM0

and

/dev/ttyACM1

exist. If they do not,

see the section below.
• Your computer will only let one program at a time have a given COM port open. If you
are connected to your programmer’s programming port using another program, such
as a terminal or a second instance of AVR Studio, you will not be able to connect to
that same COM port with your programming software. Please make sure you do not
have any terminal programs connected to your programmer’s programming port. If you
have multiple versions of AVR Studio running, make sure that you have closed the ISP
programming dialogs in all of them. When the ISP dialog is open, that instance of AVR
Studio has an open connection to your programmer’s programming port.
• If you are using AVR Studio, try connecting to your programmer’s specific COM port
instead of selecting the “Auto” option, which attempts to locate the port automatically.
Some versions of AVR Studio have a bug that prevents it from automatically detecting
the programmer if the virtual COM port is too high.

If the programmer has problems connecting to the target AVR:

• The most common cause for this problem is an incorrect connection between your
programmer and your target device. If the ISP pins are misaligned between the
programmer and the target AVR, the two will not be able to communicate. Please make
sure that the ISP pins as numbered in

Section 1.a

are correctly connected between your

AVR and your programmer (i.e. 1 goes to 1, 2 goes to 2, etc.).
• The target AVR must be powered for programming to work. Please make sure that
your target device has power and is turned on.
• If the target AVR is running at a voltage lower than 5 V, you may need to decrease
the minimum allowed target VDD setting using the configuration utility (

Section 3.d

).

The default minimum allowed target VDD setting is too high to allow the programmer
to program at low voltages. Please note that you might need to take additional special
steps to safely program an AVR that is running off of a voltage below VUSB-0.5 V.
• Your programmer’s ISP frequency must be less than a quarter of your target AVR’s
clock frequency. If you are having trouble communicating with your target AVR, try

Pololu USB AVR Programmer User's Guide

© 2001–2010 Pololu Corporation

7. Troubleshooting

Page 32 of 36

Summary of Contents for USB AVR

Page 1: ...ing AVR Studio 11 3 b 1 Using Advanced Features of AVR Studio 16 3 c Programming AVRs Using AVRDUDE 17 3 d Configuring the Programmer 17 4 Getting Started in Linux 21 4 a Linux Driver 21 4 b Programmi...

Page 2: ...ser s guide here http www pololu com docs 0J6 Important Safety Warning and Handling Procedures The USB AVR programmer is not intended for young children Younger users should use this product only unde...

Page 3: ...on the target VDD line is high When it is on solid it means that the SLO scope is enabled and lines A and B are used for the SLO scope instead of the USB to TTL serial adapter The red LED indicates a...

Page 4: ...about target VDD monitoring The VDD line is not used to power the programmer the programmer is powered from the USB This line cannot be used to power the target device the target device must be indepe...

Page 5: ...amming software exists for all operating systems The programer s configuration utility works only in Windows but this should not be a big problem for Linux users because all the options that can be se...

Page 6: ...rojects and about your experience with the Pololu USB AVR Programmer You can contact us http www pololu com contact directly or post on our forum http forum pololu com Tell us what we did well what we...

Page 7: ...alog product 740 you will need to install the drivers specific to that device Before you connect your Pololu USB AVR programmer to a computer running Microsoft Windows you must install its drivers 1 D...

Page 8: ...R programmer to your computer s USB port The programmer is actually three devices in one so your XP computer will detect all three of those new devices and display the Found New Hardware Wizard three...

Page 9: ...that another wizard will pop up You will see a total of three wizards when plugging in the programmer Follow steps 6 9 for each wizard If you use Windows XP and experience problems installing the ser...

Page 10: ...rentheses after these names you will see the name of the port e g COM3 or COM4 If you expand the Pololu USB Devices list you should see an entry for the Pololu USB AVR programmer Windows XP device man...

Page 11: ...f the Orangutan robot controllers http www pololu com catalog category 8 and the 3pi Robot http www pololu com catalog product 975 this program will blink the red user LED If you want to program an AV...

Page 12: ...either be ATmega48 ATmega168 or ATmega328P depending on which chip your Orangutan or 3pi Robot has Click Finish Creating a new AVR Studio project step 2 3 Write your program in BlinkLED c as seen in t...

Page 13: ...selecting Program AVR Connect Connecting to the programmer with AVR Studio 5 This will bring up a programmer selection dialog Select AVRISP as the platform The USB AVR programmer uses AVR ISP version...

Page 14: ...ither be ATmega48 ATmega168 or ATmega328P Selecting the device for ISP programming in AVR Studio 7 If you have not done so already connect the programmer to the target device using the 6 pin ISP cable...

Page 15: ...nd it as default project name hex Click the Program button make sure you click the one in the Flash section not one in the EEPROM or ELF Production File Format sections AVR Studio s Program ISP tab As...

Page 16: ...ease see the Atmel s AVR Studio documentation for more detailed descriptions of these features ISP Frequency In the ISP window under the Main tab the Programming Mode and Target Settings section lets...

Page 17: ...programmed chip 3 c Programming AVRs Using AVRDUDE It is possible to program AVRs in Windows using AVRDUDE http www bsdhome com avrdude AVRDUDE is free and included in the WinAVR http winavr sourcefor...

Page 18: ...illivolts When the programmer recieves an ISP programming request it starts keeping track of the maximum and minimum measurements of the AVR s VDD If the difference between the maximum and minimum exc...

Page 19: ...V 168 Baby Orangutan and 3pi robot can be programmed at 2000 kHz 1 845 MHz in AVR Studio which is the fastest setting An AVR running at 8 MHz or higher e g the original Orangutan can be programmed at...

Page 20: ...VR Studio expects then it brings up a dialog asking if you want to upgrade or downgrade your programmer s firmware the Pololu AVR USB programmer does not support this method of firmware upgrading so t...

Page 21: ...erial port devices should be dev ttyACM0 for the programming port and dev ttyACM1 for the USB to TTL serial adapter If the programmer is plugged in but you do not see these devices please see Troubles...

Page 22: ...our AVR is not 20 MHz F_CPU should be defined as the clock frequency of your AVR in units of Hz If you do not make this change the timing of delayms will be off but the LED will still blink At this po...

Page 23: ...avrdude verifying avrdude 224 bytes of flash verified avrdude safemode Fuses OK avrdude done Thank you rm BlinkLED o BlinkLED obj This output indicates the AVR was successfully programmed The LED con...

Page 24: ...one stop bit This coding is sometimes abbreviated 8N1 The bits must be non inverted meaning that a zero is sent as low voltage and a one is sent as high voltage All devices involved in asynchronous se...

Page 25: ...t port There are many free terminal programs available including PuTTY http www chiark greenend org uk sgtatham putty Windows or Linux Tera Term http hp vector co jp authors VA002416 teraterm html Win...

Page 26: ...receiving bytes on the RX line the USB to TTL serial adapter can use programmer pins A and B as serial handshaking lines of your choosing Each pin can be configured as an input or an output by identif...

Page 27: ...a serial port as well as set and read the control signals Here is some example C NET code that uses a serial port in this way Choose the port name and the baud rate System IO Ports SerialPort port ne...

Page 28: ...se their serial handshaking line associations while the SLO scope is active but these associations are restored once the SLO scope is disabled You can disable the SLO scope via the SLO scope applicati...

Page 29: ...signal but it should not exceed 100 k or so Installing and Runing the Pololu SLO scope Application The SLO scope application for Windows comes with the Windows drivers Section 3 a and can be installed...

Page 30: ...his is approximately 10 seconds of data when running at 10 kHz and 5 seconds of data when running at 20 kHz To review the captured data in detail click the Stop button in the same place that the Run p...

Page 31: ...e vertical position of the 0V level of a channel click and drag that channel s corresponding 0V indicator triangle on the left side of the lower pane While the SLO scope is running lines A and B do no...

Page 32: ...nal programs connected to your programmer s programming port If you have multiple versions of AVR Studio running make sure that you have closed the ISP programming dialogs in all of them When the ISP...

Page 33: ...ux 2 6 24 drivers usb class cdc acm c This device cannot do calls on its own It is no modem 26 413542 cdc_acm 2 1 1 2 ttyACM1 USB ACM device 26 421314 usbcore registered new interface driver cdc_acm 2...

Page 34: ...p If none of the above troubleshooting suggestions help please contact us http www pololu com contact for support Pololu USB AVR Programmer User s Guide 2001 2010 Pololu Corporation 7 Troubleshooting...

Page 35: ...s below to determine the programmer s revision code To determine the programmer s revision code in Windows 1 Open up the Device Manager 2 Double click on the Pololu USB AVR Programmer entry in the Pol...

Page 36: ...dmesg You can use any baud rate 6 Type the following lower case letters in to your terminal program to send them to the bootloader fwbootload After each letter is sent the bootloader should echo back...

Reviews: