{"id":1819,"date":"2012-01-01T17:15:40","date_gmt":"2012-01-01T22:15:40","guid":{"rendered":"http:\/\/www.summet.com\/blog\/?p=1819"},"modified":"2012-01-01T17:15:40","modified_gmt":"2012-01-01T22:15:40","slug":"using-the-microchip-pic-kit-1-with-linux","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2012\/01\/01\/using-the-microchip-pic-kit-1-with-linux\/","title":{"rendered":"Using the Microchip PIC Kit 1 with Linux"},"content":{"rendered":"<p><a href=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2012\/01\/IMG_0331.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.summet.com\/blog\/wp-content\/uploads\/2012\/01\/IMG_0331-300x225.jpg\" alt=\"Microchip PICKit 1\" title=\"PICKit 1\" width=\"300\" height=\"225\" class=\"alignleft size-medium wp-image-1820\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2012\/01\/IMG_0331-300x225.jpg 300w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2012\/01\/IMG_0331-1024x768.jpg 1024w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2012\/01\/IMG_0331.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The PICKit 1 is a combination programmer and development board for midrange PIC micro-controllers. In addition to being able to program FLASH pic devices, it also allows them to run and access 8 (charlieplexed) LED&#8217;s, a pushbutton switch, and a potentiometer. It&#8217;s a great little board for learning the basic of micrcontroller programing, but unfortunately it is not supported by Microchip&#8217;s new MPLAB X software (that is written in Java, and supports Linux\/Mac in addition to Windows).<\/p>\n<p>You CAN however use the PICKit 1 under linux. The <a href=\"http:\/\/piklab.sourceforge.net\/devices.php\">piclab software<\/a> is supposed to support it (I have not tested this). I use <a href=\"http:\/\/tfc.duke.free.fr\/pickit.html\" > version 1.6<\/a> of the <a href=\"http:\/\/www.teammojo.org\/PICkit\/pickit1.html\"> PicKit1 flash usb programmer for unix<\/a>.  Even the newest 1.6 version reports checksum errors after writing the hex file, but it does work correctly.<\/p>\n<p>To make it work as an external program in MPLABX I had to select the &#8220;format HEX file for download&#8221; option under the Linker so that it would not fill all 2048 flash bytes when the program was smaller than that.  I am able to manually run the usb_pickit command after building to flash the code, but it&#8217;s kind of annoying, as that program has a problem verifying the checksum and reports an error every time (which is interpreted as a build failure) plus, I have to run mplab X with root permissions to be able to access my USB port. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The PICKit 1 is a combination programmer and development board for midrange PIC micro-controllers. In addition to being able to program FLASH pic devices, it also allows them to run and access 8 (charlieplexed) LED&#8217;s, a pushbutton switch, and a &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2012\/01\/01\/using-the-microchip-pic-kit-1-with-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,13,6,12],"tags":[],"class_list":["post-1819","post","type-post","status-publish","format-standard","hentry","category-linux","category-projects","category-reviews","category-goodlinks"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/1819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=1819"}],"version-history":[{"count":0,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/1819\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=1819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=1819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=1819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}