Pages: [1]   Go Down
Author Topic: burn sketch w/programmer, generic ATmega support  (Read 487 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd like the ability to burn a sketch using my avrispmkII without using the bootloader.  With some projects using the serial port directly, havign the bootloader is a liability.

I'd also like to see support for ICs and clock speeds made a bit more generic.  Having the board options is great for keeping it straightforward, but I'd also like to be able to select a set of options that say "burn to an ATmega168 with a 20MHz crystal using the avrispmkII" or "burn to an ATmega8 on the internal oscilator using the USBtinyISP".

It would be nice if the selected options stayed with the sketch, too, so as I bounce from project to project the sketch will "remember" the programming options I need.

-j
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've had a few people request the first option, so it's definitely on the radar.  What I imagine is that this option will appear if you select a board from the Boards menu that doesn't have a protocol defined in the boards.txt file.  In that case, you'll get another menu in the Tools menu called something like "Programmer to use for uploading" which will contain the programmers defined in the programmers.txt file.

I could imagine your second request working similarly - that is, picking something like "Custom" from the Boards menu would bring up two extra menus, Microcontroller and CPU Speed.  I guess you'd need a third for "Upload Protocol" (e.g. stk500, stk200, or "Using programmer").  I guess we'd just disable the burn bootloader option.  This is probably a lower priority, since you can always create a new board in the boards.txt file that corresponds to your hardware setup.  

I don't like the idea of saving options with sketches, since the general principle is that the sketches should be independent of the boards, and work on any of them.  And I really don't want to go down the road of letting you pick which options get saved with the sketch and which are saved globally.  It starts to sound like Eclipse.  smiley
Logged

0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
since you can always create a new board in the boards.txt file that corresponds to your hardware setup.
hmmm, sounds like I need to get familiar with boards.txt.  I only loaded version 10 yesterday, since I had a couple of projects in the works and didn't want to change the development environment before they flew.

thanks for listening!

-j

Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It should be pretty easy to create a new board definition. Just copy an existing one, change the settings as appropriate, and give the key name a new prefix (i.e. change "diecimila." to "myboard.").
Logged

Pages: [1]   Go Up
Jump to: