Re-program the Bootloader on M1.X

This post describes how to re-program the bootloader to the Macchina 1.0 or 1.1.

These instructions would only need to be followed if the bootloader needs to be reprogrammed for some reason. For example, if the microcontrollers are replaced, a clone is created, you really screwed something up, etc. The board ships with everything pre-programmed and ready to roll.

1. Grab one of these: "Atmel AVRISP mkII In-System Programmer (ATAVRISP2)" and plug it into your computer. Found here:

http://store.atmel.com/PartDetail.aspx?q=p:10500054#tc:description

2. Install "Atmel Studio". At time of this post, version 6.2 is the latest and greatest. Sorry, it is a huge application and we only use the programmer section for this. Yea, there are probably better options out there, but it works.

3. Launch the Application, under "Tools" select "Device Programming".

4. Under "Tool" in that menu, select "AVRISP mkII", Choose "ATmega16U2" under "Device", and hit "Apply".

5. Power the Macchina via USB and a power supply. We have noticed that using an external wall-wart type power supply works better than plugging into a computer. Connect the 6-PIN programming header to the corresponding header for the microcontroller as shown here:

6. Hit the "Read" button under "Device signature" - It should read out something like: 0x1E9489. If, so, that means we are communicating with the micro, and we can program the bootloader files.

7. Click on "Production File", and navigate to "16U2 production.elf" file, and downloaded here:

http://www.rechargecar.com/sites/default/files/16U2%20production.elf

8. Now we program the ATmega16U2: Check "Fuses" and "Lock bits" and hit "Program". It should looks something like this:

9. Next we program the ATmega2560:

Change connection as shown here:

10. Change the settings, select the new .elf file found here:

http://www.rechargecar.com/sites/default/files/2560%20production.elf

11. If everything looks like this, Hit "Program":

12. Lastly, we want to tell the microcontroller some specifics of the circuit including the clock speed.

The FUSES should be as follows:

EXT = FD
HIGH= D8
LOW = E0

Change these and hit Program! Now, you should be good to go.

Comments

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing Zonnepanelen Hoeilaart

Thanks for an interesting blog. What else may I get that sort of info written in such a perfect approach? I have an undertaking that I am just now operating on, and I have been on the lookout for such info. Ramen en deuren Bertem

I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site. Zonnepanelen Huldenberg

I know this is one of the most meaningful information for me. And I'm animated reading your article. But should remark on some general things, the website style is perfect; the articles are great. Thanks for the ton of tangible and attainable help. Ramen en deuren Bierbeek

Fabulous post, you have denoted out some fantastic points, I likewise think this s a very wonderful website. I will visit again for more quality contents and also, recommend this site to all. Thanks. casino online canada

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. free spins casino

This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. keno casino

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. online casinos

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. online craps

This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff.  real money casino canada

Keep up the good  work , I read few posts  on this  web site  and I  conceive that your blog  is very   interesting and has   sets  of  fantastic   information. nettcasino

Superior post, keep up with this exceptional work. It's nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! beste nettcasino

This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… norske casino

The content is utmost interesting! I have completely enjoyed reading your points and have come to the conclusion that you are right about many of them.  You are great, and your efforts are outstanding! nye casino

I know this is one of the most meaningful information for me. And I'm animated reading your article. But should remark on some general things, the website style is perfect; the articles are great. Thanks for the ton of tangible and attainable help. beste betting sider

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing beste casino bonuser

I have been impressed after read this because of some quality work and informative thoughts. I just want to say thanks for the writer and wish you all the best for coming! Your exuberance is refreshing. nettcasino

If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings.  Thank you for caring about your content. norske casinosider

An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers.  casino sider

Remarkable article, it is particularly useful! I quietly began in this, and I'm becoming more acquainted with it better! Delights, keep doing more and extra impressive! bingo online

I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... bingo online

Pages