Pages: 1 ... 24 25 [26] 27 28 ... 40   Go Down
Author Topic: ATmega1284P: End to End using 1.0 IDE  (Read 69885 times)
0 Members and 1 Guest are viewing this topic.
Anchorage, AK
Offline Offline
Edison Member
*
Karma: 42
Posts: 1176
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 538
Posts: 27069
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just found this thread, read through the last 10 pages and I do not feel alone anymore smiley-confuse . I have been trying to get a 1284P to work on a Sanguinololu ( http://reprap.org/wiki/Sanguinololu ) board and it has been a struggle. Everything works with a 644P so the hardware is fine.

I have had some success on version 0023 but that does not compile the code that I need in the chip ( https://github.com/ErikZalm/Marlin ) and the 1.0 IDE does compile the code but I cannot get the IDE to connect to the board (it does work with the Duemilenove and Uno). I am using maniacbug 1284p firmware ( https://github.com/maniacbug/mighty-1284p ) that I can get into the chip with 0023 and a Duemilenove acting as ISP. Blink works (in many different pins) and the timing is correct using 0023.

1.0 will not talk to the Sanguinololu. I have tried changing the fuse settings as seen here (http://stevesfixitshop.blogspot.com/2011/12/sanguinololu-13a-part-3not-out-of-woods.html ) with some interesting responses on the verbose mode on the IDE but no talk. The Sanguinololu uses a ceramic resonator for 16MHz and I have tried to decipher the fuse calculator ( http://www.engbedded.com/fusecalc/ and a little easier to understand here http://elektronik-kompendium.de/public/arnerossius/programme/web/avrfuse/mxx4fuse.html ) to no avail.

The people on this thread seem to be quite knowledgeable about the task at hand as the title says, so if anyone can provide some hints that would be greatly appreciated.
Logged

Maryland, USA
Offline Offline
Full Member
***
Karma: 0
Posts: 162
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just found this thread, read through the last 10 pages and I do not feel alone anymore smiley-confuse . I have been trying to get a 1284P to work on a Sanguinololu ( http://reprap.org/wiki/Sanguinololu ) board and it has been a struggle. Everything works with a 644P so the hardware is fine.

I have had some success on version 0023 but that does not compile the code that I need in the chip ( https://github.com/ErikZalm/Marlin ) and the 1.0 IDE does compile the code but I cannot get the IDE to connect to the board (it does work with the Duemilenove and Uno). I am using maniacbug 1284p firmware ( https://github.com/maniacbug/mighty-1284p ) that I can get into the chip with 0023 and a Duemilenove acting as ISP. Blink works (in many different pins) and the timing is correct using 0023.

1.0 will not talk to the Sanguinololu. I have tried changing the fuse settings as seen here (http://stevesfixitshop.blogspot.com/2011/12/sanguinololu-13a-part-3not-out-of-woods.html ) with some interesting responses on the verbose mode on the IDE but no talk. The Sanguinololu uses a ceramic resonator for 16MHz and I have tried to decipher the fuse calculator ( http://www.engbedded.com/fusecalc/ and a little easier to understand here http://elektronik-kompendium.de/public/arnerossius/programme/web/avrfuse/mxx4fuse.html ) to no avail.

The people on this thread seem to be quite knowledgeable about the task at hand as the title says, so if anyone can provide some hints that would be greatly appreciated.
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 Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It worked for me with the fuses FF 98 FD.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 538
Posts: 27069
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley-twist

I wish there was an easy way to decipher those fuse options for the 1284P.
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 133
Posts: 6749
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've head resonators fail when the fuses were set for a crystal, on ATmega8, where the datasheet says:
Quote
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 Offline
Brattain Member
*****
Karma: 538
Posts: 27069
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Fail as in "break" fail, or just not work?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Offline Offline
Tesla Member
***
Karma: 133
Posts: 6749
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

(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 Offline
God Member
*****
Karma: 6
Posts: 722
Arduino happiness
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 8
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 ... 24 25 [26] 27 28 ... 40   Go Up
Jump to: