<?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: DAC driver issue, jumps to DefaultISR in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499478#M4716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Have you checked to see if the DAC module has the clock enabled in the SIM_SCGC2 register before making those DAC calls?&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>Wed, 13 Apr 2016 17:06:56 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-04-13T17:06:56Z</dc:date>
    <item>
      <title>DAC driver issue, jumps to DefaultISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499477#M4715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FRDMK64 board&lt;/P&gt;&lt;P&gt;KSDK 1.3&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I just tried to use the DAC,I initialised the DAC using PE, basic setup without buffer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added these lines of my code;&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 style="padding-left: 30px;"&gt;DAC_DRV_StructInitUserConfigNormal(&amp;amp;daConv1_InitConfig0);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DAC_DRV_Init(daConv1_IDX, &amp;amp;daConv1_InitConfig0);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DAC_DRV_Output(daConv1_IDX, DACoutputValue);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can single step into the first line but when the &lt;STRONG&gt;return&lt;/STRONG&gt; is executed it jumps here (red text), in startup_MK64F12.S&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;DefaultISR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39; text-decoration: underline;"&gt; b DefaultISR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #7f0055;"&gt;.size&lt;/STRONG&gt; DefaultISR, . - DefaultISR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I would appreciate any help with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Jim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499477#M4715</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-13T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAC driver issue, jumps to DefaultISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499478#M4716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Have you checked to see if the DAC module has the clock enabled in the SIM_SCGC2 register before making those DAC calls?&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>Wed, 13 Apr 2016 17:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499478#M4716</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-13T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAC driver issue, jumps to DefaultISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499479#M4717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jim,&lt;/P&gt;&lt;P&gt;You can refer to the demo under the KSDK1.3 :&lt;/P&gt;&lt;P&gt;KSDK_1.3.0\examples\frdmk64f\driver_examples\dac &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still have error , you can send your project to me , i will check it&amp;nbsp; on my side .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 05:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499479#M4717</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-14T05:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAC driver issue, jumps to DefaultISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499480#M4718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;I have checked you code and I have noticed the following warning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing argument 1 of 'DAC_DRV_StructInitUserConfigNormal' discards 'const' qualifier from pointer target type [enabled by default] main.c /Test DAC on K64/Sources line 56 C/C++ Problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Processor Expert generates the daConv1_InitConfig0 as a &lt;EM&gt;const&lt;/EM&gt; variable (structure) that cannot be modified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt; font-family: Consolas;"&gt;const&lt;/STRONG&gt; &lt;SPAN style="color: #005032; font-family: Consolas; font-size: 10pt;"&gt;dac_converter_config_t&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; &lt;SPAN style="background: yellow;"&gt;daConv1_InitConfig0&lt;/SPAN&gt; = {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp; .dacRefVoltSrc = &lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-size: 10pt; font-family: Consolas;"&gt;kDacRefVoltSrcOfVref1&lt;/EM&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp; .lowPowerEnable = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the DAC_DRV_StructInitUserConfigNormal function initialize the daConv1_InitConfig0 structure. Therefore the exception is invoked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case you use structures that are generated by Processor Expert you can use them directly. These structures are already initialized according to selected configuration in the fsl_dac component in your project.&lt;/P&gt;&lt;P&gt;If you use the default configuration the DAC device is already initialized in the PE_low_level_init().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PE_low_level_init() -&amp;gt; PEX_components_init() -&amp;gt; Components_Init() contains:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt; font-family: Consolas;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; &lt;STRONG style="background: silver;"&gt;Components_Init&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt; font-family: Consolas;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3f7f5f; font-family: Consolas; font-size: 10pt;"&gt;/*! daConv1 Auto initialization start */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp; DAC_DRV_Init(daConv1_IDX, &amp;amp;daConv1_InitConfig0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp; DAC_DRV_ConfigBuffer(daConv1_IDX, &amp;amp;daConv1_BufferInitConfig0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3f7f5f; font-family: Consolas; font-size: 10pt;"&gt;/*! daConv1 Auto initialization end */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mean that you can directly call the DAC_DRV_Output(daConv1_IDX, DACoutputValue) in your application (e.g. in the main() function after PE_low_level_init() function call).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 05:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499480#M4718</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2016-04-14T05:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAC driver issue, jumps to DefaultISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499481#M4719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek, thanks for that, still love PE and mourn its passing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 08:27:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/DAC-driver-issue-jumps-to-DefaultISR/m-p/499481#M4719</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-14T08:27:49Z</dc:date>
    </item>
  </channel>
</rss>

