<?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 error: expression .... -&amp;gt;CCM_Type::ROOT[0].CCM_Type::&amp;lt;unnamed struct&amp;gt;::TARGET_ROOT' has side-effects    kCLOCK_RootM4_1 = (uint32_t)(&amp;((CCM_Type*) ... -&amp;gt;ROOT[0].TARGET_ROOT), in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941935#M140932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution to this problem is to use the offsetof, review this single line in the fsl_clock.h that needs propagated for both enums that use the CCM macro and all their entries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*! @brief ccm root name used to get clock frequency. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;typedef enum _clock_root_control&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; kCLOCK_RootM4 = (uint32_t)CCM_BASE+offsetof(CCM_Type,ROOT[1].TARGET_ROOT), /*!&amp;lt; ARM Cortex-M4 Clock control name.*/&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2019 13:44:15 GMT</pubDate>
    <dc:creator>tom_orsi1</dc:creator>
    <dc:date>2019-09-03T13:44:15Z</dc:date>
    <item>
      <title>error: expression .... -&gt;CCM_Type::ROOT[0].CCM_Type::&lt;unnamed struct&gt;::TARGET_ROOT' has side-effects    kCLOCK_RootM4_1 = (uint32_t)(&amp;((CCM_Type*) ... -&gt;ROOT[0].TARGET_ROOT),</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941935#M140932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution to this problem is to use the offsetof, review this single line in the fsl_clock.h that needs propagated for both enums that use the CCM macro and all their entries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*! @brief ccm root name used to get clock frequency. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;typedef enum _clock_root_control&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; kCLOCK_RootM4 = (uint32_t)CCM_BASE+offsetof(CCM_Type,ROOT[1].TARGET_ROOT), /*!&amp;lt; ARM Cortex-M4 Clock control name.*/&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 13:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941935#M140932</guid>
      <dc:creator>tom_orsi1</dc:creator>
      <dc:date>2019-09-03T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: error: expression .... -&gt;CCM_Type::ROOT[0].CCM_Type::&lt;unnamed struct&gt;::TARGET_ROOT' has side-effects    kCLOCK_RootM4_1 = (uint32_t)(&amp;((CCM_Type*) ... -&gt;ROOT[0].TARGET_ROOT),</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941936#M140933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if this suggestion will be incorporated into SDK? I also have the same problem while I'm compiling with c++ compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm compiling with g++ version 8.3 and offsetof doesn't solve the issue. Does it work it for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 21:11:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941936#M140933</guid>
      <dc:creator>anton_glukhov</dc:creator>
      <dc:date>2020-05-25T21:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: error: expression .... -&gt;CCM_Type::ROOT[0].CCM_Type::&lt;unnamed struct&gt;::TARGET_ROOT' has side-effects    kCLOCK_RootM4_1 = (uint32_t)(&amp;((CCM_Type*) ... -&gt;ROOT[0].TARGET_ROOT),</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941937#M140934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you paste the error messages into this thread? offsetof is definitely a solution and if its recognized by your compiler it should solve your problem.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 23:10:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941937#M140934</guid>
      <dc:creator>tom_orsi</dc:creator>
      <dc:date>2020-05-25T23:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: error: expression .... -&gt;CCM_Type::ROOT[0].CCM_Type::&lt;unnamed struct&gt;::TARGET_ROOT' has side-effects    kCLOCK_RootM4_1 = (uint32_t)(&amp;((CCM_Type*) ... -&gt;ROOT[0].TARGET_ROOT),</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941938#M140935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay. Everything is fine, it was an error because of cmake cache. It works now. Thank you!&lt;/P&gt;&lt;P&gt;But it's interesting if there is a plan to include it into SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 08:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/error-expression-gt-CCM-Type-ROOT-0-CCM-Type-lt-unnamed-struct/m-p/941938#M140935</guid>
      <dc:creator>anton_glukhov</dc:creator>
      <dc:date>2020-06-05T08:02:43Z</dc:date>
    </item>
  </channel>
</rss>

