Loading...
Pages: [1]   Go Down
Author Topic: Optiboot 4.6 with atmega32 support  (Read 532 times)
0 Members and 1 Guest are viewing this topic.
Rapa Nui
Offline Offline
Edison Member
*
Karma: 31
Posts: 1183
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Enclosed pls find the Optiboot 4.6 with atmega32 support.
To get the hex:
1. edit "atmega32:" defs in the Makefile, if required (ie. crystal freq, upload baud rate, number of flashes, flashing during upload, etc.)
2. edit pin_defs.h if the LED placed on a different pin
3. run "omake atmega32"
4. set fuses for atmega32, ie.: Low fuse 0xFF, High fuse 0xCE
5. edit your boards.txt flash size item, ie.: atmega32.upload.maximum_size=32256

Use at your own risk, provided as-is.
« Last Edit: February 27, 2013, 05:52:27 am by pito » Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 826
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice. I will throw together my changes for board variant stuff so that it is a complete package.
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 826
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Pito,

I also stumbled on another interesting bootloader project which I am in the process of porting over to ATMega32, 128, and 1284 (I finally ordered a 1284 to play with.)

http://dangerousprototypes.com/2012/04/03/2boots/

It allows programming the chip over SD card and uses the optiboot core to keep it all under 2K. Neat project. It would be very handy to update sketches of something already installed without a serial port access or ISP access.
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 31
Posts: 1183
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For an everyday development work an uart based bootloader is a must, imho. An sdcard based one is nice to have, especially when you have to update an existing system firmware occasionally and on a remote location.
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 826
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

True, but if you look, this one actually does both in the same 2K. So, you can develop as normal, but then also update your sketch by SD card in application.
Logged

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

Quote
Enclosed pls find the Optiboot 4.6 with atmega32 support.
Which version did you start from?  4.5 from the optiboot repository?  Or from Maniacbug?

Do you have any objections to having this added to the main optiboot repository?
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 31
Posts: 1183
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Enclosed pls find the Optiboot 4.6 with atmega32 support.
Which version did you start from?  4.5 from the optiboot repository?  Or from Maniacbug?
Most probably from Maniacbug's "optiboot1284p".. Feel free with adding it to..
Logged

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

So here's the "merged" ATmega32 .hex file (same 11.xxxMHz clock as Pito's makefile...)
Can someone with an actual m32 board test it out?
Logged

Pages: [1]   Go Up
Print
 
Jump to: