{"id":1007,"date":"2020-07-10T15:39:29","date_gmt":"2020-07-10T13:39:29","guid":{"rendered":"https:\/\/retrofixes.it\/?page_id=1007"},"modified":"2023-03-28T09:47:02","modified_gmt":"2023-03-28T07:47:02","slug":"bootloader-arduino-con-s7","status":"publish","type":"page","link":"https:\/\/retrofixer.it\/en\/bootloader-arduino-con-s7\/","title":{"rendered":"Arduino bootloader with S7"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"1007\" class=\"elementor elementor-1007\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-53e663d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"53e663d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e616b72\" data-id=\"e616b72\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f3b2888 elementor-widget elementor-widget-heading\" data-id=\"f3b2888\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Flash ATMEGA with Studio7<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef85525 elementor-widget elementor-widget-text-editor\" data-id=\"ef85525\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you need to replace the microcontroller on an Arduino board or if for some reason you have used it by writing it completely and thus eliminating its bootloader, you can reprogram it to make it work with the native Arduino ide.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-775dcc5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"775dcc5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-6a4604b\" data-id=\"6a4604b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cf25c0d elementor-widget elementor-widget-text-editor\" data-id=\"cf25c0d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Already programming micro Atmel I already have at home I have the Atmel ICE programmer and therefore I use this together with the Atmel Studio 7 program.<\/p><p>A quick and easy process .. and above all smoothly (usually).<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-cf89f1a\" data-id=\"cf89f1a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d9da707 elementor-widget elementor-widget-image\" data-id=\"d9da707\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"240\" src=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/at_ice-300x240.png\" class=\"attachment-medium size-medium wp-image-1011\" alt=\"\" srcset=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/at_ice-300x240.png 300w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/at_ice-183x146.png 183w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/at_ice-50x40.png 50w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/at_ice-94x75.png 94w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/at_ice.png 400w\" sizes=\"(max-width:767px) 300px, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-1fcb0f3 elementor-widget elementor-widget-text-editor\" data-id=\"1fcb0f3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">It is necessary to connect the programmer to the computer, open Atmel Studio and click on the button for programming the micro (<\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal;\"><b>1<\/b><\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">), then select our programmer (in the example none), choose the type of micro to program (<\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal;\"><b>2<\/b><\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">), in the case of Arduino UNO or Nano boards it is a <\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal;\"><b>ATmega328P<\/b><\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">\u00a0(check your micro for safety) and then click on the button\u00a0<span style=\"color: #00ccff;\"><u>apply<\/u> <\/span>to confirm the selection.<\/span><\/p><p><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">Now it is necessary to power the micro or if on the board, feed Arduino directly with the USB cable and connect the programmer to the ICSP pins and then check if everything communicates correctly by reading the ID of the micro with the button\u00a0<u><span style=\"color: #00ccff;\">read<\/span>.<\/u><\/span><\/p><p><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">We select the item Memories (<\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal;\"><b>3<\/b><\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;\">) and browse the path where to find the bootloader of our model, for this thing it is necessary to have installed the Arduino ide, the bootloader is located in this path (if you have installed lide on disk C):<br \/>&#8220;<\/span>C: \\ Program Files (x86) \\ Arduino \\ hardware \\ arduino \\ avr \\ bootloaders \\ optiboot \\ optiboot_atmega328.hex<span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 0px;\">&#8220;<br \/><\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 0px;\">If you have different versions of Arduino you will need to select the one suitable for the micro in use.<br \/><\/span><span style=\"font-family: Nunito, Arial, Tahoma, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 0px;\">At this point, press the button <span style=\"color: #00ccff;\"><u>program<\/u> <\/span>to program the micro with the selected bootloader.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-671fcd9 elementor-widget elementor-widget-image\" data-id=\"671fcd9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"946\" height=\"799\" src=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1.jpg\" class=\"attachment-large size-large wp-image-1012\" alt=\"\" srcset=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1.jpg 946w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1-300x253.jpg 300w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1-768x649.jpg 768w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1-173x146.jpg 173w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1-50x42.jpg 50w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/07\/s7_1-89x75.jpg 89w\" sizes=\"(max-width:767px) 480px, (max-width:946px) 100vw, 946px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d135789 elementor-widget elementor-widget-text-editor\" data-id=\"d135789\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The last step is to program the spindles, go to the relative item (3) and set the following values on the registers:<\/p><table style=\"width: 200px;\"><tbody><tr><td>EXTEND:<\/td><td>0x05<\/td><\/tr><tr><td>HIGH:<\/td><td>0xDE<\/td><\/tr><tr><td>LOW:<\/td><td>0xFF<\/td><\/tr><\/tbody><\/table><p>Finally press the button <u><span style=\"color: #00ccff;\">program<\/span>.<\/u><\/p><p><u>P.<\/u>S. If you need it, you can calculate the time zones online on the site:\u00a0<a style=\"letter-spacing: 0px;\" href=\"https:\/\/www.engbedded.com\/fusecalc\/\">https:\/\/www.engbedded.com\/fusecalc<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f0d216f elementor-widget elementor-widget-image\" data-id=\"f0d216f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"863\" height=\"589\" src=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2.jpg\" class=\"attachment-large size-large wp-image-1243\" alt=\"\" srcset=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2.jpg 863w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2-300x205.jpg 300w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2-768x524.jpg 768w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2-214x146.jpg 214w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2-50x34.jpg 50w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/s7_2-110x75.jpg 110w\" sizes=\"(max-width:767px) 480px, (max-width:863px) 100vw, 863px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b8bf370 elementor-widget elementor-widget-text-editor\" data-id=\"b8bf370\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>End!\u00a0<\/p><p>PS .: With this method it is possible to program the micro directly even if we wanted to remove the bootloader to load the program directly into memory, so that even by connecting Arduino to the PC it will not be possible to delete \/ modify its program (but only via ICSP).<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8c47c9b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8c47c9b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a96e7fb\" data-id=\"a96e7fb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-015e89b elementor-grid-3 elementor-grid-tablet-2 elementor-grid-mobile-1 elementor-posts--thumbnail-top elementor-posts--show-avatar elementor-card-shadow-yes elementor-posts__hover-gradient elementor-widget elementor-widget-posts\" data-id=\"015e89b\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;cards_columns&quot;:&quot;3&quot;,&quot;cards_columns_tablet&quot;:&quot;2&quot;,&quot;cards_columns_mobile&quot;:&quot;1&quot;,&quot;cards_row_gap&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:35,&quot;sizes&quot;:[]},&quot;cards_row_gap_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;cards_row_gap_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"posts.cards\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-posts-container elementor-posts elementor-posts--skin-cards elementor-grid\" role=\"list\">\n\t\t\t\t<article class=\"elementor-post elementor-grid-item post-1257 post type-post status-publish format-standard has-post-thumbnail hentry category-senza-categoria tag-atmel-ice tag-atmel-studio tag-atmel-tools-not-listed tag-avr-programmer tag-ice-not-found tag-ice-not-recognized tag-programmatore-avr\" role=\"listitem\">\n\t\t\t<div class=\"elementor-post__card\">\n\t\t\t\t<a class=\"elementor-post__thumbnail__link\" href=\"https:\/\/retrofixer.it\/en\/atmel-ice-non-riconosciuto\/\" tabindex=\"-1\" ><div class=\"elementor-post__thumbnail\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"244\" src=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/ATATMEL_ICE_basic_DSL-300x244.png\" class=\"attachment-medium size-medium wp-image-1260\" alt=\"\" srcset=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/ATATMEL_ICE_basic_DSL-300x244.png 300w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/ATATMEL_ICE_basic_DSL-180x146.png 180w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/ATATMEL_ICE_basic_DSL-50x41.png 50w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/ATATMEL_ICE_basic_DSL-92x75.png 92w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/11\/ATATMEL_ICE_basic_DSL.png 600w\" sizes=\"(max-width:767px) 300px, 300px\" \/><\/div><\/a>\n\t\t\t\t<div class=\"elementor-post__avatar\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"128\" height=\"128\" src=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-150x150.png\" class=\"avatar avatar-128 photo\" alt=\"Mirco G\" srcset=\"https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-150x150.png 150w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-85x85.png 85w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-80x80.png 80w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-24x24.png 24w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-48x48.png 48w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-96x96.png 96w, https:\/\/retrofixer.it\/wp-content\/uploads\/2020\/06\/mario-300x300.png 300w\" sizes=\"(max-width:767px) 128px, 128px\" \/>\t\t<\/div>\n\t\t\t\t<div class=\"elementor-post__text\">\n\t\t\t\t<h3 class=\"elementor-post__title\">\n\t\t\t<a href=\"https:\/\/retrofixer.it\/en\/atmel-ice-non-riconosciuto\/\" >\n\t\t\t\tAtmel ICE not recognized\t\t\t<\/a>\n\t\t<\/h3>\n\t\t\n\t\t<a class=\"elementor-post__read-more\" href=\"https:\/\/retrofixer.it\/en\/atmel-ice-non-riconosciuto\/\" aria-label=\"Read more about Atmel ICE non riconosciuto\" tabindex=\"-1\" >\n\t\t\tRead more \u00bb\t\t<\/a>\n\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-post__meta-data\">\n\t\t\t\t\t<span class=\"elementor-post-date\">\n\t\t\t20 November 2020\t\t<\/span>\n\t\t\t\t<span class=\"elementor-post-avatar\">\n\t\t\tNo Comments\t\t<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/article>\n\t\t\t\t<\/div>\n\t\t\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Flashare L&#8217;ATMEGA con Studio7 Se dovete sostituire il microcontrollore su una scheda di Arduino o se per qualche motivo lo avete utilizzato scrivendolo completamente ed eliminando<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1007","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/pages\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/comments?post=1007"}],"version-history":[{"count":0,"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/pages\/1007\/revisions"}],"wp:attachment":[{"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/media?parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/categories?post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/retrofixer.it\/en\/wp-json\/wp\/v2\/tags?post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}