Pages: [1]   Go Down
Author Topic: Creating pin definitions & boards.txt entries  (Read 919 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I've been working on a design using an Atmega1284P-PU in the DIP package, however due to space constraints may have to switch to the 1284P-AU in the TQFN package.

Now, I'm not using a bootloader - I am simply flashing with an AVR ISP Mk II over ICSP.  I will still have USB communications available for serial debugging and SD storage download, however that is another story. How would I go about using the P-AU version with the Ardunio IDE?

1) I'm assuming i'll need to make another entry in boards.txt as the device signature will be different.
2) Regarding fuses and lockbits etc, I'll set these with Atmel Studio - so all the trouble people have been having with bootloaders, is not a problem here.
3) Setting pin definitions, again - i'm assuming another file will be needed somewhere here? Here is where I'm a little lost.
« Last Edit: November 04, 2012, 08:15:28 am by jtw11 » Logged

Canada
Offline Offline
Jr. Member
**
Karma: 1
Posts: 81
Frequently Befuddled
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My understanding is that the package doesn't matter, so you should not need another pin definition file or boards.txt entry.

Eg. the UNO does not have two entries for the DIP versus SMD versions.
Logged

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the device signature not change then between package type?
Logged

Canada
Offline Offline
Jr. Member
**
Karma: 1
Posts: 81
Frequently Befuddled
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think the signature is package-dependant. I can't say for sure with the '1284p but with the 328's I've used, it didn't matter if they were DIP or SMD.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
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

1. 1284P-PU, 1284P-AU, 1284P-MU all have the same device signature.
2. That's one way to do it. I use my MKii to burn a bootloader to set the fuses, and then File:Upload using Programmer to load the sketch.  Mostly because I don't like waiting around for Atmel Studio start up.
3.  Pins_arduino.h is the same for package to package. It maps the software names to port names. The software doesn't care how you then get from the port to the physical pin or what the physical pin numbers are.
« Last Edit: November 04, 2012, 06:13:22 pm by CrossRoads » 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.

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

See the diffs attached to http://code.google.com/p/arduino/issues/detail?id=1055 for some additional documentation on pins_arduino.h
Logged

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

2. That's one way to do it. I use my MKii to burn a bootloader to set the fuses, and then File:Upload using Programmer to load the sketch.  Mostly because I don't like waiting around for Atmel Studio start up.

Many thanks again - that's how I successfully did my 1284P-PUs, I just thought that a different signature would mean different bootloader, but now I know it's all the same.

Cheers!
« Last Edit: November 06, 2012, 06:12:08 am by jtw11 » Logged

Pages: [1]   Go Up
Jump to: