<?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: i2d_nss_example_1 -- Error : undefined reference to 'current native'</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097793#M42083</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;BR /&gt;Could you please help with an screenshot of the problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 23:17:31 GMT</pubDate>
    <dc:creator>stephanie_m</dc:creator>
    <dc:date>2020-06-30T23:17:31Z</dc:date>
    <item>
      <title>i2d_nss_example_1 -- Error : undefined reference to 'current native'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097792#M42082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to measure resistance using NHS3152 ADK, I have connected my resistor between ANA0 and ANA4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run&amp;nbsp;&lt;SPAN&gt;i2d_nss_example_1, however&amp;nbsp;i am getting undefined reference to 'current native' error. How do i fix this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, is there a way to display the variables in the variable tab of LPCXpresso? for now they wont show up.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the code:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;#include "board.h"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;extern volatile int current_native;&lt;BR /&gt;extern volatile int current_picoampere;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;void i2d_nss_example_1(void)&lt;BR /&gt;{&lt;BR /&gt;//! [i2d_nss_example_1]&lt;BR /&gt; int i2dValue;&lt;BR /&gt; int i2dNativeValue;&lt;BR /&gt; Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_4, IOCON_FUNC_1); /* Set pin function to analog */&lt;BR /&gt; Chip_I2D_Init(NSS_I2D);&lt;BR /&gt; Chip_I2D_Setup(NSS_I2D, I2D_SINGLE_SHOT, I2D_SCALER_GAIN_10_1, I2D_CONVERTER_GAIN_HIGH, 100);&lt;BR /&gt; Chip_I2D_SetMuxInput(NSS_I2D, I2D_INPUT_ANA0_4);&lt;BR /&gt; Chip_I2D_Start(NSS_I2D);&lt;BR /&gt; while (!(Chip_I2D_ReadStatus(NSS_I2D) &amp;amp; I2D_STATUS_CONVERSION_DONE)) {&lt;BR /&gt; ; /* wait */&lt;BR /&gt; }&lt;BR /&gt; i2dNativeValue = Chip_I2D_GetValue(NSS_I2D);&lt;BR /&gt; i2dValue = Chip_I2D_NativeToPicoAmpere(i2dNativeValue, I2D_SCALER_GAIN_10_1, I2D_CONVERTER_GAIN_HIGH, 100);&lt;BR /&gt; Chip_I2D_DeInit(NSS_I2D);&lt;BR /&gt;//! [i2d_nss_example_1]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;current_native = i2dNativeValue;&lt;BR /&gt; current_picoampere = i2dValue;&lt;BR /&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; Board_Init();&lt;BR /&gt; i2d_nss_example_1();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 10:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097792#M42082</guid>
      <dc:creator>leo94</dc:creator>
      <dc:date>2020-06-29T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: i2d_nss_example_1 -- Error : undefined reference to 'current native'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097793#M42083</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;BR /&gt;Could you please help with an screenshot of the problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 23:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097793#M42083</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2020-06-30T23:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: i2d_nss_example_1 -- Error : undefined reference to 'current native'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097794#M42084</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;(See also my explanation on &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1333472?commentID=1333472&amp;amp;et=watches.email.thread#comment-1334169" title="https://community.nxp.com/message/1333472?commentID=1333472&amp;amp;et=watches.email.thread#comment-1334169"&gt;https://community.nxp.com/message/1333472?commentID=1333472&lt;/A&gt;). Have a look at the documentation &lt;EM&gt;&amp;lt;SDK&amp;gt;/docs/firmware.html &amp;gt;&amp;nbsp;Documentation of the low-level HW block drivers &amp;gt;&amp;nbsp;i2d: Current to Digital converter driver &amp;gt;&amp;nbsp;Example 1 - Single shot conversion with polling&lt;/EM&gt;. Copy the listed code&amp;nbsp;there to your own project, inside a function in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error you are receiving now is due to the "C sugar" added to be able to verify the example code: in our test lab, we include this example in a test which does define a variable&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;current_native&lt;/SPAN&gt;. There the code links fine.&amp;nbsp;The folder &lt;EM&gt;example_snippets&lt;/EM&gt; with all the files and code is added to the SDK as a convenience to have all example code on one place,&amp;nbsp;which you can find in your IDE and copy as regular code. It is not meant to be used as is; these are not ready-made projects which you can execute instantly. The code snippets are guaranteed to be functional and do something sensible, but are not big enough to warrant a full project overhead for each of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;KR,&lt;BR /&gt;Dries.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 08:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2d-nss-example-1-Error-undefined-reference-to-current-native/m-p/1097794#M42084</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2020-07-01T08:02:42Z</dc:date>
    </item>
  </channel>
</rss>

