<?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>LPC Microcontrollers中的主题 Re: NHS3152 ADK: Error exists in active configuration</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097095#M42058</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;The &lt;EM&gt;problems&lt;/EM&gt; screenshot you posted shows a linker error: it cannot find an implementation of the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;main&lt;/SPAN&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;example_snippets&lt;/EM&gt; folder does not contain complete projects, it only contains code snippets surrounded with some C sugar to enable compilation checks and test runs by the development team (include, pragma's, function prototype).&amp;nbsp;The code snippet shows code that is functional and as minimal as possible, to get you started faster. Every code snippet is included in the firmware documentation at &lt;EM&gt;&amp;lt;SDK&amp;gt;/docs/firmware.html&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The example you refer to is also listed there: navigate to&amp;nbsp;&lt;EM&gt;Documentation of the low-level HW block drivers &amp;gt;&amp;nbsp;adcdac: Analog-to-Digital / Digital-to-Analog converter driver &amp;gt;&amp;nbsp;Example 1 - Continuous Digital-to-Analog conversion with polling&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;To use the code snippet, just copy&amp;nbsp;what is listed in that documentation to your own project - which&amp;nbsp;should already be in good shape (have a &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;main&lt;/SPAN&gt;, compiling and linking, etc.) -&amp;nbsp;inside whatever function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;BR /&gt;Dries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2020 07:53:00 GMT</pubDate>
    <dc:creator>driesmoors</dc:creator>
    <dc:date>2020-07-01T07:53:00Z</dc:date>
    <item>
      <title>NHS3152 ADK: Error exists in active configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097092#M42055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;NHS3152ADK, LPC-link2 and LPCXpresso IDE.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am trying to run example&amp;nbsp;adcdac_nss_example_1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i debug, i get the following message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114019iCEECC71733FDE0FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After i click proceed:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114020iC7E0D3D21887E1C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#pragma GCC diagnostic push&lt;BR /&gt;#pragma GCC diagnostic ignored "-Wunused-but-set-variable"&lt;BR /&gt;#pragma GCC diagnostic ignored "-Wunused-variable"&lt;/P&gt;&lt;P&gt;void adcdac_nss_example_1(void)&lt;BR /&gt;{&lt;BR /&gt;//! [adcdac_nss_example_1]&lt;BR /&gt; Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_0, IOCON_FUNC_1);&lt;BR /&gt; Chip_ADCDAC_Init(NSS_ADCDAC0);&lt;BR /&gt; Chip_ADCDAC_SetMuxDAC(NSS_ADCDAC0, ADCDAC_IO_ANA0_0);&lt;BR /&gt; Chip_ADCDAC_SetModeDAC(NSS_ADCDAC0, ADCDAC_CONTINUOUS);&lt;BR /&gt; Chip_ADCDAC_WriteOutputDAC(NSS_ADCDAC0, 3000);&lt;BR /&gt;//! [adcdac_nss_example_1]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#pragma GCC diagnostic pop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2020 19:38:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097092#M42055</guid>
      <dc:creator>leo94</dc:creator>
      <dc:date>2020-06-28T19:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 ADK: Error exists in active configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097093#M42056</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;It seems your project does not compile or link. Did you paste the full contents? I don't see &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;main&lt;/SPAN&gt;, for example. Can you have a look at the errors - if you inadvertently closed them, navigate to &lt;EM&gt;Window&lt;/EM&gt; &amp;gt; &lt;EM&gt;Show view&lt;/EM&gt; &amp;gt; &lt;EM&gt;Other...&lt;/EM&gt; &amp;gt; &lt;EM&gt;General&lt;/EM&gt; &amp;gt; &lt;EM&gt;Problems&lt;/EM&gt; and/or &lt;EM&gt;Console&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The examples are used&amp;nbsp;in the firmware documentation &lt;EM&gt;&amp;lt;SDK&amp;gt;/tools/firmware.html&lt;/EM&gt;. To use them in your project, copy and paste the code&amp;nbsp;in e.g. the blinky demo project, after the call to &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Board_Init&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Dries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 15:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097093#M42056</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2020-06-29T15:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 ADK: Error exists in active configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097094#M42057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dries,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the full code that i find in &lt;STRONG&gt;adcdac_nss_example_1&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run the &lt;STRONG&gt;blinky demo it works!&lt;/STRONG&gt;, perhaps i need to modify&amp;nbsp;&lt;STRONG&gt;adcdac_nss_example_1&amp;nbsp;&lt;/STRONG&gt;to include a main?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running&lt;STRONG&gt; i2d_nss_example_1,&amp;nbsp;&lt;/STRONG&gt;this also works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have placed,&amp;nbsp;&lt;STRONG&gt;adcdac_nss_example_1 &lt;/STRONG&gt;in blinky demo folder, and when i debug i get these problems::&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114177iE54A1FA5075D9C42/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114178i25154B53F982A971/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the code copied:&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Copyright 2020 NXP.&lt;BR /&gt; * This software is owned or controlled by NXP and may only be used&lt;BR /&gt; * strictly in accordance with the applicable license terms. By expressly&lt;BR /&gt; * accepting such terms or by downloading, installing, activating and/or&lt;BR /&gt; * otherwise using the software, you are agreeing that you have read, and&lt;BR /&gt; * that you agree to comply with and are bound by, such license terms. If&lt;BR /&gt; * you do not agree to be bound by the applicable license terms, then you&lt;BR /&gt; * may not retain, install, activate or otherwise use the software.&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#pragma GCC diagnostic push&lt;BR /&gt;#pragma GCC diagnostic ignored "-Wunused-but-set-variable"&lt;BR /&gt;#pragma GCC diagnostic ignored "-Wunused-variable"&lt;/P&gt;&lt;P&gt;void adcdac_nss_example_1(void)&lt;BR /&gt;{&lt;BR /&gt;//! [adcdac_nss_example_1]&lt;BR /&gt; Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_0, IOCON_FUNC_1);&lt;BR /&gt; Chip_ADCDAC_Init(NSS_ADCDAC0);&lt;BR /&gt; Chip_ADCDAC_SetMuxDAC(NSS_ADCDAC0, ADCDAC_IO_ANA0_0);&lt;BR /&gt; Chip_ADCDAC_SetModeDAC(NSS_ADCDAC0, ADCDAC_CONTINUOUS);&lt;BR /&gt; Chip_ADCDAC_WriteOutputDAC(NSS_ADCDAC0, 3000);&lt;BR /&gt;//! [adcdac_nss_example_1]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#pragma GCC diagnostic pop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 10:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097094#M42057</guid>
      <dc:creator>leo94</dc:creator>
      <dc:date>2020-06-30T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 ADK: Error exists in active configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097095#M42058</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;The &lt;EM&gt;problems&lt;/EM&gt; screenshot you posted shows a linker error: it cannot find an implementation of the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;main&lt;/SPAN&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;example_snippets&lt;/EM&gt; folder does not contain complete projects, it only contains code snippets surrounded with some C sugar to enable compilation checks and test runs by the development team (include, pragma's, function prototype).&amp;nbsp;The code snippet shows code that is functional and as minimal as possible, to get you started faster. Every code snippet is included in the firmware documentation at &lt;EM&gt;&amp;lt;SDK&amp;gt;/docs/firmware.html&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The example you refer to is also listed there: navigate to&amp;nbsp;&lt;EM&gt;Documentation of the low-level HW block drivers &amp;gt;&amp;nbsp;adcdac: Analog-to-Digital / Digital-to-Analog converter driver &amp;gt;&amp;nbsp;Example 1 - Continuous Digital-to-Analog conversion with polling&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;To use the code snippet, just copy&amp;nbsp;what is listed in that documentation to your own project - which&amp;nbsp;should already be in good shape (have a &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;main&lt;/SPAN&gt;, compiling and linking, etc.) -&amp;nbsp;inside whatever function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;BR /&gt;Dries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:53:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NHS3152-ADK-Error-exists-in-active-configuration/m-p/1097095#M42058</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2020-07-01T07:53:00Z</dc:date>
    </item>
  </channel>
</rss>

