Anchorage, AK
Offline
Sr. Member
Karma: 10
Posts: 492
|
 |
« Reply #375 on: April 22, 2012, 02:39:24 am » |
Ah, well now for some reason the serial uploads are starting, but losing sync shortly thereafter. I guess that's progress. :-)
Really odd though. When I upload a sketch via ISP that uses the serial monitor, everything looks fine. So I think I can rule out wiring and clocking issues.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 247
Posts: 16535
Available for Design & Build services
|
 |
« Reply #376 on: April 22, 2012, 12:09:11 pm » |
Yes, just software settings at this point. I was having the same issues. Could show the hardware all worked, couldn't do a serial download. Using the AVR ISP MKii to get the fuses set correctly helped. Then using maniacbug's 1284 setup from there for Bobuino for the pinout I am using.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Maryland, USA
Offline
Full Member
Karma: 0
Posts: 162
|
 |
« Reply #378 on: April 22, 2012, 08:43:51 pm » |
Just for the heck of it ... What fuses are you trying right now? (I was just knee-deep in the Atmel datasheet for the chip so it's fresh in my head...)
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #379 on: April 22, 2012, 09:12:01 pm » |
I tried D6 DC FF as listed on the website above, besides the usual suspects FF 99 FF (Sanguino 23R3), FF DE FD (Mighty1284P) plus a few other ones just to see if it generated different responses (it did).
|
|
|
|
« Last Edit: April 22, 2012, 09:16:25 pm by bluemetal »
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 6
Posts: 1399
Arduino rocks
|
 |
« Reply #380 on: April 23, 2012, 08:25:31 am » |
It worked for me with the fuses FF 98 FD.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #381 on: April 27, 2012, 12:23:37 pm » |
I went ahead and removed the resonator from the Sanguinololu 1.3a board and replaced with a mini 16MHz crystal (so it would fit inside the IC socket) and 2 x 20pf capacitors on the bottom side of the board. Set the fuses to FF DE FD and used Maniacbug bootloader ( https://github.com/maniacbug/mighty-1284p ) with 16 MHz 1284P with optiboot in Arduino 1.0 and everything worked perfectly. Managed to upload the 82K large Marlin 1.0 firmware (for 3d printing) and it performed correctly communicating properly with Pronterface (the interface with the Sanguinololu board). I will try to retrace all the steps and check all other items that have lined up to success, but the same software setup without the crystal did not work the night before.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 247
Posts: 16535
Available for Design & Build services
|
 |
« Reply #382 on: April 27, 2012, 12:32:17 pm » |
Could be the resonator is not quite stable at the higher serial download speeds? I only use crystals/caps, unless a customer asks for a resonator to mimic a known design.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #383 on: April 27, 2012, 01:14:43 pm » |
It could be, but I did try to use the lowest possible speeds (all the way down to 9600) for bootloading and uploading (via the makefile and boards.txt) without success before the crystal. I am still putting my money on wrong fuses as the main culprit and transmission speeds as an evil sidekick.  I wish there was an easy way to decipher those fuse options for the 1284P.
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Online
Faraday Member
Karma: 78
Posts: 5454
Strongly opinionated, but not official!
|
 |
« Reply #384 on: April 27, 2012, 01:44:07 pm » |
I've head resonators fail when the fuses were set for a crystal, on ATmega8, where the datasheet says: For resonators, the maximum frequency is 8 MHz with CKOPT unprogrammed and 16 MHz with CKOPT programmed. (and CKOPT is the difference between "low power" and "full swing" oscillators. Clock options are different on m1284 and m328, but it might be worth experimenting with.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 247
Posts: 16535
Available for Design & Build services
|
 |
« Reply #385 on: April 27, 2012, 01:52:10 pm » |
Fail as in "break" fail, or just not work?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #386 on: April 27, 2012, 06:47:03 pm » |
I have confirmed that the resonator (and corresponding fuse setting) is the culprit.
I have 2 identical Sanguinololu 1.3a boards. One with the 16MHz crystal and corresponding caps and one with the resonator. The crystal one works with the 1284P at 16 MHz and the one with the resonator does not (no uploading). The same IC and the same computer settings.
I guess the recommendation is to use a crystal when running a 1284P at 16MHz so you do not need to change fuses.
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Online
Faraday Member
Karma: 78
Posts: 5454
Strongly opinionated, but not official!
|
 |
« Reply #387 on: April 27, 2012, 09:10:08 pm » |
(fail as in "just not work.") (A fix for this was applied to the optiboot make files. http://code.google.com/p/optiboot/issues/detail?id=30 )
|
|
|
|
|
Logged
|
|
|
|
|
Peoples Republic of Cantabrigia
Offline
God Member
Karma: 6
Posts: 634
Arduino happiness
|
 |
« Reply #388 on: April 28, 2012, 09:08:00 am » |
I guess the recommendation is to use a crystal when running a 1284P at 16MHz so you do not need to change fuses.
Good work discovering the issue! I only have used crystals with my 1284Ps so I never ran into this issue. Lucky!
|
|
|
|
|
Logged
|
|
|
|
|
South Texas
Offline
God Member
Karma: 8
Posts: 976
|
 |
« Reply #389 on: May 08, 2012, 04:31:51 pm » |
Finally got power to my Crossroads designed board. Wired up a cable(s) so I can connect from my Arduino to the ICSP header on the board and loaded Blink using ArduinoISP.
Next I want to see if I can use a MAX232 and make a board I can connect to the FTDI Header to program.
And I want to get an FTDI board at some point. Once I get the Serial header built I can then check out loading a sketch using the bootloader.
My current board setting is Bobuino. What differences would I find with the other settings?
Crossroads - Is there a parts list for the board? F1, IC8 and the power connector have me stumped. The workaround for the power connector that I came up with is just too ugly and needs to be corrected...
|
|
|
|
|
Logged
|
|
|
|
|
|