Chennai, India
Offline
God Member
Karma: 0
Posts: 751
Peace!!!
|
 |
« on: May 21, 2010, 08:53:49 pm » |
Well how about capabilities to choose a hex file compiled earlier or creating using other methods... this can then be extended in making the arduino a full time AVR programmer. I was reading this and think it makes a lot of sense to add a programmer option http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274458829cheers Pracas
|
|
|
|
|
Logged
|
Be The Change...
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #1 on: May 22, 2010, 01:03:45 pm » |
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #2 on: May 22, 2010, 03:47:02 pm » |
Yes, this exactly describes what is needed. However the question is why is it not supported in the first place? Obviously the IDE knows about programmers because it supports flashing the bootloaders. So the assumption is that some IDE users will posses programmers. In my opinion it should be supported by default.
Udo
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #3 on: May 22, 2010, 04:45:57 pm » |
put that way I agree, I have been dancing around the subject for a few evenings now not because I need more space, but I am trying to interact with a system that starts talking on the bus ~750ms after power on, and naturally the bootloader delay gets in the way
Instead of hacking text files, or finding the hex and manually sending it over avrdude a default option would be welcome
|
|
|
|
« Last Edit: May 22, 2010, 04:47:12 pm by Osgeld »
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15312
Measurement changes behavior
|
 |
« Reply #4 on: May 22, 2010, 06:43:59 pm » |
but I am trying to interact with a system that starts talking on the bus ~750ms after power on, and naturally the bootloader delay gets in the way There is a bootloader available written by "Lady Ada", Limor Fried, of Adafruit Industries. It has virtually zero time delay on power up. I have used it and it works well for must start quickly applications: http://www.wulfden.org/TheShoppe/freeduino/ADABOOT.shtmlLefty
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #5 on: May 22, 2010, 07:04:32 pm » |
yep I am aware of it, but what I am looking at now is I have my arduino dedicated to isp functionality, strapping a breadboard chip
Its hooked up its sending fine otherwise I would hook this all up, load a bootloader and hook up another rig for serial then go at it. Currently I can mod some text files, and whenever I click upload it bounces to my breadboard chip via ISP.
But it would be nice as a "point n click" option
|
|
|
|
« Last Edit: May 22, 2010, 07:11:53 pm by Osgeld »
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #6 on: May 23, 2010, 04:01:49 am » |
@Osgeld: Instead of hacking text files, I would not call this hacking text files. This is a simple structured configuration file. If your programmer happens to be and avrispmkii it is a simple as adding the following lines to hardware/arduino/boards.txt: # this defines how the entry will show up in the IDE menu atmega328ispmk2.name=Arduino ATmega328 AvrISPmkII
# maximum upload size = maximum flash size since we do not need a bootloader anymore atmega328ispmk2.upload.maximum_size=32768
# which programmer to use # avrispmkii exists already in programmers.txt # if you possess a different one you might need to add an entry there as well atmega328ispmk2.upload.using=avrispmkii
# target controller, relevant for the controller AND the compiler atmega328ispmk2.build.mcu=atmega328p
# target frequency, irrelevant for the programmer, will be picked up by the compiler though atmega328ispmk2.build.f_cpu=16000000L #atmega328ispmk2.build.f_cpu=1000000L
# no clue what this does but the other entries use this as well :) atmega328ispmk2.build.core=arduino
It is really simple. In my opinion this does not at all qualify as hacking. Especially it paves the way for other controllers as well. Once you start thinking about it this bascially opens a whole new world. You do not need to stick to any Arduino boards whatsoever. This way you can flash any "naked" chip right from the IDE. Just look up the datasheet for the default speed and flash size and stick to the RC oscillator. Unless you need really accurate timing this is the barest bare bones operation you can achieve  Udo
|
|
|
|
« Last Edit: May 23, 2010, 04:02:57 am by udoklein »
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #7 on: May 23, 2010, 04:04:54 am » |
Just one more comment. With avrispmkii it works that way right out of the box. With an el cheapo ISP from ebay it took some more fiddling. This might qalify as a little bit of hacking --> go for the atmel isp. It is not much more expensive and very good quality and it works.
Nothing is more frustrating than searching for bugs in your tools.
Udo
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Chennai, India
Offline
God Member
Karma: 0
Posts: 751
Peace!!!
|
 |
« Reply #9 on: May 25, 2010, 11:13:55 am » |
Uploading using a programmer (from within the IDE without editing any preferences files) I meant something where i can compile using any compiler but be able to download the hex file using arduino?
|
|
|
|
|
Logged
|
Be The Change...
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #10 on: May 25, 2010, 12:41:48 pm » |
woot
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Forum Administrator
Cambridge, MA
Offline
Faraday Member
Karma: 7
Posts: 3532
|
 |
« Reply #11 on: May 25, 2010, 03:01:26 pm » |
Ah... hex file download is something that could be nice, but never seems like a high priority. If you're already using another tool to generate the .hex file, why upload it with Arduino?
|
|
|
|
|
Logged
|
|
|
|
|
Nottingham, UK
Offline
Jr. Member
Karma: 0
Posts: 90
Wait! Don't touch that wire...
|
 |
« Reply #12 on: May 27, 2010, 04:06:06 am » |
Without wanting to appear sychophantic, I agree whole-heartedly, and if I used something like AVR Studio, I wouldn't then use the Arduino IDE to download.
However, I would like to see an option where you can (optionally)download EEMEM hex files which are part of a sketch.
|
|
|
|
|
Logged
|
|
|
|
|
DeKalb, IL USA
Offline
Full Member
Karma: 0
Posts: 243
KB9SXU
|
 |
« Reply #13 on: May 27, 2010, 08:19:20 am » |
What if someone was given the pre-compiled hex file by someone else? In this case they would not have created it in another IDE and would still need a way to get it to their Arduino without the complications of Avrdude.
|
|
|
|
|
Logged
|
Jeff K - JKDevices.com - home of the MegaMini
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #14 on: May 27, 2010, 08:33:01 am » |
What if someone was given the pre-compiled hex file by someone else?
Just say : "No thanks! I'm a open source minded guy so give me the sketch code instead. If you don't want to do that you could at least figure out the AvrDude commandline arguments for me" Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
|