<?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>BMD-350 not waking up from system off mode even after accelerometer interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67978/bmd-350-not-waking-up-from-system-off-mode-even-after-accelerometer-interrupt</link><description>Hi all, 
 We have designed a PCB where we use BMD-350 ( which is based on nrf52832 ) , HX711 and the accelerometer ( MMA8452Q ) as primary components. The device is supposed to stay in a deep sleep mode and wake up only when the accelerometer detects</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Nov 2020 14:16:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67978/bmd-350-not-waking-up-from-system-off-mode-even-after-accelerometer-interrupt" /><item><title>RE: BMD-350 not waking up from system off mode even after accelerometer interrupt</title><link>https://devzone.nordicsemi.com/thread/278628?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 14:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4573881-d05b-4f48-b3bc-3ba37282f1b2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Though we have tested the code with sd_app_event_wait () and it works fine, we wanted to test the deepest sleep mode i.e. System off mode of BLE.[/quote]
&lt;p&gt;It sounds like you are on the right path here, but I suspect a slight modification to your code is necessary to achieve this. The pin needs to be configured as a specific wakeup pin before going to SYSTEM OFF, while as waking from sd_app_evt_wait ( SYSTEM ON ) only requires an event.&lt;br /&gt;&lt;br /&gt;This is demonstrated in a lot of the BLE peripheral examples in the SDK, and I highly recommend that you take a look at how it is implemented there.&lt;br /&gt;For example, you could take a look at the &lt;em&gt;sleep_mode_enter&lt;/em&gt; function of &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_hids_keyboard.html"&gt;the BLE Peripheral HID Keyboard example from the SDK v.17.0.2&lt;/a&gt;.&lt;br /&gt;This functions is called to put the device in SYSTEM OFF, and prepares it for wakeup as the last thing it does before going to SYSTEM OFF.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to let me know if anything should still be unclear, or if you have any questions related to 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></channel></rss>