<?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>MCUXpresso SDKのトピックRe: Problem I2C Freertos driver</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677765#M175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes sorry, K22FX512&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 20:31:30 GMT</pubDate>
    <dc:creator>ypkdani</dc:creator>
    <dc:date>2017-05-12T20:31:30Z</dc:date>
    <item>
      <title>Problem I2C Freertos driver</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677763#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to transmit the data to a I2C memory. I have init the I2C0 with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I2C_MasterGetDefaultConfig(&amp;amp;i2c0_config);&lt;BR /&gt; NVIC_SetPriority(I2C0_IRQn, 6);&lt;/P&gt;&lt;P&gt;error = I2C_RTOS_Init(&amp;amp;i2c0_handle, I2C0, &amp;amp;i2c0_config, CLOCK_GetFreq(I2C0_CLK_SRC));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;then i have to write a data so:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data_transfer.slaveAddress = 0x50U;&lt;BR /&gt; data_transfer.direction = kI2C_Write;&lt;BR /&gt; data_transfer.subaddress = 0;&lt;BR /&gt; data_transfer.subaddressSize = 0;&lt;BR /&gt; data_transfer.data = data;&lt;BR /&gt; data_transfer.dataSize = n;&lt;BR /&gt; data_transfer.flags = kI2C_TransferDefaultFlag;&lt;/P&gt;&lt;P&gt;error = I2C_RTOS_Transfer(&amp;amp;i2c0_handle, &amp;amp;data_transfer);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but nothing happen and the device stop with the function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* Wait for transfer to finish */&lt;BR /&gt; xSemaphoreTake(handle-&amp;gt;semaphore, portMAX_DELAY);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in the function&amp;nbsp;I2C_RTOS_Transfer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other question is what are the variable ?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;data_transfer.subaddress = 0;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;data_transfer.subaddressSize = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;are the address of the device to point ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 10:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677763#M173</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-05-12T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem I2C Freertos driver</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677764#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Daniele,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell us which MCU are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 14:55:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677764#M174</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-05-12T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem I2C Freertos driver</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677765#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes sorry, K22FX512&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 20:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677765#M175</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-05-12T20:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem I2C Freertos driver</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677766#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved, it was a my error with the I2C0 instead I2C2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 08:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problem-I2C-Freertos-driver/m-p/677766#M176</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-05-18T08:59:20Z</dc:date>
    </item>
  </channel>
</rss>

