<?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 Undefined reference to I2C_HAL_SetBaudRate in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Undefined-reference-to-I2C-HAL-SetBaudRate/m-p/468903#M3710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am planning to write code in KDS that will use the I2C1 module on a FRDM-KL27Z board MCU and for this I want to make use of the HAL drivers provided, i.e.&amp;nbsp; &lt;STRONG&gt;fsl_i2c_hal.h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am trying to call &lt;STRONG&gt;I2C_HAL_SetBaudRate()&lt;/STRONG&gt; function and I get the &lt;STRONG&gt;undefined reference to 'I2C_HAL_SetBaudRate' &lt;/STRONG&gt; although the fsl_i2c_hal.h file is included. To be noted that I &lt;STRONG&gt;can&lt;/STRONG&gt; call any inline functions defined inside this header file, but no functions that are just declared inside the&lt;STRONG&gt; fsl_i2c_hal.h&lt;/STRONG&gt; and defined inside &lt;STRONG&gt;fsl_i2c_hal.c&lt;/STRONG&gt;. It seems that my compiler cannot find the latter file. How could I linked it to it? I presume that it has already been compiled somewhere before.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 16:34:46 GMT</pubDate>
    <dc:creator>radunasui</dc:creator>
    <dc:date>2016-01-05T16:34:46Z</dc:date>
    <item>
      <title>Undefined reference to I2C_HAL_SetBaudRate</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Undefined-reference-to-I2C-HAL-SetBaudRate/m-p/468903#M3710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am planning to write code in KDS that will use the I2C1 module on a FRDM-KL27Z board MCU and for this I want to make use of the HAL drivers provided, i.e.&amp;nbsp; &lt;STRONG&gt;fsl_i2c_hal.h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am trying to call &lt;STRONG&gt;I2C_HAL_SetBaudRate()&lt;/STRONG&gt; function and I get the &lt;STRONG&gt;undefined reference to 'I2C_HAL_SetBaudRate' &lt;/STRONG&gt; although the fsl_i2c_hal.h file is included. To be noted that I &lt;STRONG&gt;can&lt;/STRONG&gt; call any inline functions defined inside this header file, but no functions that are just declared inside the&lt;STRONG&gt; fsl_i2c_hal.h&lt;/STRONG&gt; and defined inside &lt;STRONG&gt;fsl_i2c_hal.c&lt;/STRONG&gt;. It seems that my compiler cannot find the latter file. How could I linked it to it? I presume that it has already been compiled somewhere before.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Undefined-reference-to-I2C-HAL-SetBaudRate/m-p/468903#M3710</guid>
      <dc:creator>radunasui</dc:creator>
      <dc:date>2016-01-05T16:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to I2C_HAL_SetBaudRate</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Undefined-reference-to-I2C-HAL-SetBaudRate/m-p/468904#M3711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Radu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) IF your project is KDS+sdk without PE , please first build the KSDK lib here :&lt;/P&gt;&lt;P&gt;Freescale\KSDK_1.3.0\lib\ksdk_platform_lib\kds\KL27Z644&lt;/P&gt;&lt;P&gt;then it will generate one ksdk_platform_lib.a under "lib\ksdk_platform_lib\kds\KL27Z644\debug"&lt;/P&gt;&lt;P&gt;add the .a file&amp;nbsp; in the compiler :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36418i0E7E42A70AB4CAD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then you can use the functions under &lt;STRONG&gt;fsl_i2c_hal.h .&amp;nbsp; &lt;/STRONG&gt;If it still can not work , please take a screenshot about the error and sen your project to me.&lt;/P&gt;&lt;P&gt;and tell me you use which version of KSDK.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;If you create project with KSDK+PE, you can directly use the &lt;STRONG&gt;I2C_HAL_SetBaudRate function .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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>Wed, 06 Jan 2016 02:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Undefined-reference-to-I2C-HAL-SetBaudRate/m-p/468904#M3711</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-06T02:19:33Z</dc:date>
    </item>
  </channel>
</rss>

