<?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 KDS 3.0.0  unknown type name '__no_init' in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519377#M6867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compile this DAC code with KDS3.0.0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;typedef union&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; unsigned long Word;&lt;/P&gt;&lt;P&gt; struct&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char DACDATx_L;&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char DACDATx_H;&lt;/P&gt;&lt;P&gt; }Bytes; &lt;/P&gt;&lt;P&gt;}DACDATx_FULL_REG;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__no_init DACDATx_FULL_REG DACDATx @0x400CC000;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the following error: unknown type name '__no_init'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 01:22:22 GMT</pubDate>
    <dc:creator>lordtheo</dc:creator>
    <dc:date>2016-06-13T01:22:22Z</dc:date>
    <item>
      <title>KDS 3.0.0  unknown type name '__no_init'</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519377#M6867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compile this DAC code with KDS3.0.0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;typedef union&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; unsigned long Word;&lt;/P&gt;&lt;P&gt; struct&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char DACDATx_L;&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char DACDATx_H;&lt;/P&gt;&lt;P&gt; }Bytes; &lt;/P&gt;&lt;P&gt;}DACDATx_FULL_REG;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__no_init DACDATx_FULL_REG DACDATx @0x400CC000;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the following error: unknown type name '__no_init'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 01:22:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519377#M6867</guid>
      <dc:creator>lordtheo</dc:creator>
      <dc:date>2016-06-13T01:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.0.0  unknown type name '__no_init'</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519378#M6868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Theodore,&lt;/P&gt;&lt;P&gt;First have a look at following post to see if it helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second could you declare a the following:&lt;/P&gt;&lt;P&gt;// __no_init DACDATx_FULL_REG DACDATx @0x400CC000;&lt;/P&gt;&lt;P&gt;volatile DACDATx_FULL_REG *DACDATx_FULL_REG_ptr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code then:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DACDATx_FULL_REG_ptr = 0x400CC000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char read_DAC_DATx_L;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_DAC_DATx_L = DACDATx_FULL_REG_ptr-&amp;gt;Bytes.DACDATx_L;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming the DAC had been initialized then it should read the correct register value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One observation though is I think you want to change unsigned long Word; to unsigned short Word; &lt;/P&gt;&lt;P&gt;My code example:&lt;/P&gt;&lt;P&gt;typedef union&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;unsigned short Word;&lt;/P&gt;&lt;P&gt;struct&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char DACDATx_L;&lt;/P&gt;&lt;P&gt;&amp;nbsp; unsigned char DACDATx_H;&lt;/P&gt;&lt;P&gt;}Bytes;&lt;/P&gt;&lt;P&gt;}DACDATx_FULL_REG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//DES __no_init DACDATx_FULL_REG DACDATx @0x400CC000;&lt;/P&gt;&lt;P&gt;volatile DACDATx_FULL_REG *DACDATx_FULL_REG_ptr; //DES test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After DAC initialized:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#if 1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//DES 1=test, 0=default code&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DACDATx_FULL_REG_ptr = 0x400CC000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char read_DAC_DATx_L, read_DAC_DATx_H;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_DAC_DATx_L = DACDATx_FULL_REG_ptr-&amp;gt;Bytes.DACDATx_L;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_DAC_DATx_H = DACDATx_FULL_REG_ptr-&amp;gt;Bytes.DACDATx_H;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DACDATx_FULL_REG_ptr++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_DAC_DATx_L = DACDATx_FULL_REG_ptr-&amp;gt;Bytes.DACDATx_L;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_DAC_DATx_H = DACDATx_FULL_REG_ptr-&amp;gt;Bytes.DACDATx_H;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seemed to read the correct L/H pair.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 22:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519378#M6868</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-06-13T22:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.0.0  unknown type name '__no_init'</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519379#M6869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. It compiles fine.&lt;/P&gt;&lt;P&gt;I haven't yet test it to see if it reads correctly. Once I finish building up the code I will check.&lt;/P&gt;&lt;P&gt;Once again Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-0-0-unknown-type-name-no-init/m-p/519379#M6869</guid>
      <dc:creator>lordtheo</dc:creator>
      <dc:date>2016-06-14T15:03:57Z</dc:date>
    </item>
  </channel>
</rss>

