<?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>Failed to re enable soft device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81631/failed-to-re-enable-soft-device</link><description>Hi 
 Problem description： 
 Disable the softdevice before writing uicr. After uicr is written, it fails to enable the softdevice again. 
 Can&amp;#39;t softdevice be enabled again after uicr is written?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Nov 2021 13:26:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81631/failed-to-re-enable-soft-device" /><item><title>RE: Failed to re enable soft device</title><link>https://devzone.nordicsemi.com/thread/338586?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 13:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be8f51c-b7bd-468c-94f6-59ef13397fb4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]Disable the softdevice before writing uicr. After uicr is written, it fails to enable the softdevice again.[/quote]
&lt;p&gt;You should remember that when you initialize the SoftDevice the second time, all configuration is lost. So you also need to configure everything SoftDevice related again, and that means that you need to do all or most of the work done by your preceding functions also ( ble_stack_init(), gap_params_init(),&amp;nbsp;gatt_init(),&amp;nbsp;services_init(), advertising_init(), and conn_params_init()). As mentioned, there are a number of things, and the most sensible way to do this is probably to do the obvious things (that&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;everything&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;SoftDevice/BLE related needs to be configured again), and then continue to do it gradually while debugging, fixing the errors one by one until it works.&lt;/p&gt;
&lt;p&gt;An alternative solution could be to simply reset after writing to the UICR. Also, see this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62252/writing-to-uicr-software-reset/254322#254322"&gt;post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>