{"id":44,"date":"2025-10-07T09:46:12","date_gmt":"2025-10-07T08:46:12","guid":{"rendered":"https:\/\/blinkbonnie.xyz\/?p=44"},"modified":"2025-10-07T09:46:13","modified_gmt":"2025-10-07T08:46:13","slug":"pic-dev-on-linux","status":"publish","type":"post","link":"https:\/\/blinkbonnie.xyz\/?p=44","title":{"rendered":"PIC Dev on Linux"},"content":{"rendered":"\n<p>After leaving Windows, I thought I\u2019d need to keep a copy around as a VM for edge cases, like programming PICs. In fact I was resigned to not being able to continue PIC development.<\/p>\n\n\n\n<p>Then I discovered the difficulty the Pico has with some of my older hardware and I decided to have another look at it.<\/p>\n\n\n\n<p>So I booted into a Windows 7 VM I kept for running Pic Basic Pro and I wasn\u2019t happy with the result. I already forget what the problem was, but part of it was that my installation no longer registers as activated. I also had problems with icprog.<\/p>\n\n\n\n<p>So I decided to try a different approach.<\/p>\n\n\n\n<p>Essentially, I figured out how to use Lutris to run DosBox so that I can compile the Pic Basic programs. I wouldn\u2019t have bothered, except that I needed to use a PIC to drive the motor controller on Spot X.<\/p>\n\n\n\n<p>It was slow AF, but after increasing the clock speed of the emulator it went much quicker. So compiling the software was a bit of a chore but doable. Then came the programmer.<\/p>\n\n\n\n<p>I use an ancient serial programmer with ancient software so I needed to go through a bit of rigmarole to get things working.<\/p>\n\n\n\n<p>It involved adding a key to the wine system.reg file, checking that the symlink between com1 and \/dev\/ttyS0 was correct and then checking that I was in the dialout group.<\/p>\n\n\n\n<p>I was using WINE to launch icprog, so I went to the folder where icprog105D.exe is and checked that icprog.sys was in the same location<br>I opened icprog with Wine Windows Program Loader and after checking the connection settings I was able to program a PIC with a precompiled hex file.<\/p>\n\n\n\n<p>It works! Just,<\/p>\n\n\n\n<p>I\u2019ve noticed that I get a lot of verify errors; more than I would normally expect. Or rather, I have way more successful uploads than I have any reason to expect, yeah, let\u2019s say that.<\/p>\n\n\n\n<p>Originally written <a href=\"http:\/\/10.1.1.201\/index.php\/2025\/08\/27\/pic-dev-on-linux\/\">August 27, 2025<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After leaving Windows, I thought I\u2019d need to keep a copy around as a VM for edge cases, like programming PICs. In fact I was resigned to not being able to continue PIC development. Then I discovered the difficulty the Pico has with some of my older hardware and I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":1,"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blinkbonnie.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}