Pololu Orangutan User Manual Download Page 14

to actually program your target device (AVR Studio will time out waiting for a response
from your Orangutan), but it will still let you set the fuses. Be aware that if you attempt
to program flash or EEPROM using the

4.00 kHz

setting, it might take somewhere on

the order of five to ten minutes depending on the size of your program, so you should
only use this ISP frequency as a last resort.

Fuses (proceed with caution!)

Clicking on the

Fuses

tab will cause the programmer to read the fuse settings of the

target device. If your programmer is not connected to your Orangutan when you select
this tab, you will get an error message. Fuses allow you to configure certain aspects of
your microcontroller such as boot flash size, brown-out detection level, and the clock off
of which it should run (e.g. external crystal, internal oscillator). To learn more about the
fuses and what they do, please see the ATmega48/88/168/328P datasheet.

Note:

You can permanently disable your Orangutan by setting the fuses

incorrectly. Only advanced users who know precisely what they are doing
should change these fuse settings!

Lock Bits

Clicking on the

Lock Bits

tab will cause the programmer to read the lock bits settings

of the target device. If your programmer is not connected to your Orangutan when you
select this tab, you will get an error message. The lock bits allow you to secure your
microcontroller by preventing further flash writing or reading. The lock bits can be reset
to a fully unlocked state by performing a chip erase (i.e. by clicking the

Erase Device

button in the

Program

tab). Lock bits are usually only important if you wish to release

a product to other people without giving them access to the program it is running, or if
you wish to make it slightly more difficult to overwrite a programmed chip.

Advanced

You should not need to worry about Oscillator Calibration.

HW Info

This tab will tell you the hardware and software versions of your Orangutan USB
programmer.

Section 5.c

explains how you can configure your programmer to change

these version numbers so they will match what your AVR Studio is expecting.

Auto

This tab lets you automatically perform a scripted set of programming actions. If you are
going to be configuring many devices the same way, it might be convenient for you to do
this using the Auto tab features.

5.c. Configuring Your Programmer for AVR Studio

Configuring your programmer’s version numbers is

purely optional

. Your

programmer will still function with incorrect or mismatched version numbers.

When AVR Studio connects to your programmer, it requests the programmer’s hardware
and software version numbers. If these versions don’t match what AVR Studio is expecting,
it will bring up a dialog box asking if you want to upgrade (or, if you have an old version
of AVR Studio, downgrade) your programmer’s firmware as shown below. In the example

Pololu Orangutan USB Programmer User's Guide

© 2001–2010 Pololu Corporation

5. Getting Started Using Windows

Page 14 of 29

Summary of Contents for Orangutan

Page 1: ...5 a Using AVR Studio 8 5 b AVR Studio in More Detail 12 5 c Configuring Your Programmer for AVR Studio 14 5 d Using AVRDUDE 16 6 Getting Started Using Linux 17 7 Troubleshooting 19 8 Updating Your Pr...

Page 2: ...t receives its power via the USB A to mini B cable http www pololu com catalog product 130 that connects it to a personal computer This cable is not included with your programmer if you do not already...

Page 3: ...cts and about your experience with the Orangutan USB 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 coul...

Page 4: ...grammer PGM02A and PGM02B The programmer s revision number is written along the right side of the bottom of the PC board The newer PGM02B revision has two key improvements over the original PGM02A 1 i...

Page 5: ...P port located just behind the right wheel as shown above Connecting to Your Orangutan Baby Orangutan ISP pins Orangutan SV 168 SV 328 and LV 168 ISP pins Orangutan ISP pins The Orangutan USB programm...

Page 6: ...which can in turn permanently disable your Orangutan see Fuses in Section 5 b If your programmer version is PGM02B the programmer will not let you program an unpowered device you will see the red sta...

Page 7: ...om docs 0J7 for the programmer s CP2102 USB to UART bridge Once you have successfully installed your this driver you should see the green USB status LED near the mini B connector lit whenever it is co...

Page 8: ...w you step by step how to use AVR Studio to make the red user LED blink on your Orangutan Orangutan SV 168 Orangutan SV 328 Orangutan LV 168 Baby Orangutan or 3pi robot Please note that this program w...

Page 9: ...ich chip your Orangutan or 3pi has Click Finish Creating a new AVR Studio project step 2 3 Write your program in BlinkLED c as seen in the screen shot below and click the Build button on the toolbar o...

Page 10: ...g to the Tools menu and selecting Program AVR Connect Connecting to the programmer with AVR Studio 5 This will bring up a programmer selection dialog The platform should be AVRISP The Orangutan USB pr...

Page 11: ...y please refer to our troubleshooting advice Section 7 for help getting your connection working Reading the device signature in AVR Studio s Main ISP tab 7 Now it is time to program your target device...

Page 12: ...if you are trying this on a 3pi robot and you haven t yet soldered in the optional through hole LEDs you will need to turn your 3pi robot over to see the flashing LED as the surface mounted LEDs are l...

Page 13: ...2 5 kHz This ISP frequency is so low that AVR Studio times out when it tries to program flash or EEPROM but it can be used to program fuses and lock bits You should be able to program any device runn...

Page 14: ...enting further flash writing or reading The lock bits can be reset to a fully unlocked state by performing a chip erase i e by clicking the Erase Device button in the Program tab Lock bits are usually...

Page 15: ...15 200 baud with 8 bit characters no parity and one stop bit This is occasionally represented as 115200 8 N 1 In the screen shots below we use Hyper Terminal for this Once the connection is made type...

Page 16: ...nto a command console cd C BlinkLED default avrdude p m168 P COM2 c avrispv2 e U flash w BlinkLED hex The argument following the p is the part number and should be m328p m168 or m48 The argument follo...

Page 17: ...linkLED_m48 zip file_id 0J188 9k zip mega168 BlinkLED zip http www pololu com file download BlinkLED_m168 zip file_id 0J189 9k zip mega328 BlinkLED zip http www pololu com file download BlinkLED_m328...

Page 18: ...es of flash written avrdude verifying flash memory against BlinkLED hex avrdude load data flash data from input file BlinkLED hex avrdude input file BlinkLED hex auto detected as Intel Hex avrdude inp...

Page 19: ...ersions of AVR Studio running make sure that you have closed the AVRISP programming dialogs in all of them When the AVRISP dialog is open that instance of AVR Studio has an open serial connection to y...

Page 20: ...short or cut trace somewhere on your target device The ideal way to test for this would be to try programming a different device with your Orangutan USB programmer or conversely try using a different...

Page 21: ...g product 975 which all have motor driver control lines that double as programming lines Version 1 2 could cause motors connected to these devices to briefly kick during programming Version 1 3 will n...

Page 22: ...mend Tera Term Pro v2 3 available for free at http hp vector co jp authors VA002416 teraterm html http hp vector co jp authors VA002416 teraterm html Installation instructions are included in the down...

Page 23: ...erfere with the upgrading process For example if you have AVR Studio open make sure the AVRISP programming window is closed as this window ties up the COM port your programmer is using Pololu Oranguta...

Page 24: ...vice Manager on the left and then expand the Ports COM LPT list on the right Make note of the COM port associated with Pololu USB to serial adapter If you have another Pololu device that uses the CP21...

Page 25: ...tton At the bottom of the next dialog box is a drop down list labeled COM Port Number When you select this list you can see all the ports available to you You need to select a port from COM1 to COM4 t...

Page 26: ...in the future if you ever simultaneously connect your programmer and the other device that is configured to use that port Once you have chosen your new port click OK on both the Advanced and Propertie...

Page 27: ...ing your own COM port The baud rate should be 115200 with 8 bit data no parity one stop bit and no flow control You do not need any transmit delays The only settings you should have to change from the...

Page 28: ...ond period expires and the two status LEDs turn off As you type the string you will see the uppercase version of the letters you type echoed back so as you type fwbootload you will see FWBOOTLOAD If y...

Page 29: ...LED below the reset button flickering as the firmware update progresses When the upload is complete the programmer will transmit SUCCESS to indicate success If there is a problem the programmer will...

Reviews: