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 Asse

Outstanding article!  I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. Warmtepomp Sint-truiden

I am unable to read articles online very often, but I’m glad I did today.  This is very well written and your points are well-expressed.  Please, don’t ever stop writing. PVC ramen

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. PVC ramen deuren

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! Warmtepomp Wellen

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. Warmtepomp Zonhoven

Excellent to be visiting your blog again, it has been months for me. Rightly, this article that I've been served for therefore long. I want this article to finish my assignment within the faculty, and it has the same topic together with your article. Thanks for the ton of valuable help, nice share. Houten ramen en deuren

Excellent website! I adore how it is easy on my eyes it is. I am questioning how I might be notified whenever a new post has been made. Looking for more new updates. Have a great day! Warmtepomp

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. Zonnepanelen

A decent blog dependably concocts new and energizing data and keeping in mind that understanding I have feel that this blog is truly have each one of those quality that qualify a blog to be a one. يلا كورة

Efficiently written information. It will be profitable to anybody who utilizes it, counting me. Keep up the good work. For certain I will review out more posts day in and day out. 오피아트

I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here. best minecraft servers

  stunning, great, I was wondering how to cure skin break out ordinarily. likewise, found your site by google, took in an extraordinary arrangement, now i'm fairly clear. I've bookmark your site and moreover incorporate rss. keep us invigorated. Infinix S5 Pro (48+40) Price

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. 먹튀폴리스

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. 토토사이트

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! 토토사이트

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post matka  

A decent blog dependably concocts new and energizing data and keeping in mind that understanding I have feel that this blog is truly have each one of those quality that qualify a blog to be a one. satta matka  

Outstanding article!  I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. Ramen en deuren Wilsele

Pages