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

I am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles.  pro marketers

Thankful to you for your post, I look for such article along time, today I find it finally. this post give me piles of instigate it is to a marvelous degree relentless for me. Tommy Fury

I am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles.  Betting Clubs

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. toptan iç giyim

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. Antalya psikolog

Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. Bursa psikolog

Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. toz klor

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. havuz malzemeleri

I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. 먹튀검증

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. 먹튀폴리스

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. tvist

The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again. Hoxiear

You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. Battlefield 5

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. Battlefield 5

I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. TAR CONFLICT FIRST LOOK

Excellent post. I was always checking this blog, and I’m impressed! Extremely useful info specially the last part, I care for such information a lot. I was exploring this particular info for a long time. Thanks to this blog my exploration has ended. TAR CONFLICT FIRST LOOK

Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks Soloprime

Pages