<?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>Kinetis MicrocontrollersのトピックFRDM-KE04Z&amp;#160; KDS&amp;#160; ADC_LDD sample code compile errors</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE04Z-160-KDS-160-ADC-LDD-sample-code-compile-errors/m-p/334814#M15922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Hardware:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;FRDM-KE04Z PCB - with extra 10K Pot connected to the PKE04Z8VFK4 PTB2 pin. (Pot input +3V3 and GND)&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Dev platform:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Kinetis Design Studio and Processor Expert&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Problem:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;ADC_LDD Component example code compile errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt;&amp;nbsp; &lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Every second my Test program uses the ADC_LDD example code to read the ADC value of a Pot connected to PTB2 pin (J4 pin 1) and sets the intensity of the Red (RGB) Led PWM period accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;I’m getting the following KDS compile errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;'Building file: ../Sources/Events.c'&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;'Invoking: Cross ARM C Compiler'&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c: In function 'TU2_OnCounterRestart':&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c:195:46: error: 'LDD_ADC_Tsample' undeclared (first use in this function)&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;Error = AD1_CreateSampleGroup(MyADCPtr, (LDD_ADC_Tsample *)SampleGroup, SAMPLE_GROUP_SIZE); // Set created sample group&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;^&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c:195:63: error: expected expression before ')' token&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;Error = AD1_CreateSampleGroup(MyADCPtr, (LDD_ADC_Tsample *)SampleGroup, SAMPLE_GROUP_SIZE); // Set created sample group&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;^&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c:195:63: error: too few arguments to function 'AD1_CreateSampleGroup'&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;NB:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;I’m new to Freescale and Kinetis processors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;The ‘old’ CW ‘ADC_poll_demo’ example code runs OK on my FRDM-KE04Z PCB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337431"&gt;KE04Z-_ADC_Test_01.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 11:35:50 GMT</pubDate>
    <dc:creator>GeorgeChamberla</dc:creator>
    <dc:date>2015-03-20T11:35:50Z</dc:date>
    <item>
      <title>FRDM-KE04Z  KDS  ADC_LDD sample code compile errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE04Z-160-KDS-160-ADC-LDD-sample-code-compile-errors/m-p/334814#M15922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Hardware:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;FRDM-KE04Z PCB - with extra 10K Pot connected to the PKE04Z8VFK4 PTB2 pin. (Pot input +3V3 and GND)&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Dev platform:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Kinetis Design Studio and Processor Expert&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Problem:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;ADC_LDD Component example code compile errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt;&amp;nbsp; &lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Every second my Test program uses the ADC_LDD example code to read the ADC value of a Pot connected to PTB2 pin (J4 pin 1) and sets the intensity of the Red (RGB) Led PWM period accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;I’m getting the following KDS compile errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;'Building file: ../Sources/Events.c'&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;'Invoking: Cross ARM C Compiler'&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c: In function 'TU2_OnCounterRestart':&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c:195:46: error: 'LDD_ADC_Tsample' undeclared (first use in this function)&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;Error = AD1_CreateSampleGroup(MyADCPtr, (LDD_ADC_Tsample *)SampleGroup, SAMPLE_GROUP_SIZE); // Set created sample group&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;^&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c:195:63: error: expected expression before ')' token&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;Error = AD1_CreateSampleGroup(MyADCPtr, (LDD_ADC_Tsample *)SampleGroup, SAMPLE_GROUP_SIZE); // Set created sample group&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;^&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;../Sources/Events.c:195:63: error: too few arguments to function 'AD1_CreateSampleGroup'&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas,serif;"&gt;NB:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="font-size: 10pt;"&gt;I’m new to Freescale and Kinetis processors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" class="western"&gt; &lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas,serif;"&gt;The ‘old’ CW ‘ADC_poll_demo’ example code runs OK on my FRDM-KE04Z PCB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337431"&gt;KE04Z-_ADC_Test_01.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE04Z-160-KDS-160-ADC-LDD-sample-code-compile-errors/m-p/334814#M15922</guid>
      <dc:creator>GeorgeChamberla</dc:creator>
      <dc:date>2015-03-20T11:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE04Z  KDS  ADC_LDD sample code compile errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE04Z-160-KDS-160-ADC-LDD-sample-code-compile-errors/m-p/334815#M15923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello George, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The following lines describes the errors presented in your code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, there were some typographical errors.&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Picture1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47226iF08DF84ABEE52B41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.jpg" alt="Picture1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead: &lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Picture2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47280i6AEBA91C9442347E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture2.jpg" alt="Picture2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, it is necessary to generate code of the &lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;GetMeasurementCompleteStatus&lt;/STRONG&gt; method in the component inspector from the ADC_LDD Component. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Picture3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47376i2AE926E74F6575B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture3.jpg" alt="Picture3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will be useful for you.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, :smileyhappy:&lt;/P&gt;&lt;P&gt;David Diaz.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 00:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE04Z-160-KDS-160-ADC-LDD-sample-code-compile-errors/m-p/334815#M15923</guid>
      <dc:creator>david_diaz</dc:creator>
      <dc:date>2015-03-28T00:00:28Z</dc:date>
    </item>
  </channel>
</rss>

