Offline
Jr. Member
Karma: 0
Posts: 64
|
 |
« Reply #540 on: October 17, 2012, 10:29:01 am » |
I sometimes think if the 1284p worth the time spent... It is a shit that Arduino doesn't officialy support the 1284p, the Atmega2560 it's fantastic, but not for learn as it is impossible (or at least for me) to solder on a PCB. And the 328 it's like a toy, i go over the 32Kb flash in no time.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 248
Posts: 16535
Available for Design & Build services
|
 |
« Reply #541 on: October 17, 2012, 07:53:08 pm » |
Maybe its the choice of programmers. I've been using Atmel AVR ISP MKii for a while now to program '1284Ps, and I don't have any problems. Everyone else seems to be struggling with everything but.
|
|
|
|
|
Logged
|
|
|
|
|
Canada
Offline
Jr. Member
Karma: 1
Posts: 81
Frequently Befuddled
|
 |
« Reply #542 on: October 17, 2012, 08:17:53 pm » |
Touch wood, I haven't run into any trouble yet with the '1284p. I'm using Sparkfun's Pocket Programmer (USBTinyISP compatible) to burn bootloaders.
Also, I've only used the TQFP version.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 248
Posts: 16535
Available for Design & Build services
|
 |
« Reply #543 on: October 17, 2012, 08:57:06 pm » |
Same die is used in the DIP or TQFP (or the leadless) package - programmer does not see a difference.
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
God Member
Karma: 13
Posts: 632
|
 |
« Reply #544 on: October 17, 2012, 10:20:27 pm » |
Question CrossRoads,
Have you burned a 1284p bootloader with the Arduino IDE and the AVRISP MkII?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 248
Posts: 16535
Available for Design & Build services
|
 |
« Reply #545 on: October 17, 2012, 10:30:43 pm » |
That's how I do all mine now. Mostly because I had misplaced by FTDI Basic, and I got used to doing that way. Burn the bootloader first to get the fuses set, then file:upoad using programmer to put a sketch in.
|
|
|
|
|
Logged
|
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16479
Don't know what I do
|
 |
« Reply #546 on: October 18, 2012, 01:04:11 am » |
Thanks for the info. Mine was not the signature, it was a page write type error. Once the bootloader installed, you could upload blink to the microcontroller, but if the sketch size got over ~25kb, it would choke with the page write error.
There was a bug with the Optiboot 4.0 if you tried to flash a sketch bigger than 30 kB. Starting with Optiboot 4.4 this problem has been solved. I don't know if this is your case.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 64
|
 |
« Reply #547 on: October 18, 2012, 04:30:32 am » |
Well well, problem solved. I used the connection diagram of wiring.co.org and I was able to burn the bootloader perfectly. Using an Arduino Uno as ICSP. However I can not upload any skecht, obviously because the 1284p doesn't have USB!
If I buy the AVR ISP MkII I think this will be solved. But: Do I have to change something in the boards.txt in order to program from the IDE directly with the MKII, right?
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 220
|
 |
« Reply #548 on: October 18, 2012, 05:55:02 am » |
I just bootloaded another ATmega1284P-PU with the maniacbug bootloader, I used Arduino 1.0.1 and an USBasp. I never had any trouble bootloading 1284's. I've bootloaded the first 1284's I got with Arduino 0023 and used an Arduino as isp, now I'm using Arduino 1.0.1 and an USBasp. The first chips I received have the 1216 timestamp, the last ones I got have the 1226 timestamp. So not everyone is having trouble with these chips 
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #549 on: October 18, 2012, 09:01:11 am » |
Well well, problem solved. I used the connection diagram of wiring.co.org and I was able to burn the bootloader perfectly. Using an Arduino Uno as ICSP. However I can not upload any skecht, obviously because the 1284p doesn't have USB!
If I buy the AVR ISP MkII I think this will be solved. But: Do I have to change something in the boards.txt in order to program from the IDE directly with the MKII, right?
Not with the current version of the IDE, you just have to have the proper board selected and proper programmer selected from the Tools menu, and then use the IDE's File menu option of 'upload using programmer'. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 64
|
 |
« Reply #550 on: October 18, 2012, 11:51:54 am » |
Well well, problem solved. I used the connection diagram of wiring.co.org and I was able to burn the bootloader perfectly. Using an Arduino Uno as ICSP. However I can not upload any skecht, obviously because the 1284p doesn't have USB!
If I buy the AVR ISP MkII I think this will be solved. But: Do I have to change something in the boards.txt in order to program from the IDE directly with the MKII, right?
Not with the current version of the IDE, you just have to have the proper board selected and proper programmer selected from the Tools menu, and then use the IDE's File menu option of 'upload using programmer'. Lefty GREAT!!!!
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
God Member
Karma: 13
Posts: 632
|
 |
« Reply #551 on: October 18, 2012, 01:18:54 pm » |
There was a bug with the Optiboot 4.0 if you tried to flash a sketch bigger than 30 kB. Starting with Optiboot 4.4 this problem has been solved. I don't know if this is your case. Nope. It was Optiboot 4.5.
|
|
|
|
|
Logged
|
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16479
Don't know what I do
|
 |
« Reply #552 on: October 18, 2012, 03:31:34 pm » |
There was a bug with the Optiboot 4.0 if you tried to flash a sketch bigger than 30 kB. Starting with Optiboot 4.4 this problem has been solved. I don't know if this is your case. Nope. It was Optiboot 4.5. Sorry but you're wrong  The 30kB bug has been solved with Optiboot 4.4. It was the issue #380 http://arduino.cc/forum/index.php/topic,64105.0.htmlhttp://code.google.com/p/arduino/issues/detail?id=380
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
God Member
Karma: 13
Posts: 632
|
 |
« Reply #553 on: October 18, 2012, 03:40:45 pm » |
Sorry for the misunderstanding. I meant that I have only tested 4.5 on the 1284p, not that the bug is on the new version  Besides, I am up with 4.5 with a 16MHz resonator and when I get a chance I will try the cap/res filter technique again with external crystal.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 64
|
 |
« Reply #554 on: October 19, 2012, 02:05:04 am » |
What about running the 1284p at 20Mhz? As far as I know if you change the value in the boards.txt the millis should work fine. Can I have any other problems?
|
|
|
|
|
Logged
|
|
|
|
|
|