<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52832 DK is resetting when sent wifi config. form android app.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32642/nrf52832-dk-is-resetting-when-sent-wifi-config-form-android-app</link><description>Hi, 
 I am using nRF52832 Dk and SD132, sdk is 13.1. I have sent my sensor data to server using external wifi module which is interface with nRF52832 DK. 
 Everything working but for low power consumption i have control WiFi CH_PD(Chip Enable Power Down</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Mar 2018 15:49:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32642/nrf52832-dk-is-resetting-when-sent-wifi-config-form-android-app" /><item><title>RE: nRF52832 DK is resetting when sent wifi config. form android app.</title><link>https://devzone.nordicsemi.com/thread/125787?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 15:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c209720a-9260-4ee4-91f8-a5503abe8259</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;When you see those messages printed to your terminal it means that you have ended up in a function called:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which is defined inside the file SDK_13.1.0\components\libraries\util\app_error_weak.c.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can modify that function to look something like this instead, to make it print out some more informative messages:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
{
    static error_info_t  * p_error_info;
    p_error_info = (error_info_t*)info;
    NRF_LOG_ERROR(&amp;quot;Error: ID: %d, PC: 0x%X\n\r&amp;quot;, id, pc);
    NRF_LOG_ERROR(&amp;quot;Error: Code: 0x%04X (%d), Line: %d, File: %s\n\r&amp;quot;, p_error_info-&amp;gt;err_code, p_error_info-&amp;gt;err_code, p_error_info-&amp;gt;line_num, (uint32_t)p_error_info-&amp;gt;p_file_name);
    NRF_LOG_FINAL_FLUSH();
    // On assert, the system can only recover with a reset.
#ifndef DEBUG
    NRF_LOG_INFO(&amp;quot;Hit weak handler\r\n&amp;quot;);
    NVIC_SystemReset();
#else
    app_error_save_and_stop(id, pc, info);
#endif // DEBUG
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK is resetting when sent wifi config. form android app.</title><link>https://devzone.nordicsemi.com/thread/125671?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 08:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b020a8ab-49c4-4132-9dc8-58ab1c42c38f</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thanks for your reply,&lt;/p&gt;
&lt;p&gt;I saw the above debugging link but i am using eclipse IDE. In that i debugging my code when i send wifi credentials to nRF52832 i see in debugging like :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;:ERROR:Fatal&lt;br /&gt;:INFO:Hit weak handler&lt;/p&gt;
&lt;p&gt;But not seeking any error code.&lt;/p&gt;
&lt;p&gt;Can you please tell me how i can see error code the following i have written function:&lt;/p&gt;
&lt;p&gt;void ESP_WiFi_config()&lt;br /&gt;{&lt;br /&gt; NRF_LOG_INFO(&amp;quot;WiFi Config. Start\r\n&amp;quot;);&lt;br /&gt; nrf_gpio_range_cfg_output(12, 12);&lt;br /&gt; nrf_gpio_pin_write(12,1);&lt;br /&gt; nrf_delay_ms(5000);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;WiFi_Txbuff: 1\r\n&amp;quot;);&lt;br /&gt; sprintf((char*)WiFi_Txbuff, &amp;quot;AT+CWJAP_DEF=\&amp;quot;%s\&amp;quot;,\&amp;quot;%s\&amp;quot;\r\n\r\n&amp;quot;, ssid_buff, passkey_buff);&lt;br /&gt; printf((char*)WiFi_Txbuff);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;WiFi_Txbuff: 2\r\n&amp;quot;);&lt;br /&gt;// nrf_delay_ms(5000);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;When goes in this function and high GPIO 12 pin at that time my Nordic Dk is reset.&lt;/p&gt;
&lt;p&gt;How i can see error code.&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DK is resetting when sent wifi config. form android app.</title><link>https://devzone.nordicsemi.com/thread/125515?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 12:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e158c3-ffad-47d5-987a-3f2210b4e404</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In 99% of all cases where the board resets, it is because&amp;nbsp;a function in your code has returned an error code. The error code is then processed by APP_ERROR_CHECK() which will reset your device unless you specifically tell it not to do it.&amp;nbsp;Have you tried debugging &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;like this&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You probably don&amp;#39;t need a MOSFET. I&amp;#39;m guessing that Ch_PD is just a regular input pin on your WiFi chip, and I have never seen anyone using&amp;nbsp;a MOSFET to control such an input. MOSFETs are usually only used if you need to turn on and off loads that draw a lot of current or use higher voltages than your microcontroller (motors, very bright LEDs, etc.).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>