|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 108
Posts: 6607
|
 |
« Reply #1 on: September 03, 2012, 10:49:22 am » |
If I understand correctly, PU means "plastic DIP package" and P means "pico-power". The non-Pico-Power chip should be compatible with the Pico-Power version so all you should have to do is change the chip type in the boards.txt file to remove the 'p'. Then avrdude will be happy with the signature.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #2 on: September 03, 2012, 11:21:36 am » |
i understand what you mean but i dont know what to change.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17032
Available for Design & Build services
|
 |
« Reply #3 on: September 03, 2012, 09:08:03 pm » |
1284-PU has signature bytes 0x1E 0x97 0x06 1284P-PU has signature bytes 0x1E 0x97 0x05 Find your copy of avrdude.conf, and copy the '1284P section, excerpted here: #------------------------------------------------------------ # ATmega1284P #------------------------------------------------------------
# similar to ATmega164p
part id = "m1284p"; desc = "ATMEGA1284P"; has_jtag = yes; stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one avr910_devcode = 0x74; signature = 0x1e 0x97 0x05; pagel = 0xd7; bs2 = 0xa0; chip_erase_delay = 9000; and edit it to take out the P from 1284P and change the signature bytes. Then, do the same in boards.txt for 1284 vs 1284P.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #4 on: September 04, 2012, 08:46:15 am » |
thanks, i tried but when i changed avrdude.conf i get this error on arduino IDE:
syntax error at H:\Saved Documents\Mirko\arduino\arduino-1.0\hardware/tools/avr/etc/avrdude.conf:16934
i get this error when i change it and even when i dont. can anyone help?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #5 on: September 04, 2012, 01:52:44 pm » |
could you send me changed avrdude.conf ,please. thanks
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17032
Available for Design & Build services
|
 |
« Reply #6 on: September 04, 2012, 02:15:26 pm » |
You are not able to copy the Entire 1284P section, add it to the bottom of the file, and change these few lines? If this doesn't work, then perhaps my approach is incorrect. #------------------------------------------------------------ # ATmega1284P <<< ATmega1284 #------------------------------------------------------------
# similar to ATmega164p
part id = "m1284p"; <<<< "m1284"; desc = "ATMEGA1284P"; <<<<"ATMEGA1284"; has_jtag = yes; stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one avr910_devcode = 0x74; signature = 0x1e 0x97 0x05; <<<< 0x1e 0x97 0x06; : : // and copy the rest down to the start of the next section ...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #7 on: September 08, 2012, 11:06:07 am » |
everytime i change avrdude.conf i get error. the same as i show previosly. what abouth changing atmegaBOOT_1284p file. i tried it with .c file and nothing however there is still .hex file. Can anyone help, please. i spent all my money for 2 of these microcontrollers  and now i cant control them. If they are gonna work i will make really cool robot(check out picture)  .
|
|
|
|
« Last Edit: September 08, 2012, 11:08:32 am by miros »
|
Logged
|
|
|
|
|
Leeds, UK
Offline
Edison Member
Karma: 38
Posts: 1028
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #8 on: September 11, 2012, 03:06:35 pm » |
I've been using the atmega1284 without issue (you like I did got the atmega1284-PU, not the atmega1284P-PU - Note that the PU specifies a DIP package and is nothing to do with the device).
All I had to do is to find the definition for ATmega1284P (just using CTRL-F), and change the signature to:
signature = 0x1e 0x97 0x06;
Then I used the IDE to burn a version of optiboot bootloader compiled for the mega1284p
Then once the bootloader was burned I changed the signature back to: signature = 0x1e 0x97 0x05;
It works a treat for me.
If you let me know what clock frequency you plan to use, I will compile an optiboot hex file for you. Note that the version I modified uses UART1 for programming.
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Leeds, UK
Offline
Edison Member
Karma: 38
Posts: 1028
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #9 on: September 11, 2012, 03:16:27 pm » |
I should mention that I used the standard Arduino core, but modified wiring_analog.c to support the 1284p (It still works fine with all the other arduino's). I have also attached the Pins_arduino.h file I have been using which shows in it a pin map for the DIP package - this is the pins_arduino file from here: https://github.com/stevemarple/CaluniumTo speed things up, I have also attached two versions of Optiboot - one compiled for 16MHz, the other for 20MHz (I have an 8MHz version as well if you prefer). These run at 115200 Baud using UART1, and PD7 for the status LED (Digital pin 23, or IC pin 21).
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #10 on: September 11, 2012, 03:59:16 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #11 on: September 13, 2012, 05:11:16 am » |
i replaced wiring_anolg.c and pins_arduino.h but i dont know where i have to change signature, what file?
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
Edison Member
Karma: 38
Posts: 1028
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #12 on: September 13, 2012, 07:51:31 am » |
The signature is changed in: avrdude.conf
If you are using Windows, I think it is located at: <Arduino Dir>\hardware\tools\avr\etc\avrdude.conf (if it is not there, just search for the file name)
For Mac it is located at: (Click the desktop, then:) Go->"Go To Folder..." /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 83
|
 |
« Reply #13 on: September 13, 2012, 11:48:23 am » |
Done burning bootloader. best sentsnce ever  . thanks man but i cannot upload program  i tried both uarts and nothing. i also changed baud rate to 115200. didnt help. BTW there is original atmega1284p on 16mhz bootloader. any solution?
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
Edison Member
Karma: 38
Posts: 1028
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #14 on: September 13, 2012, 12:12:02 pm » |
Could you post the lines you added to the boards.txt file?
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
|