do you have a link to, or can you explain how a sketch is run without a bootloader?
Quote from: dave84 on Sep 17, 2013, 09:48 amdo you have a link to, or can you explain how a sketch is run without a bootloader?http://miscsolutions.wordpress.com/2011/08/09/prototyping-small-embedded-projects-with-arduino/
Quote from: dc42 on Sep 17, 2013, 10:02 amQuote from: dave84 on Sep 17, 2013, 09:48 amdo you have a link to, or can you explain how a sketch is run without a bootloader?http://miscsolutions.wordpress.com/2011/08/09/prototyping-small-embedded-projects-with-arduino/Perfect This board really needs a +Rep system....
Hi,As part of my Arduino learning process:I bought some blank 328P chips then I setup a breadboard with external crystal, caps, 328P chip etc as per this linkhttp://arduino.cc/en/Main/StandaloneThe part about the usb-ttl adapter I did not do at that point.I connected the proper cables to a ICSP programmer called a USBASP, available cheaply from ebay or you can build it yourself (have not tried to do that myself)I used AVRDude command line to set the fuses to match an Arduino. CAREFUL with that. You can 'brick' your chip and reder it unusuable if you do it wrong! I initially got the right fuse settings by taking the chip from the arduino, placing it on the breadboard and used AVRDUDE to query the chip and its settings. I also used AVRdude command line to upload a blink program and to prove it works. (without bootloader, directly through the ICSP interface)I was also able to upload the Arduino bootloader the same way.Then I went on the arduino software to do the same thinghttp://tutorial.cytron.com.my/2011/12/19/burning-arduino-bootloader-with-avr-usbasp/ After choosing the appropriate equivalent arduino board: in my case I chose Arduino mini for the breadboard and I also tried Arduino Uno for a chip I would put on the arduino uno.1- tools->programming->USBASP2- tools->Burn bootloader.by setting the output of the the software in the bottom of the screen to detailed, I was able to get all teh avrdude commands to set fuses and upload the bootloader, and that helped in my process above. This worked perfectly and then I put the chip in my arduino ( the one I burned the booloader on with board type as arduino uno), and was able to download to it using the normal usb method after that.After this I took a chip (burned a bootloader as an arduino mini)I put it in my breadboard as per above, connected the arduino serial loader (usb-ttl) and was able to download to it through the arduino software. If you are interested on any of this, I can put together detailed notes on the process/commands.