rgoel / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

PWM pins 9+10 on legacy Arduinos don't work with Optiboot #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

  1. Use a Duemilanove or a 5V Pro Mini
  2. Upgrade to Optiboot
  3. Run any sketch that fades an LED on pin 9 or 10

What is the expected output? What do you see instead?

  I expect the LED to fade smoothly. Instead, it blinks erratically.

  A downgrade to the old bootloader brings back the expected behaviour.

  Upgrading to Optiboot again, brings back the erratic behaviour.

What version of the product are you using? On what operating system?

  Optiboot v3 May 2010 
  Arduino 22 
  Mac OS 10.6
  AVR ISP MkII

Please provide any additional information below.

  (none)

Original issue reported on code.google.com by unixtip...@gmail.com on 26 Feb 2011 at 9:51

GoogleCodeExporter commented 8 years ago
This is the same as issue 8 ( 
http://code.google.com/p/optiboot/issues/detail?id=8 ) that has already been 
fixed in the source repository.  However, there's supposed to be a workaround 
in Ardino21 and later that prevents it from being visible. 
(http://code.google.com/p/arduino/issues/detail?id=364 )
Are you sure you have Ardunio0022 ?

Original comment by wes...@gmail.com on 28 Feb 2011 at 8:32

GoogleCodeExporter commented 8 years ago
Yes, I do have 0022. On my Uno (with pre-loaded Optiboot), the problem does not 
occur. If I understand correctly, Optiboot on the Uno is different from the 
binary ZIP that's available here.

How do I build Optiboot from source? A few lines in a README file would be very 
helpful. If Mac OS is too far out, I can build on Linux, too.

Original comment by unixtip...@gmail.com on 28 Feb 2011 at 9:59

GoogleCodeExporter commented 8 years ago

Original comment by wes...@gmail.com on 29 Oct 2011 at 5:27

GoogleCodeExporter commented 8 years ago
Fixed as part of the great optiboot/Arduino sync-up
http://code.google.com/p/optiboot/source/detail?r=8559b64fd093d3976cae58778a1540
256cde5c8e

Original comment by wes...@gmail.com on 30 Oct 2011 at 8:19

GoogleCodeExporter commented 8 years ago
Well, I'm using the Arduino v1.0 IDE and the Optiboot v4.4 from the downloads 
section, and PWM still does not work on pins 9 & 10.  Did something break again 
since the v0022 release???

Original comment by gurur...@gmail.com on 4 Jan 2012 at 6:11

GoogleCodeExporter commented 8 years ago
I can't duplicate the problem.  Can you turn on verbose upload and check the 
beginning of the avrdude dialog to confirm the optiboot version.  It should 
look like:

avrdude: Recv: . [14] 
avrdude: Recv: . [03] 
avrdude: Recv: . [10] 
         Hardware Version: 3
         Firmware Version: 4.4
avrdude: Send: A [41] . [84]   [20] 
avrdude: Recv: . [14]

Are you seeing complete failure of analogWrite, or some kind of first-values 
issue?  I'm using the "Fading" example on pin 9 and it looks OK...

Original comment by wes...@gmail.com on 5 Jan 2012 at 3:47

GoogleCodeExporter commented 8 years ago
Nevermind. I found the cause of the issue. I had setup a servo motor, and 
didn't realize that it disables PWM pins 9 & 10 due to a conflict in the timer.

Original comment by gurur...@gmail.com on 5 Jan 2012 at 5:05