<?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>MCU reboots when the radio is in RX state and power management is used.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70268/mcu-reboots-when-the-radio-is-in-rx-state-and-power-management-is-used</link><description>Dear support, 
 I am developing a TDMA protocol on a custom board with the NRF52840 and SEGGER EMbedded Studio and the SDK 15.0.0. Everything went well until I wished to reduce the power consumption using nrf_pwr_mgmt_run(). 
 Now, on the logical analyser</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jan 2021 14:46:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70268/mcu-reboots-when-the-radio-is-in-rx-state-and-power-management-is-used" /><item><title>RE: MCU reboots when the radio is in RX state and power management is used.</title><link>https://devzone.nordicsemi.com/thread/288967?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 14:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28fa23ad-6ee7-423e-90b2-1e09704b6bd9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. Value 4 is actually corresponding to the SREQ bit (soft reset), and is a much more common reset source. This bit will be set after the device is reset by the debugger (e.g. after programming), or if the application has run the NVIC_SystemReset() function (typically from the app_error_fault_handler()).&lt;/p&gt;
&lt;p&gt;Lockup reset can happen if you are really unlucky and trigger a hardfault within a hardfault. Fortunalely, that doesn&amp;#39;t happen too often. &lt;/p&gt;
[quote user="Damien Piguet"]I have also tried my code on the PCA10056 development kit, and it works in that case. One notable difference with my own custom board is the use of a RV-3028-C7 RTC for the clock signal[/quote]
&lt;p&gt;Intereseting that it doesn&amp;#39;t happen with the DK. On the custom board, does the issue also occur in debug mode, or do you have to disconnect the debugger to reproduce the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCU reboots when the radio is in RX state and power management is used.</title><link>https://devzone.nordicsemi.com/thread/288693?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 14:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d8967f0-5018-47a6-bae1-7b7667fa992d</guid><dc:creator>Damien Piguet</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your response,&lt;/p&gt;
&lt;p&gt;The code does not fall into app_error_fault_handler().&lt;/p&gt;
&lt;p&gt;On the Logical analyser, RESETREAS is always zero at start-up. In the debugger, I saw value 4 (CPU lock-up) but I am not sure this is a right&amp;nbsp; catch. Just in case, what could cause a CPU lock-up ?&lt;/p&gt;
&lt;p&gt;I have also tried my code on the PCA10056 development kit, and it works in that case. One notable difference with my own custom board is the use of a RV-3028-C7 RTC for the clock signal. Otherwise there is no other peripheral when I test. The problem happens when the radio is receiving, and in certain situations, when transmitting.&lt;/p&gt;
&lt;p&gt;In summary there is something wrong when the radio is active and the CPU is not. Does that ring a bell with respect to the other situations you have encountered ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and best regards,&lt;/p&gt;
&lt;p&gt;Damien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCU reboots when the radio is in RX state and power management is used.</title><link>https://devzone.nordicsemi.com/thread/288589?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 10:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93f0ed0f-359b-4969-9961-d079b3001854</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Damien,&lt;/p&gt;
&lt;p&gt;Are you able to debug the application to see if the program ends up in the app_error_fault_handler() function inside the SDK &lt;span&gt;&lt;a title="Error module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_error.html?cp=7_1_3_13"&gt;Error module&lt;/a&gt;&lt;/span&gt;? This function will by default perform a system reset if invoked.&lt;/p&gt;
&lt;p&gt;You may also want to check the reset source on boot by reading the &lt;span&gt;&lt;a title="RESETREAS" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_6_10#register.RESETREAS"&gt;RESETREAS&lt;/a&gt;&lt;/span&gt; register (NRF_POWER-&amp;gt;RESETREAS). Just remember to clear it after reading it as it is a retained register. See the &lt;span&gt;&lt;a title="Reset behavior" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_5_7#concept_res_behav"&gt;Reset behavior&lt;/a&gt;&lt;/span&gt; table too see which reset source will clear this register.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>