<?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>NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59629/nrf52810-ble_app_uart-demo-how-to-close-uart</link><description>i use the demo ble_app_uart ，and i want to close the uart when ble is &amp;quot;Disconnected&amp;quot;。 
 but it when it do app_uart_close(),the nrf52810 is RST。 i use the same code in nrf51822，but it work，and no RST。 
 how can i close the uart when BLE is &amp;quot;Disconnected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 06:31:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59629/nrf52810-ble_app_uart-demo-how-to-close-uart" /><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/243539?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 06:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b5a88cb-7bea-411b-856d-cc3311d6cdee</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I am sorry, but I do not understand you last comment - apart from the bit about chaning to nRF52832 from the nRF52810.&lt;br /&gt;Could you clarify your last comment?&lt;br /&gt;&lt;br /&gt;Could you also detail what changes you made to your code to resolve your reset following uart_close?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/243403?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 12:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae43cfe-d299-4671-9bd3-e81d196e6e3f</guid><dc:creator>JIM1989</dc:creator><description>&lt;p&gt;S112 with SDK16.0.0_98a08e2，but i not sure when use JFlash to&amp;nbsp;&lt;span&gt;&amp;nbsp;downloaded the SD，&amp;nbsp;the keyboard accidentally modifies the cache。and I cant&amp;nbsp;&lt;a href="http://www.baidu.com/link?url=6xtDyPHnA5S22UTXaHznlNwxVVHIHzXKjqyHrKtFDHYWCqLtZ31GpccG7vGatwBRhCZ_5wtacXV5Ki1Vm-wrRQ_xCoqXIYbx-Txq3Vg_KmS" rel="noopener noreferrer" target="_blank"&gt;recurrent&lt;/a&gt;&amp;nbsp;。。。but i need to change to nRF52832,&amp;nbsp;for the 52810&amp;#39;s ROM for usercode is too small ,176 - 100(SD) - 32(BOOT) = 44K.By the way ,if the 52832 has a&amp;nbsp;cutsdown,like 51802 ,52805.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/242753?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 15:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:266765b8-12a9-403b-906b-7652374ed475</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Great, I am glad to hear it!&lt;br /&gt;&lt;br /&gt;That sounds curious.&lt;br /&gt;Are you saying that the reset issue resolve when you downloaded a new version of the SoftDevice? Which SoftDevice and version did you use before this?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/242691?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 12:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1ec66e-3ad2-4770-8537-cd228690a81c</guid><dc:creator>JIM1989</dc:creator><description>&lt;p&gt;thanks you very much，it&amp;#39;s OK NOW，I redownload the s112_nrf52_7.0.1_softdevice.hex。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/242669?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 11:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2b77c7-5c31-4205-98b3-733e268c6c0d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If this is your intention, you should do this in your event handlers, have you attempted this?&lt;br /&gt;Could you elaborate on what you mean by &amp;quot;it reset due to CPU lock-up detected&amp;quot;?&lt;br /&gt;By the way, have you seen the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52810_Rev2%2FERR%2FnRF52810%2FRev2%2Flatest%2Fanomaly_810_136.html&amp;amp;anchor=anomaly_810_136"&gt;136 System Errata for the nRF52810&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Also, I am unable to see where this goes wrong from the code you provided, since I cant see the contents of the functions you mention. Are you using the functions as provided in the example, without modifications?&lt;br /&gt;Thank you for using code inserts.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/242391?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 11:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:060ef6d7-0a5b-4f68-9c2a-2314b677b0be</guid><dc:creator>JIM1989</dc:creator><description>&lt;p&gt;YES，when the sys nothing to do，i want to&amp;nbsp;nrf_pwr_mgmt_run(),and close the uart,and close HFCLK EX;if the sys wakeup by button or BLE_GAP_EVT_CONNECTED,open it。i use the demo&amp;nbsp;ble_app_uart，try bypass BLE&amp;nbsp;ble_stack，only use uart_init(); then do app_uart_close() and&amp;nbsp;&lt;span&gt;nrf_pwr_mgmt_run(),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;it run OK,but&amp;nbsp;200uA。then i try to close&amp;nbsp;&lt;span&gt;&amp;nbsp;HFCLK EX ，it 10uA。but when use button wakeup sys，it reset due to&amp;nbsp;CPU lock-up detected。&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    uint32_t err_code,rst_code;
    //bool erase_bonds;
    
    rst_code = NRF_POWER-&amp;gt;RESETREAS;
    //NRF_POWER-&amp;gt;RESETREAS = rst_code;
    uart_init(); //#define NRF_DRV_UART_DEFAULT_CONFIG_USE_EASY_DMA  .use_easy_dma = false,
    
    // Initialize.
    log_init();
    timers_init();

    power_management_init();
    
    //bypass BLE stack
    /*ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();
    
    advertising_start(); */
    
    
    while(1)
    { 
        //when sys nothing to do,goto sleep
        app_uart_close();
        //SleepClk();//close HFCLK_EX,if use it 10uA,but sys wakeup will RST
                    //                if no use,it 200uA.
        idle_state_handle();
        //WakeupClk();//open HFCLK_EX
        uart_init();
    }
}
    
    
    
    
    
    
    &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810  ble_app_uart demo how to close uart，</title><link>https://devzone.nordicsemi.com/thread/242349?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b53a9fe2-5c1e-4032-81bb-76594fbd7f3e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]i use the same code in nrf51822[/quote]
&lt;p&gt;What do you mean by this? I would not expect code for the nRF51822 to work on the nRF52810 without modification.&lt;br /&gt;I am unable to comment on what might be causing this reset without having seen the code.&lt;br /&gt;&lt;br /&gt;I am unable to gain an understanding of your code from the exempt you have attached, but from your description it sounds like you would like to close the UART when you receive an BLE_GAP_EVT_DISCONNECTED event. I therefore suggest that you do this as part of your ble_evt_handler. Note that you will then have to initialize the UART again upon new connections.&lt;br /&gt;&lt;br /&gt;For future reference, please use the &amp;quot;insert -&amp;gt; code&amp;quot; option, when attaching code to your ticket.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>