<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Programming Arduino Dock 2 via SPI]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/1136/omega-2-and-arduino-dock">Omega 2 and Arduino dock.</a></p>
<p dir="auto">I have several Arduino Dock 2 boards and for some of them when trying to program the<br />
Arduino AVR chip on the Dock using the Omega (2+), they give an error message "Communication Failure". Other Dock 2 boards of the same typ work fine. For the ones that are not working I am trying to program them using a spare Arduino Uno as a programmer. I successfully program one Uno from another Uno using the SPI signals as instructed here:<br />
<a href="https://www.instructables.com/Programming-Arduino-With-Another-Arduino/" rel="nofollow">https://www.instructables.com/Programming-Arduino-With-Another-Arduino/</a></p>
<p dir="auto">That works fine, so I connected the non-working Dock 2 using the same wiring scheme (11, 12, 13 SPI lines, 10 from programmer to reset on the Dock 2 and 5V pwr and gnd). There is no Onion Omega plugged into the Dock2. I have ArduinoISP loaded into the Uno and I try to upload Blink.ino by clicking 'Upload using Programmer". It seems to write to the Dock2 and tries repeatedly to read  and verify the code, then issues the following error message:</p>
<p dir="auto">avrdude: Device signature = 0xffffff (probably .avr8x_mega)<br />
avrdude: Yikes!  Invalid device signature.<br />
Double check connections and try again, or use -F to override<br />
this check.</p>
<p dir="auto">It's the same whether I set "Arduino Uno" or "Onion Arduino Dock" as the target board.</p>
<p dir="auto">If I run avrdude from the command line with the -F switch as</p>
<p dir="auto">avrdude -F -C../etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM8 -b19200 -Uflash:w:C:\Users\GOLDMA~1\AppData\Local\Temp\arduino_build_728892/Blink.ino.hex:i</p>
<p dir="auto">it gets further, but then gives this new error:</p>
<p dir="auto">avrdude: verifying ...<br />
avrdude: verification error, first mismatch at byte 0x0000<br />
0xff != 0x0c<br />
avrdude: verification error; content mismatch</p>
<p dir="auto">avrdude: safemode: hfuse reads as FF<br />
avrdude: safemode: efuse reads as FF<br />
avrdude: safemode: Fuses OK (E:FF, H:FF, L:FF)</p>
<p dir="auto">A similar error comes back if I try to load a bootloader into the Docks with the Arduino "Burn Bootloader" command.</p>
<p dir="auto">Would someone provide detailed instructions for programming the AVR chip on an Arduino Dock 2 via the SPI interface or from a spare Arduino?</p>
<p dir="auto">Thanks.</p>
]]></description><link>http://community.onion.io/topic/4369/programming-arduino-dock-2-via-spi</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 20:50:15 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/4369.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Dec 2020 19:31:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programming Arduino Dock 2 via SPI on Fri, 25 Dec 2020 19:31:30 GMT]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/1136/omega-2-and-arduino-dock">Omega 2 and Arduino dock.</a></p>
<p dir="auto">I have several Arduino Dock 2 boards and for some of them when trying to program the<br />
Arduino AVR chip on the Dock using the Omega (2+), they give an error message "Communication Failure". Other Dock 2 boards of the same typ work fine. For the ones that are not working I am trying to program them using a spare Arduino Uno as a programmer. I successfully program one Uno from another Uno using the SPI signals as instructed here:<br />
<a href="https://www.instructables.com/Programming-Arduino-With-Another-Arduino/" rel="nofollow">https://www.instructables.com/Programming-Arduino-With-Another-Arduino/</a></p>
<p dir="auto">That works fine, so I connected the non-working Dock 2 using the same wiring scheme (11, 12, 13 SPI lines, 10 from programmer to reset on the Dock 2 and 5V pwr and gnd). There is no Onion Omega plugged into the Dock2. I have ArduinoISP loaded into the Uno and I try to upload Blink.ino by clicking 'Upload using Programmer". It seems to write to the Dock2 and tries repeatedly to read  and verify the code, then issues the following error message:</p>
<p dir="auto">avrdude: Device signature = 0xffffff (probably .avr8x_mega)<br />
avrdude: Yikes!  Invalid device signature.<br />
Double check connections and try again, or use -F to override<br />
this check.</p>
<p dir="auto">It's the same whether I set "Arduino Uno" or "Onion Arduino Dock" as the target board.</p>
<p dir="auto">If I run avrdude from the command line with the -F switch as</p>
<p dir="auto">avrdude -F -C../etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM8 -b19200 -Uflash:w:C:\Users\GOLDMA~1\AppData\Local\Temp\arduino_build_728892/Blink.ino.hex:i</p>
<p dir="auto">it gets further, but then gives this new error:</p>
<p dir="auto">avrdude: verifying ...<br />
avrdude: verification error, first mismatch at byte 0x0000<br />
0xff != 0x0c<br />
avrdude: verification error; content mismatch</p>
<p dir="auto">avrdude: safemode: hfuse reads as FF<br />
avrdude: safemode: efuse reads as FF<br />
avrdude: safemode: Fuses OK (E:FF, H:FF, L:FF)</p>
<p dir="auto">A similar error comes back if I try to load a bootloader into the Docks with the Arduino "Burn Bootloader" command.</p>
<p dir="auto">Would someone provide detailed instructions for programming the AVR chip on an Arduino Dock 2 via the SPI interface or from a spare Arduino?</p>
<p dir="auto">Thanks.</p>
]]></description><link>http://community.onion.io/post/23035</link><guid isPermaLink="true">http://community.onion.io/post/23035</guid><dc:creator><![CDATA[Yale E. Goldman]]></dc:creator><pubDate>Fri, 25 Dec 2020 19:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to Programming Arduino Dock 2 via SPI on Mon, 28 Dec 2020 05:30:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/172">@Yale-E-Goldman</a>:</p>
<p dir="auto">I had problems with configuring UNO as ISP. It was long time back, so I don't remember the exact error codes, but I remember that the UNO programmed<br />
using IDE 1.6.x to act as an ISP failed to program the "3rd" UNO.</p>
<p dir="auto">All versions of IDEs are not good for the job.</p>
<p dir="auto">Finally, I was able to program the 3rd UNO using the 2nd UNO (ISP) which is<br />
programmed into an ISP using the 1st UNO with IDE 1.0.1.</p>
<p dir="auto"><a href="https://www.instructables.com/Burning-the-Bootloader-on-ATMega328-using-Arduino-/" rel="nofollow">https://www.instructables.com/Burning-the-Bootloader-on-ATMega328-using-Arduino-/</a></p>
<p dir="auto">I still have that ISP UNO, and it can work as ISP with other versions of IDE such<br />
as 1.8.x</p>
<p dir="auto">Thanks..</p>
]]></description><link>http://community.onion.io/post/23039</link><guid isPermaLink="true">http://community.onion.io/post/23039</guid><dc:creator><![CDATA[tjoseph1]]></dc:creator><pubDate>Mon, 28 Dec 2020 05:30:22 GMT</pubDate></item></channel></rss>