<?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: Adding i2c driver to VCOM SDK example breaks build in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054523#M3460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/thomas.gunnarsrud@vicotee.com"&gt;thomas.gunnarsrud@vicotee.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you adding the I2C pins/drivers?&amp;nbsp; I use the I2C driver with I2C in FreeRTOS with SDK 2.7.0 on the FRDM-K22F without any issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As discussed in&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/537776"&gt;Compilation error&lt;/A&gt;&amp;nbsp;there are problems when you add a driver to a project using "SDK Manager" - after you get something working (ie USB CDC driver) you should create a new project with the additional drivers&amp;nbsp;for the added functionality.&amp;nbsp; That's how I did it (unintentionally) and didn't have any issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2020 00:22:47 GMT</pubDate>
    <dc:creator>myke_predko</dc:creator>
    <dc:date>2020-08-04T00:22:47Z</dc:date>
    <item>
      <title>Adding i2c driver to VCOM SDK example breaks build</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054522#M3459</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;Trying to get the "CDC_VCOM_VCOM_freertos" USB virtual COM port example running. SDK 2.7 or 2.8 tested, under 11.1.1 and 11.2.0. Target FRDM-K22F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.7 compiles and runs fine using default configs when importing the project, e.g. redlib. But, when I add driver and config pins for i2c, the freertos kernel breaks like below, what is the connection here, and how can I resolve it? Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;../amazon-freertos/freertos_kernel/portable/MemMang/heap_useNewlib.c:53:10: fatal error: malloc.h: No such file or directory
 #include &amp;lt;malloc.h&amp;gt; // mallinfo...
          ^~~~~~~~~~
compilation terminated.
Finished building: ../amazon-freertos/freertos_kernel/portable/MemMang/heap_2.c
Finished building: ../board/pin_mux.c
make: *** [amazon-freertos/freertos_kernel/portable/MemMang/subdir.mk:36: amazon-freertos/freertos_kernel/portable/MemMang/heap_useNewlib.o] Error 1
make: *** Waiting for unfinished jobs....
 
 &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to build from the 2.8 SDK fails with the following, btw&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;frdmk22f_dev_composite_cdc_vcom_cdc_vcom_freertos\component\osa/fsl_os_abstraction.h:339:10: fatal error: fsl_os_abstraction_free_rtos.h: No such file or directory
 #include "fsl_os_abstraction_free_rtos.h"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The file is not in the project directory either&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 14:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054522#M3459</guid>
      <dc:creator>thomas_gunnarsr</dc:creator>
      <dc:date>2020-08-03T14:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding i2c driver to VCOM SDK example breaks build</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054523#M3460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/thomas.gunnarsrud@vicotee.com"&gt;thomas.gunnarsrud@vicotee.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you adding the I2C pins/drivers?&amp;nbsp; I use the I2C driver with I2C in FreeRTOS with SDK 2.7.0 on the FRDM-K22F without any issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As discussed in&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/537776"&gt;Compilation error&lt;/A&gt;&amp;nbsp;there are problems when you add a driver to a project using "SDK Manager" - after you get something working (ie USB CDC driver) you should create a new project with the additional drivers&amp;nbsp;for the added functionality.&amp;nbsp; That's how I did it (unintentionally) and didn't have any issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 00:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054523#M3460</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-08-04T00:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding i2c driver to VCOM SDK example breaks build</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054524#M3461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback. I found now that for 11.1.1 and the 2.7 SDK, when adding the i2c drivers and configuring the pins via MCUXpresso, that the following files where added under&amp;nbsp;amazon-freertos\freertos_kernel\portable\MemMang causing the build to break. Removing these&amp;nbsp;the build completes:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;heap_1.c, heap_2.c, heap_3.c, heap_5c and heap_useNewlib.c&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 18:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Adding-i2c-driver-to-VCOM-SDK-example-breaks-build/m-p/1054524#M3461</guid>
      <dc:creator>thomas_gunnarsr</dc:creator>
      <dc:date>2020-08-04T18:40:41Z</dc:date>
    </item>
  </channel>
</rss>

