<?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>topic Re: Kinetic M - Bare metal ADC example code linker errors in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574539#M34201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Jayaraman,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;seeing this report, I guess that you're using IAR 7.50.x or higher revision where the linker started to emit an error when some initialization has been requested, but the program contains no reference to the initialization routine, or to the init table&amp;nbsp;. You can get rid of this error by replacing this line in linker file: &lt;EM&gt;do not initialize &amp;nbsp; { section .noinit }&lt;/EM&gt;; by the following one: &lt;EM&gt;do not initialize &amp;nbsp; { zeroinit }&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Other option is to use a newer version of bare metal drivers (KMSWDRVAPIRM_SW.zip R 4.1.5) which can be downloaded from &lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/m-series-metrology-m0-plus/kinetis-km3x-5075-mhz-precision-metrology-with-segment-lcd-microcontrollers-mcus-based-on-arm-cortex-m0-plus-core:KM3x?fpsp=1&amp;amp;tab=Documentation_Tab"&gt;MKM34 Documentation Page&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Martin M.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 05:31:38 GMT</pubDate>
    <dc:creator>MarMi</dc:creator>
    <dc:date>2016-09-01T05:31:38Z</dc:date>
    <item>
      <title>Kinetic M - Bare metal ADC example code linker errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574537#M34199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried building IAR project for ADC example from following bare metal driver samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\KM128SWDRV_R3_0_0\build\iar_6_50\projects\adc_test&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got following linker errors. I am new to Kinetics, any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error[Lp049]: there was no reference to __iar_data_init3, but it is needed to&lt;BR /&gt; initialize section .bss (adc.o #8)&lt;BR /&gt;Error[Lp048]: the init table "Table" is needed to initialize some variables,&lt;BR /&gt; but there are no references to it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jayaraman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 13:42:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574537#M34199</guid>
      <dc:creator>Jaya</dc:creator>
      <dc:date>2016-08-30T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetic M - Bare metal ADC example code linker errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574538#M34200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayaraman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell me where you get the KM128SWDRV example? And what the chip you are using? Tell me the part number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In fact, you can use our KSDK2.0 code for KM34, you can download KSDK2.0 code from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://kex.nxp.com" title="https://kex.nxp.com"&gt;Welcome to Kinetis Expert | Kinetis Expert&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Choose the KM34 chip, and generate the according KSDK2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question,&amp;nbsp; please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 02:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574538#M34200</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-09-01T02:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetic M - Bare metal ADC example code linker errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574539#M34201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Jayaraman,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;seeing this report, I guess that you're using IAR 7.50.x or higher revision where the linker started to emit an error when some initialization has been requested, but the program contains no reference to the initialization routine, or to the init table&amp;nbsp;. You can get rid of this error by replacing this line in linker file: &lt;EM&gt;do not initialize &amp;nbsp; { section .noinit }&lt;/EM&gt;; by the following one: &lt;EM&gt;do not initialize &amp;nbsp; { zeroinit }&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Other option is to use a newer version of bare metal drivers (KMSWDRVAPIRM_SW.zip R 4.1.5) which can be downloaded from &lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/m-series-metrology-m0-plus/kinetis-km3x-5075-mhz-precision-metrology-with-segment-lcd-microcontrollers-mcus-based-on-arm-cortex-m0-plus-core:KM3x?fpsp=1&amp;amp;tab=Documentation_Tab"&gt;MKM34 Documentation Page&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Martin M.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 05:31:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574539#M34201</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2016-09-01T05:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetic M - Bare metal ADC example code linker errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574540#M34202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Jingjing. your idea helps me a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 12:10:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574540#M34202</guid>
      <dc:creator>Jaya</dc:creator>
      <dc:date>2016-09-15T12:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetic M - Bare metal ADC example code linker errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574541#M34203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin, yes, i am using IAR 7.5 and the change you suggested works. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 11:37:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574541#M34203</guid>
      <dc:creator>Jaya</dc:creator>
      <dc:date>2016-09-16T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetic M - Bare metal ADC example code linker errors</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574542#M34204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is suggested by IAR to add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;do not initialize {readwrite };&amp;nbsp;&lt;SPAN style="background-color: #ffffff; font-weight: normal;"&gt;to the icf link file.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;&amp;nbsp; So the icf file will look like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;do not initialize { section .noinit };&lt;BR /&gt;&lt;BR /&gt;do not initialize { readwrite };&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;&amp;nbsp; Thanks!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #555555; font-weight: bold;"&gt;Terry&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 04:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetic-M-Bare-metal-ADC-example-code-linker-errors/m-p/574542#M34204</guid>
      <dc:creator>terry_lv</dc:creator>
      <dc:date>2016-10-19T04:19:32Z</dc:date>
    </item>
  </channel>
</rss>

