{"id":1187,"date":"2022-05-26T20:25:45","date_gmt":"2022-05-26T20:25:45","guid":{"rendered":"https:\/\/socmaker.com\/?p=1187"},"modified":"2022-05-26T20:30:21","modified_gmt":"2022-05-26T20:30:21","slug":"psoc5-compile-debug-using-slight-of-drive-hand","status":"publish","type":"post","link":"https:\/\/socmaker.com\/?p=1187","title":{"rendered":"PSOC5 Compile &#038; Debug Using Slight Of Drive Hand"},"content":{"rendered":"\n<p>I have a very old MacBook pro (3,1), core 2 duo, OS X El Capitan.  The core 2 duo is one of the first 64 bit processors.  I wanted to use it as a kick-around machine for debugging in the lab during high temperature testing.<\/p>\n\n\n\n<p>Unfortunately, the current VSCode (1.6.3) will not install on El Capitan without crashing.  An earlier version of VSCode (1.5) will, but that version will not run the extensions necessary.  <\/p>\n\n\n\n<p>I tried installing Ubuntu on the MBP, but that failed miserably.  I think the hard drive also cratered at the same time.  (Aside: I also have a core duo (32 bit) Ubuntu installed on a MBP 1,1 (2006), but VSCode requires a 64 bit machine. (ugh!))  I eventually found an old 128gb ssd and installed it in the MBP 3,1, and re-installed OS X El Capitan.  Boots fairly quickly.<\/p>\n\n\n\n<p>I had an old VMWare Fusion 8.5 (the last one that will run on the MBP&#8217;s OS without complaining) and installed it.<\/p>\n\n\n\n<p>I was then able to transfer over LUbuntu 19 from Fusion 12 by downgrading the VM to where Fusion 8 will open it.  That VM already had VSCode installed on it.<\/p>\n\n\n\n<p>The problem that occurred was when the cyelftool.exe (which apparently requires a 32 bit wine to be installed) was not executed by wine 64 bit version.  Fortunately, wine complained with a suggestion of what to do. I ran the command line the 64 bit wine app suggested, and I was able to get a build!<\/p>\n\n\n\n<p>Bottom Line: A 15&#8243; MacBook Pro from 2007 with 4 gigabytes of RAM will work with a Linux VM running VSCode as previously set up for Linux.  (See my previous posts on this site.)<\/p>\n\n\n\n<p>It takes about 45 seconds for VSCode to come alive and configure it&#8217;s extensions for working. (The VM is configured as 2 CPU&#8217;s with 3 gigabytes of memory.)  Ram Bus speed is 800mhz, so is essentially a single 1 ghz processor, or two 400mhz processors.<\/p>\n\n\n\n<p>After VSCode configures, it takes about 20 seconds for a small project to compile over a networked drive situated on my i9 iMac (using file sharing from that machine).   The virtual machine is using a VMware shared folder located on the MBP.  The shared folder is soft linked into an smb mounted volume. So, it ultimately reads the files from the iMac&#8217;s shared drive.   Essentially an smb share of an smb share which also happens to be backed up by dropbox on the iMac. (Say that 5 times fast.)<\/p>\n\n\n\n<p>I suspect the MacBook can be configured to do things a bit faster, but it is good enough for a machine that would otherwise be in the trash heap.  Even so, it is still about twice as fast as a windows machine running PSOC Creator on a 3ghz processor in building the same project.  Hmm.<\/p>\n\n\n\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a very old MacBook pro (3,1), core 2 duo, OS X El Capitan. The core 2 duo is one of the first 64 bit processors. I wanted to use it as a kick-around machine for debugging in the lab during high temperature testing. Unfortunately, the current VSCode (1.6.3) will not install on El [&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-1187","post","type-post","status-publish","format-standard","hentry","category-blogposts"],"_links":{"self":[{"href":"https:\/\/socmaker.com\/index.php?rest_route=\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/socmaker.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/socmaker.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/socmaker.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/socmaker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":2,"href":"https:\/\/socmaker.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1189,"href":"https:\/\/socmaker.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions\/1189"}],"wp:attachment":[{"href":"https:\/\/socmaker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/socmaker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/socmaker.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}