Go Down

Topic: What Are The Pros And Cons Of Not Using The Arduino Bootloader (Read 3307 times) previous topic - next topic

tuxduino

Quote
people don't read the datasheet and rely too heavily on the arduino library.


And then come here asking questions about the things that are in the datasheets*  :P

Seriously, though, the beauty of Arduino is it doesn't prevent you from diving into direct port and register manipulation, but it doesn't force you to learn that stuff unless you feel you need it or want to learn it.


* I might be one of those :P

dhenry

Quote
the beauty of Arduino is...


Absolutely. that optionality is quite valuable and that's why you pay more for an arduino than a bare chip.

westfw

Well, yeah.  It depends on how much you know and how much you're willing to figure out.
If you've been using AVRStudio for years and are only looking at Arduino because it's a cheap and easy-to-get eval board, then there's no particular advantage to using the bootloader.
If you're expecting to get your external programmer working with no bootloader by reading the one-sentence description of "use shift-upload to upload your sketch using an external programmer", then perhaps you should reconsider using the bootloader after all.

The number of people who have tried to bootloader programmer to work with long wires leading to their protoboard avr with only half its power pins connected and no bypass caps and no clock circuitry and no tools has been a bit ... impressive.  You want to say things like "you can probably connect an external clock signal and reprogram the fuses to unbrick your chip", and you realize that that's just not going to help any without step-by-step pictures or video or something.  And that's OK, because this is the target audience for Arduino, and some of those people go on to create project of jaw-droppingly clever beauty.

But to say that "there are no cons to not using the bootloader" is just ... wrong.

dhenry

Quote
"you can probably connect an external clock signal and reprogram the fuses to unbrick your chip"


I would have said "put your fingers on the oscillator pins ...", :)

Agree with you. There are two sides to any coin.

And the finger on the oscillator pins trick does work.

westfw

Quote
And the finger on the oscillator pins trick does work.

Really?  Regardless of the SPI frequency of the programmer?

tigerbomb8

thanks for the information guys/gals. it looks like i will stick with the bootloader.
i already have a shield for programing attinys so i can add a spot for the atmega328 and burn the bootloader my self. that will save me a couple of $$

fungus


I picked up one of those USB-ASP jobbies off ebay for a couple of dollars, and been using it to program ATMEGA8's.  Since I chose to use the chip config which utilizes the internal oscillator instead of a crystal, that also reduces the cost and complexity of the build to the chip plus two caps.


Me too. I just got a TLC5940 hooked up to an ATtiny85. No problem.

PS: Two caps? What's the other one for? I heard a pull-up resistor on the reset was a good idea, although they have one built in so I'm a bit confused.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

fungus


You're telling me - I was recently tempted by an auction of ATmega8's on eBay that was on the close order of a buck a chip delivered.  That's cheaper than I'm getting ATtiny85's!  More GPIO, same flash and memory, same basic level of avr-gcc support, the only thing that stopped me was my overflowing bin of parts I've accumulated.


I was looking on Farnell last week and ATtiny84s are 94 Eurocents each in quantities of ten.

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

dc42


To bootload or to not bootload.... that is the question


The bootloader is great when you are developing on a real Arduino. You can use the same USB cable for loading the program and for the serial monitor.

However, when I take a design I have prototyped on the Arduino and build it on a dedicated board, I always include a 6-pin ICSP header on the board so that I can program it directly, and I don't program a bootloader into the mcu.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

CrossRoads

Quote
I heard a pull-up resistor on the reset was a good idea, although they have one built in so I'm a bit confused.

See pages 4 & 5
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up