{"id":184,"date":"2011-10-12T16:11:51","date_gmt":"2011-10-12T23:11:51","guid":{"rendered":"http:\/\/zethus.ca\/wp\/?p=184"},"modified":"2018-10-20T21:49:21","modified_gmt":"2018-10-21T04:49:21","slug":"olimess","status":"publish","type":"post","link":"http:\/\/zethus.ca\/wp\/?p=184","title":{"rendered":"Olimess"},"content":{"rendered":"<p><a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0114.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-203 alignleft\" title=\"olimex with rst and hwb\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0114-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0114-300x225.jpg 300w, http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0114-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>I blew up my Olimex ISP500 programmer the other night. \u00a0I left it plugged into my mac and target board. The next night when I went to use it, there was no life. \u00a0 On a whim, I replaced the AT90USB162. \u00a0When I plugged it in, it actually came up in DFU mode. Wonderful. \u00a0So now I&#8217;m in the process of reverse engineering the schematic for this so that I can reflash some sort of programming firmware on to it. \u00a0The default olimex firmware seems to be encrypted. \u00a0I may still see if I can read the firmware image off of a working unit, but I suspect it is all protected.<\/p>\n<p><a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0108.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-192\" title=\"IMG_0108\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0108-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0108-300x225.jpg 300w, http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0108-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0110.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-193\" title=\"IMG_0110\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0110-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0110-300x225.jpg 300w, http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/IMG_0110-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Ok a quick update&#8230; \u00a0I hacked on a RST and HWB button. You can see them in the first photo. The is a 10k pullup added to a conveniently existing pad below the hwb (lower) button in the photo. \u00a0The DFU loading works wonderfully now. \u00a0I&#8217;ve uploaded a modified version of the AVRISP2 programmer code from the <a href=\"http:\/\/www.fourwalledcubicle.com\/LUFA.php\">LUFA<\/a> project. \u00a0I can talk to the programmer now, but not any devices. The ADC for the target voltage still needs work.<\/p>\n<p>One further update the programmer now works, \u00a0I had to tweak the software to invert the miso data from the target, since there is a schmitt trigger invert, probably as a cheap level shifter.<\/p>\n<p>Now that everything works, you will find attached:<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><span style=\"direction: ltr;\">Reverse engineered schematic for the olimex (<\/span><a style=\"direction: ltr;\" href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/Olimex-ISP500.pdf\">Olimex ISP500 Schematic<\/a><span style=\"direction: ltr;\">)<\/span><\/li>\n<li><span style=\"direction: ltr;\">The patch to the <\/span><a style=\"direction: ltr;\" href=\"http:\/\/www.fourwalledcubicle.com\/LUFA.php\">LUFA 111009<\/a><span style=\"direction: ltr;\"> code for olimex isp 500 board support (buttons and leds) and the miso patch for the schmitt trigger inverter. (<\/span><a style=\"direction: ltr;\" href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/olimex.patch.txt\">olimex.patch<\/a><span style=\"direction: ltr;\"> v2)<\/span><\/li>\n<li><span style=\"direction: ltr;\"><a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/10\/AVRISP-MKII.hex_.txt\">AVRISP-MKII.hex<\/a><br \/>\n<\/span><\/li>\n<li><span style=\"direction: ltr;\">and some sample output\/usage:<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h5>Make the programmer code and program the Olimex ISP 500<\/h5>\n<pre>Chucks-Mac:AVRISP-MKII chuck$ make dfu\r\ndfu-programmer at90usb162 erase\r\ndfu-programmer at90usb162 flash AVRISP-MKII.hex\r\nValidating...9870 bytes used (80.32%)\r\ndfu-programmer at90usb162 reset<\/pre>\n<h5>Use the newly repaired Olimex to read a target board<\/h5>\n<pre>Chucks-Mac:AVRISP-MKII chuck$ avrdude -c avrisp2 -P usb -p at90usb1287\r\navrdude: AVR device initialized and ready to accept instructions\r\nReading | ################################################## | 100% 0.01s\r\navrdude: Device signature = 0x1e9782\r\navrdude: safemode: Fuses OK\r\navrdude done. \u00a0Thank you.\r\nChucks-Mac:AVRISP-MKII chuck$<\/pre>\n<h5>Other Notes<\/h5>\n<p>This code was built using LIBUSB since I&#8217;m on a Mac. It&#8217;s nice to know you can spent 3 days, and $3 for parts to fix a $40 programer \ud83d\ude44 I guess that is why they call it a hobby.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I blew up my Olimex ISP500 programmer the other night. \u00a0I left it plugged into my mac and target board. The next night when I went to use it, there was no life. \u00a0 On a whim, I replaced the &hellip; <a href=\"http:\/\/zethus.ca\/wp\/?p=184\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[8,6,9,7],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-avr","tag-at90usb","tag-avr-2","tag-isp","tag-lufa"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=184"}],"version-history":[{"count":23,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":770,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/184\/revisions\/770"}],"wp:attachment":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}