<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックError while integrating the PLU code? this could be a reason. (LPC55S69_cm33_core0.h))</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-while-integrating-the-PLU-code-this-could-be-a-reason/m-p/938353#M37381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Programmable Logic Unit (PLU)&amp;nbsp;offers an interesting functionality in the MCU world. It allows the&lt;SPAN class=""&gt;&amp;nbsp;possibility of creating small combinatorial and/or sequential logic networks including state machines.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;In this short blog post I present one of the possible errors that you may encounter while integrating the PLU code (generated from the PLU configuration tool figure below) in your overall application code in the MCUXpresso IDE.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92885iA90D5F4C4696D258/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;The board that I am working on is: LPCxpresso55s69.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Let's take the example of AND function that you would like to implement using the PLU module.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;An option is to use the PLU configuration tool.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The generated code from the configuration tool would look like:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;PLU-&amp;gt;LUT[0].INP[0] = 0x00000003; /* IN3 (A) */&amp;nbsp; &amp;nbsp;&amp;nbsp;// PLU IN n°3 is wired to IN n°1 of the LUT n°1&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[1] = 0x00000004; /* IN4 (B) */&amp;nbsp; &amp;nbsp;&amp;nbsp;// PLU IN n°4 is wired to IN n°2 of the LUT n°1&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[2] = 0x0000003F; /* default */&amp;nbsp; &amp;nbsp;&amp;nbsp;/&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[3] = 0x0000003F; /* default */&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[4] = 0x0000003F; /* default */&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[0] = 0x88888888; /* AND (AND) STD 2 INPUT AND */&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[1] = 0x00000000; /* LUT0 (AND) -&amp;gt; Y */&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;If you copy this piece of code and&amp;nbsp;paste it in the main C code, and you build it in the MCUpresso IDE you will get such error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91808iD8AED75E6A01B008/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="text-decoration: underline; font-size: 14pt; "&gt;How to fix it?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;Replace every&amp;nbsp;&lt;SPAN&gt;LUT[x].&lt;STRONG&gt;INP&lt;/STRONG&gt;[z]&lt;/SPAN&gt;&amp;nbsp;by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;PLU-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;LUT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;[x].&lt;STRONG&gt;INP_MUX&lt;/STRONG&gt;[z]&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;Why?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 18.6667px;"&gt;If you look into the header file: LPC55S69_cm33_core0.h where the PLU - Register Layout Typedef is defined you will see (Figure below) how the PLU INPUTs are named in the structure definition:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91906iE5B2B5257D861578/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;This is one of the errors that you may encounter.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i hope you found it helpful, and let me know what do you think.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I personally still didn't succeed in implementing a complete example using the PLU module. But still working on it cause it is an interesting feature&amp;nbsp;offered by this board.&lt;/DIV&gt;&lt;DIV&gt;Any one else working on that? Don't hesitate to share your experience and/or your errors, it is always helpful&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:smileywink:&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice errors fixing!&lt;/P&gt;&lt;P&gt;Randa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2019 12:37:37 GMT</pubDate>
    <dc:creator>randa_zarrouk</dc:creator>
    <dc:date>2019-10-18T12:37:37Z</dc:date>
    <item>
      <title>Error while integrating the PLU code? this could be a reason. (LPC55S69_cm33_core0.h))</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-while-integrating-the-PLU-code-this-could-be-a-reason/m-p/938353#M37381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Programmable Logic Unit (PLU)&amp;nbsp;offers an interesting functionality in the MCU world. It allows the&lt;SPAN class=""&gt;&amp;nbsp;possibility of creating small combinatorial and/or sequential logic networks including state machines.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;In this short blog post I present one of the possible errors that you may encounter while integrating the PLU code (generated from the PLU configuration tool figure below) in your overall application code in the MCUXpresso IDE.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92885iA90D5F4C4696D258/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;The board that I am working on is: LPCxpresso55s69.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Let's take the example of AND function that you would like to implement using the PLU module.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;An option is to use the PLU configuration tool.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The generated code from the configuration tool would look like:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;PLU-&amp;gt;LUT[0].INP[0] = 0x00000003; /* IN3 (A) */&amp;nbsp; &amp;nbsp;&amp;nbsp;// PLU IN n°3 is wired to IN n°1 of the LUT n°1&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[1] = 0x00000004; /* IN4 (B) */&amp;nbsp; &amp;nbsp;&amp;nbsp;// PLU IN n°4 is wired to IN n°2 of the LUT n°1&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[2] = 0x0000003F; /* default */&amp;nbsp; &amp;nbsp;&amp;nbsp;/&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[3] = 0x0000003F; /* default */&lt;BR /&gt;PLU-&amp;gt;LUT[0].INP[4] = 0x0000003F; /* default */&lt;BR /&gt;PLU-&amp;gt;LUT_TRUTH[0] = 0x88888888; /* AND (AND) STD 2 INPUT AND */&lt;BR /&gt;PLU-&amp;gt;OUTPUT_MUX[1] = 0x00000000; /* LUT0 (AND) -&amp;gt; Y */&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;If you copy this piece of code and&amp;nbsp;paste it in the main C code, and you build it in the MCUpresso IDE you will get such error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91808iD8AED75E6A01B008/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="text-decoration: underline; font-size: 14pt; "&gt;How to fix it?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&gt;Replace every&amp;nbsp;&lt;SPAN&gt;LUT[x].&lt;STRONG&gt;INP&lt;/STRONG&gt;[z]&lt;/SPAN&gt;&amp;nbsp;by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;PLU-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;LUT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;[x].&lt;STRONG&gt;INP_MUX&lt;/STRONG&gt;[z]&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;Why?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 18.6667px;"&gt;If you look into the header file: LPC55S69_cm33_core0.h where the PLU - Register Layout Typedef is defined you will see (Figure below) how the PLU INPUTs are named in the structure definition:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91906iE5B2B5257D861578/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;This is one of the errors that you may encounter.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i hope you found it helpful, and let me know what do you think.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I personally still didn't succeed in implementing a complete example using the PLU module. But still working on it cause it is an interesting feature&amp;nbsp;offered by this board.&lt;/DIV&gt;&lt;DIV&gt;Any one else working on that? Don't hesitate to share your experience and/or your errors, it is always helpful&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:smileywink:&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice errors fixing!&lt;/P&gt;&lt;P&gt;Randa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 12:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Error-while-integrating-the-PLU-code-this-could-be-a-reason/m-p/938353#M37381</guid>
      <dc:creator>randa_zarrouk</dc:creator>
      <dc:date>2019-10-18T12:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error while integrating the PLU code? this could be a reason. (LPC55S69_cm33_core0.h))</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Error-while-integrating-the-PLU-code-this-could-be-a-reason/m-p/938354#M37382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Randa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you are right to use the line:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;PLU-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;LUT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;[x].&lt;STRONG&gt;INP_MUX&lt;/STRONG&gt;[z]&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;Maybe the PLU_Type structure component has changed with different SDK version&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline; font-size: 18.6667px;"&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 07:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Error-while-integrating-the-PLU-code-this-could-be-a-reason/m-p/938354#M37382</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-10-22T07:39:39Z</dc:date>
    </item>
  </channel>
</rss>

