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

Excellent .. Amazing .. I’ll bookmark your blog and take the feeds also…I’m happy to find so many useful info here in the post, we need work out more techniques in this regard, thanks for sharing. Webdesign

Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. Spouwmuurisolatie

Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! Zonnepanelen

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch.  Thanks for that insight you provide the readers! Spouwmuur isoleren

Only strive to mention one's content can be as incredible. This clarity with your post is superb!  Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. Webdesign

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers Zonnepanelen kopen

Succeed! It could be one of the most useful blogs we have ever come across on the subject. Excellent info! I’m also an expert in this topic so I can understand your effort very well. Thanks for the huge help. Webdesign webshop

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. Ramen deuren

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. Airco

It is included in my habit that I often visit blogs in my free time, so after landing on your blog. I have thoroughly impressed with it and decided to take out some precious time to visit it again and again. Thanks. smm panel

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... hasta yatağı

This article is an appealing wealth of useful informative that is interesting and well-written. I commend your hard work on this and thank you for this information. I know it very well that if anyone visits your blog, then he/she will surely revisit it again. Lahore escorts

Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks! Call Girls in Karachi

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. Islamabad Escorts

This article is an appealing wealth of useful informative that is interesting and well-written. I commend your hard work on this and thank you for this information. I know it very well that if anyone visits your blog, then he/she will surely revisit it again. Escorts Lahore

That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more. Escorts in Islamabad

I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! Escorts in Karachi

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! Escorts in Lahore

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. Pakistan Escorts

Pages