{"id":1309,"date":"2023-09-12T13:15:59","date_gmt":"2023-09-12T12:15:59","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=1309"},"modified":"2023-09-14T12:29:16","modified_gmt":"2023-09-14T11:29:16","slug":"migrating-to-latest-compiler-version","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic32\/xc32\/issues-with-xc32-compiler\/migrating-to-latest-compiler-version","title":{"rendered":"Migrating to latest compiler version"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Moving from V2.# to V4.# of XC32<\/h4>\n\n\n\n<p>We found we needed the following changes moving from V2.# to V4.# of the XC32 compiler:<\/p>\n\n\n\n<p>Plib is no longer maintained or distributed with current versions of compiler.<br>Microchip expects you to use Harmony to configure and generate code for the purpose.<\/p>\n\n\n\n<p>Remove: #include &lt;piclib.h&gt;<br>Replace with: #include &lt;xc.h&gt;<\/p>\n\n\n\n<p>Remove: our own typedef unsigned char uint8_t; etc definitions (now done as standard within xc32 library files)<\/p>\n\n\n\n<p>Errors like: warning: implicit declaration of function &#8216;SYSTEMConfigPerformance&#8217;<br>are caused because these functions are gone, Microchip expects you to use MCC\/Harmony to configure and generate the code now. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moving from V2.# to V4.# of XC32 We found we needed the following changes moving from V2.# to V4.# of the XC32 compiler: Plib is no longer maintained or distributed with current versions of compiler.Microchip expects you to use Harmony to configure and generate code for the purpose. Remove: #include &lt;piclib.h&gt;Replace with: #include &lt;xc.h&gt; Remove: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,106],"tags":[],"class_list":["post-1309","post","type-post","status-publish","format-standard","hentry","category-issues-with-xc32-compiler","category-xc32-general"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=1309"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1309\/revisions"}],"predecessor-version":[{"id":1363,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1309\/revisions\/1363"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=1309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=1309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=1309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}