<?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: JN5169 ADC Problem in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859275#M5900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mario!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2019 17:33:46 GMT</pubDate>
    <dc:creator>mferrari1</dc:creator>
    <dc:date>2019-02-26T17:33:46Z</dc:date>
    <item>
      <title>JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859259#M5884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written the following function to configure and enable the JN5169 ADC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; * NAME: vConfigureADC()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; * DESCRIPTION: Calls the necessary functions to bring up the ADC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; *****************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;void vConfigureADC( void )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;vAHI_ApConfigure( E_AHI_AP_REGULATOR_ENABLE,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;E_AHI_AP_INT_DISABLE,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E_AHI_AP_SAMPLE_2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;E_AHI_AP_CLOCKDIV_500KHZ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;E_AHI_AP_INTREF );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;vAHI_ProtocolPower(TRUE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;vAHI_ApSetBandGap( E_AHI_AP_BANDGAP_ENABLE );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;while( bAHI_APRegulatorEnabled() == FALSE ); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;// PROBLEM:&amp;nbsp; bAHI_APRegulatorEnabled() &lt;SPAN style="text-decoration: underline;"&gt;never&lt;/SPAN&gt; returns "TRUE"...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;vAHI_AdcEnable( E_AHI_ADC_SINGLE_SHOT, E_AHI_AP_INPUT_RANGE_1, E_AHI_ADC_SRC_ADC_1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because bAHI_APRegulatorEnabled() &lt;SPAN style="text-decoration: underline;"&gt;never&lt;/SPAN&gt; returns TRUE, the program gets stuck here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong...?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something else needed in order for bAHI_APRegulatorEnabled() to return TRUE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859259#M5884</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-01-24T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859260#M5885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;What is the pin that you are using?&lt;/P&gt;&lt;P&gt;Did you turn on the clock wireless transceiver previously? Could you please try without the&amp;nbsp;vAH_ProtocolPower? The API must be called if is necessary.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="comment token"&gt;/* Set up the analogue peripherals ready to handle the conversions */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;vAHI_ApConfigure&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;E_AHI_AP_REGULATOR_ENABLE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     E_AHI_AP_INT_DISABLE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     E_AHI_AP_SAMPLE_2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     E_AHI_AP_CLOCKDIV_500KHZ&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                     E_AHI_AP_INTREF&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;vAHI_ApSetBandGap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; E_AHI_AP_BANDGAP_ENABLE &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;while&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;bAHI_APRegulatorEnabled&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; ‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 01:01:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859260#M5885</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-01-25T01:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859261#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the JN5169-001-M06-2Z Module.  On this module, I am using Pin-1 for ADC1 and Pin-27 for ADC2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, I did not have the call to vAHI_ProtocolPower(), but even without this call it did not work.  I included it just in case it was needed, but I don’t think it’s needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have removed the call to vAHI_ProtocolPower( ) as you suggested, but see no improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read the “Analog Peripherals” and the “Analog Peripheral Functions” sections of the “JN516x Integrated Peripherals API User Guide” (JN-UG-3087).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Beyond Studio for NXP along with the Beyond Debug Key.  When doing the test you requested, I set breakpoints and found that it appears to be the function vAHI_ApSetBandGap( E_AHI_AP_BANDGAP_ENABLE ) which does not return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is true whether I have the call to vAHI_ProtocolPower(TRUE) before it or not…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m wondering if there might be some other function, like a Clock Enable or something that needs to happen?  Do I need to delay for some time period after calling vAHI_ApConfigure() before I call vAHI_ApSetBandGap()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JN5169-001-M06-2Z Pin-27 is shared VREF/ADC2 do I need to do something to indicate that Pin-27 is for ADC2 and NOT VREF?  In vAHI_ApConfigure() I AM providing the E_AHI_AP_INTREF parameter, NOT  E_AHI_AP_EXTREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think this ADC configuration should be straight forward (as described in the User Guide), I’m doing everything the User Guide says to do, but something’s not right…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help with this and am hoping we can get this figured out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 01:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859261#M5886</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-01-25T01:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859262#M5887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the JN5169-001-M06-2Z Module.  On this module, I am using Pin-1 for ADC1 and Pin-27 for ADC2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, I did not have the call to vAHI_ProtocolPower(), but even without this call it did not work.  I included it just in case it was needed, but I don’t think it’s needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have removed the call to vAHI_ProtocolPower( ) as you suggested, but see no improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read the “Analog Peripherals” and the “Analog Peripheral Functions” sections of the “JN516x Integrated Peripherals API User Guide” (JN-UG-3087).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Beyond Studio for NXP along with the Beyond Debug Key.  When doing the test you requested, I set breakpoints and found that it appears to be the function vAHI_ApSetBandGap( E_AHI_AP_BANDGAP_ENABLE ) which does not return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is true whether I have the call to vAHI_ProtocolPower(TRUE) before it or not…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m wondering if there might be some other function, like a Clock Enable or something that needs to happen?  Do I need to delay for some time period after calling vAHI_ApConfigure() before I call vAHI_ApSetBandGap()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JN5169-001-M06-2Z Pin-27 is shared VREF/ADC2 do I need to do something to indicate that Pin-27 is for ADC2 and NOT VREF?  In vAHI_ApConfigure() I AM providing the E_AHI_AP_INTREF parameter, NOT  E_AHI_AP_EXTREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think this ADC configuration should be straight forward (as described in the User Guide), I’m doing everything the User Guide says to do, but something’s not right…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help with this and am hoping we can get this figured out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 02:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859262#M5887</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-01-25T02:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859263#M5888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking by my side.&lt;/P&gt;&lt;P&gt;Is the device in sleep mode? Is this issue happen when you are not debugging?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran some test, I did work with the JN-AN-1218. Could you please try to flash the DimmableLight example. I want to confirm the JN is not damage.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;PUBLIC &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;APP_vManageTemperatureInit&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;/* set up the ADCS on platforms that dont already use them */&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;/* Set up the analogue peripherals ready to handle the conversions */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;vAHI_ApConfigure&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;E_AHI_AP_REGULATOR_ENABLE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    E_AHI_AP_INT_DISABLE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    E_AHI_AP_SAMPLE_2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//5&lt;/SPAN&gt;
    E_AHI_AP_CLOCKDIV_500KHZ&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    E_AHI_AP_INTREF&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;DBG_vPrintf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nAPP: E_AHI_AP_BANDGAP_ENABLE "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;vAHI_ApSetBandGap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; E_AHI_AP_BANDGAP_ENABLE &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;DBG_vPrintf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nAPP: InitManageTemperature "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;while&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;bAHI_APRegulatorEnabled&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;   &lt;SPAN class="comment token"&gt;/* spin on reg not enabled */&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;DBG_vPrintf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nAPP: bAHI_APRegulatorEnabled Done"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/34397iFCEC9446E0773D17/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:16:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859263#M5888</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-11-02T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859264#M5889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using Sleep Mode.  The issue happens whether I am debugging (JTAG via Beyond Studio for NXP IDE) or not debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it on two different boards, so I expect that it is not due to a damaged part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached some screenshots for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screenshot, you will see that I am using the same code as you provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try adding the call to vAHI_ProtocolPower( TRUE ), but it fails just the same with or without this call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see on my TeraTerm Screenshot that the code hangs when vAHI_ApSetBandGap() is called, I never get to the next DBG_vPrintf().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also included a screenshot of what happens when the Debugger is running and it hits this call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything else in my code runs fine, I’m using many peripherals (SPI, SCI, Timers, EEPROM, etc) they all are working with no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 802.15.4 Stack runs fine and communicates wirelessly with other nodes just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running the CPU Clock at 32MHz.  I even tried leaving it at the default 16MHz out of Reset, but that didn’t help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There has to be an explanation for this – something else that’s not set right, or something that’s missing – why would the call to vAHI_ApSetBandGap() hang?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unable to locate the project you suggested I flash (JN-AN-1218) if you can send me the zipped project I can try flashing it, although it may have either Hardware or Firmware dependencies which might cause trouble when trying to load it onto my Hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can ask your resources and find out what conditions would cause the call to vAHI_ApSetBandGap() to not return.  Knowing that might help identify the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 04:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859264#M5889</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-01-31T04:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859265#M5890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm the SDK Version that you are working on? Are you working on JN-SW-4163? Aren't you?&lt;/P&gt;&lt;P&gt;Also, what is the AN that you take as reference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2019 00:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859265#M5890</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-02-02T00:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859266#M5891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here’s what I’m using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beyond Studio for NXP Build 1308&lt;/P&gt;&lt;P&gt;Eclipse IDE for NXP JN51xx C/C++ Developers&lt;/P&gt;&lt;P&gt;Eclipse Version 4v3v1 (Kepler)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JN-SW-4141 BeyondStudio for NXP v1308.exe&lt;/P&gt;&lt;P&gt;JN-SW-4163 IEEE802.15.4 SDK v1416.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started out with JN-AN-1174, but for my application I have entirely rewritten it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859266#M5891</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-02-04T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859267#M5892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested by my side using the JN-AN-1174 and I added after the vInitSystem(); I do not modify anything&amp;nbsp;from the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;PUBLIC &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;AppColdStart&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;/* Disable watchdog if enabled by default */&lt;/SPAN&gt;
    &lt;SPAN class="property macro token"&gt;#ifdef WATCHDOG_ENABLED&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;vAHI_WatchdogStop&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="property macro token"&gt;#endif&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;vInitSystem&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;vAHI_ApConfigure&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;E_AHI_AP_REGULATOR_ENABLE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      E_AHI_AP_INT_DISABLE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      E_AHI_AP_SAMPLE_2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      E_AHI_AP_CLOCKDIV_500KHZ&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      E_AHI_AP_INTREF&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;DBG_vPrintf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nAPP: E_AHI_AP_BANDGAP_ENABLE "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;vAHI_ApSetBandGap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; E_AHI_AP_BANDGAP_ENABLE &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;DBG_vPrintf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TRUE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\nAPP: bAHI_APRegulatorEnabled Done"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="token function"&gt;vStartActiveScan&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;while&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="token function"&gt;vProcessEventQueues&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
     &lt;SPAN class="token function"&gt;vTransmitDataPacket&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;TxData&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x0000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/68239i73B4A31527507BB0/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the JN5169 module that you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:16:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859267#M5892</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2020-11-02T14:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859268#M5893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m using the JN5169-001-M06-2Z module which seems to be working fine in every way except for this ADC problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stripped everything out of my project except the ADC stuff.  The code still crashes when the call is made to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vAHI_ApSetBandGap( E_AHI_AP_BANDGAP_ENABLE );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached this stripped down project to this email for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)      Run this code as-is without rebuilding it first and see if it crashes for you too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)      Then rebuild the project on your system and then see if it starts working or if it still crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m beginning to wonder if perhaps my SDK has been corrupted…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very curious to hear what happens when you do the two tests above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 06:01:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859268#M5893</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-02-11T06:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859269#M5894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works by my side without compiling and compiling&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/72386i502C522936029B34/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;Do you have more modules? Could you please try with the example without&amp;nbsp;modifying?&lt;/P&gt;&lt;P&gt;Did you modify the SDK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 23:10:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859269#M5894</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-02-13T23:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859270#M5895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for doing this test.  If my .bin file runs without error on your hardware, but fails on my hardware, then apparently this is a hardware issue, not a coding or build issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not modified my SDK.  If any modification to the SDK exists, it would be due to corruption, not anything intentional.  But this is likely not an SDK issue since my build ran just fine for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested on two modules, but I will test on a third brand new assembly just to make sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this problem could be something on my board, then I would like to know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What external hardware conditions will cause the vAHI_ApSetBandGap( E_AHI_AP_BANDGAP_ENABLE ) call to fail on the JN5169-001-M06-2Z?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am applying an external signal to each of ADC1 (Module Pin-1) and ADC2 (Module Pin-27).  These signals are driven by an Op Amp which is powered from the same 3.3V as the JN5169, so the signal levels are guaranteed to be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pin-27 can function as either ADC2 or VREF.  Is there a VREF issue that is causing the function call to fail?   As you can see in my code, I am NEVER selecting an external source for VREF (through vAHI_ApConfigure() ), which the User Guide cautions against.  Other than this caution, I see no other requirements related to calling vAHI_ApSetBandGap().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess my question is this: “What external hardware conditions will cause the vAHI_ApSetBandGap() function call to never return?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I don’t have access to the source code for this function, I cannot debug this problem, but perhaps you can find out what conditions would cause this function to not return.  That might point to what’s causing this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 18:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859270#M5895</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-02-14T18:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859271#M5896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please check the connections and the voltage that you have in the VDD and VSS pins?&lt;/P&gt;&lt;P&gt;Did you test in the third module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 23:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859271#M5896</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-02-20T23:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859272#M5897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the connections to the JN5169-001-M06-2Z module are made on my PCB and are OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The supply voltage to the module is a solid and quiet 3.3VDC (Module Pin-17).  The Ground connection at Pin-18 is good as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am applying a constant DC voltage of 3mV at ADC2 (Pin-27) and a constant DC voltage of 100mV at ADC1 (Pin-1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be able to test a 3rd module on Monday and will let you know what I find then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, would it be possible for you to ask NXP to look at their code and tell us what conditions will cause the vAHI_ApSetBandGap() function to not return (or crash)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything on the module is running fine, including the SPI Master, Antenna Diversity feature, JTAG Interface, DIOS, IRQs/ISRs and the 802.15.4 Stack.  Everything’s working great except this ADC problem with the function vAHI_ApSetBandGap() .  I am hopeful that NXP can shed some light on what this function requires to properly return, I’m sure that would point to the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 03:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859272#M5897</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-02-22T03:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859273#M5898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As expected, the third board behaved exactly the same as the prior two boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I call vAHI_ApSetBandGap() it never returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure it just wasn’t a message display problem, I put a “Success” message after the call to the function, then entered a while( 1 ); loop (yes, the Watchdog is disabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem has remained unresolved for a long time now and is beginning to threaten the release date for this project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can escalate this issue within NXP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have suggested several times to have NXP look at the source code for this function and let us know what will cause the function to not return, but as far as I can tell, that hasn’t happened yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing what will cause this function to not return should point us to the source of the problem.  Can you please find out about that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this is a Jennic/NXP API, I don’t have access to the source code.  It’s an NXP Black Box that I call and never return from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t know what more I can do.  Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 00:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859273#M5898</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-02-26T00:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859274#M5899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in touch with the Validation Team. We are working on your issue, I will get back to you as soon as I have a workaround or feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 17:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859274#M5899</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-02-26T17:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859275#M5900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mario!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 17:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859275#M5900</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-02-26T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859276#M5901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario –&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the mystery about the failure of the vAHI_ApSetBandGap() function failure to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function should not be called when using the ADC2 Pin as an ADC input signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas all the example code calls this function, whereas the code you sent me calls this function and whereas the function name itself suggests that this function is used to select the Internal Band Gap Reference as the Reference for the ADC, the truth is that this function actually routes the internal reference out to the ADC2 pin so that it can be externally bypassed if so desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling vAHI_ApSetBandGap() when an external signal is being applied to the ADC2 Input will cause VREF to fail, as VREF will now be shorted to the signal being externally applied to ADC2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the correct answer is: “Don’t call vAHI_ApSetBandGap() when ADC2 is being used to measure an Analog Input signal”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 19:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859276#M5901</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-03-04T19:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859277#M5902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Thank you for share your feedback.&lt;/P&gt;&lt;P&gt;I still waiting for any feedback from the Validation Team.&lt;/P&gt;&lt;P&gt;Please let me know if you have any other question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859277#M5902</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-03-05T17:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169 ADC Problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859278#M5903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mario.   At the moment everything is working fine now, and I have no further questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.  If any other questions come up, I will be in touch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-ADC-Problem/m-p/859278#M5903</guid>
      <dc:creator>mferrari1</dc:creator>
      <dc:date>2019-03-05T18:01:14Z</dc:date>
    </item>
  </channel>
</rss>

