Getting the ATMega32 to run on Arduino 1.0.3 IDE

I2C (with my 8563 RTC and BMP085) and SdFat bench work with above atmega32 config. DigitalIO (and probably other libs with chip #defines) needs a fix. Most probably PWM needs fix as well (only 4 available with atmega32).

// MIGHTY ATMEL ATMEGA32
//                       +---\/---+
//           (D 0) PB0  1|        |40  PA0 (AI 0 / D24)
//           (D 1) PB1  2|        |39  PA1 (AI 1 / D25)
//      INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D26)
//       PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D27)
//        SS (D 4) PB4  5|        |36  PA4 (AI 4 / D28)
//      MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D29)
//      MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D30)
//       SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D31)
//                 RST  9|        |32  AREF
//                 VCC 10|        |31  GND 
//                 GND 11|        |30  AVCC
//               XTAL2 12|        |29  PC7 (D 23)
//               XTAL1 13|        |28  PC6 (D 22)
//      RxD (D 8)  PD0 14|        |27  PC5 (D 21) TDI
//      TxD (D 9)  PD1 15|        |26  PC4 (D 20) TDO
//     INT0 (D 10) PD2 16|        |25  PC3 (D 19) TMS
//     INT1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
//      PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
//      PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
//          (D 14) PD6 20|        |21  PD7 (D 15) PWM
//                       +--------+
//

All that suff is defined in the pins_arduino.h file inside the variants folder. Easy to fix. I think I have a completely woring setup now, just having issues with my serial cable. I grabbed an FT232R board and started soldering it up in order to provide auto-reset etc... I didn't finish it up last night, but should have it done tonight. I will post modified files once I am done.

Great! Maybe you may provide us with a brief "how-to" then - all DIP40 atmega chips have got the same pin layout, so we can create ie.:

cores/mighty16 and variants/mighty16
cores/mighty32 and variants/mighty32
cores/mighty324 and variants/mighty324
cores/mighty64 and variants/mighty64
cores/mighty644 and variants/mighty644
cores/mighty1284 and variants/mighty1284
..

in order to cover all DIP40 chips easily.. :slight_smile:
PS: I am going to rename my ../atmega32 to mighty32

I've modded the optiboot4.5 to support atmega32 (see the topic on 4.6). Works fine. Change in your boards.txt info:

atmega32_11_115.upload.maximum_size=32256

Hi,

i buy some Atmega32-16AU in Tqfp44 Package, i cant find any Solutions or Pin-Files for this AVR to work on Arduino-IDE.