<?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>wake on PDM microphone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110127/wake-on-pdm-microphone</link><description>I see there is a way to set an audio event exceeding a set threshold. https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_thingy53%2FUG%2Fthingy53%2Fhw_description%2Fmicrophone_buzzer.html I found the nfc system_off sample and added button press to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jul 2024 15:59:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110127/wake-on-pdm-microphone" /><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/493211?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 15:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36ec1298-dc57-4a55-9c74-be7f060554ee</guid><dc:creator>Hieu</dc:creator><description>[quote user="tldr"]any help in terms of wake sense pin I should use or how to actually use the driver are appreciated.&amp;nbsp; the idea is just to see all the wake features of the device and i&amp;#39;d start with the static threshold they&amp;#39;ve defined to see it wake.&amp;nbsp; when i do revisit; i can comment here or add it to my sample.[/quote]
&lt;p&gt;I am afraid I don&amp;#39;t have enough&amp;nbsp;proficiency on the VM3310 to&amp;nbsp;write up anything&amp;nbsp;that can help you better than the datasheet. I recommend understanding its state machine. It looks like the&amp;nbsp;DOUT signal will trigger&amp;nbsp;automatically when the device is in the right mode, so it shouldn&amp;#39;t be difficult to setup.&lt;/p&gt;
&lt;p&gt;Regarding&amp;nbsp;the driver in the Edge Impulse application,&amp;nbsp;I don&amp;#39;t think it can be used for your need out of the box. You are better off using I2C driver if you ever need to reconfigure the microphone wake threshold.&lt;/p&gt;
[quote user="tldr"]the nfc wake requires one scan to wake and another to actually read the tag.&amp;nbsp; if there were a way to get the data at wake and not have to double tap...that would be great.[/quote]
&lt;p&gt;I can&amp;#39;t verify this idea right now, but you can setup the application to check RESETREAS if it was reset due to NFC during initialization. If it was woken up by NFC, actively&amp;nbsp;perform an NFC read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/493205?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 15:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fab521b-08b3-457e-817c-e05e7fee24d6</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;I&amp;#39;ve been busy with other complications; any help in terms of wake sense pin I should use or how to actually use the driver are appreciated.&amp;nbsp; the idea is just to see all the wake features of the device and i&amp;#39;d start with the static threshold they&amp;#39;ve defined to see it wake.&amp;nbsp; when i do revisit; i can comment here or add it to my sample.&lt;/p&gt;
&lt;p&gt;the nfc wake requires one scan to wake and another to actually read the tag.&amp;nbsp; if there were a way to get the data at wake and not have to double tap...that would be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/493041?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 19:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c28662e-402d-4fa6-b56a-0fd727b9e13b</guid><dc:creator>Hieu</dc:creator><description>[quote user="tldr"]In terms of waking on sound, it looks like theres a way to do it or that its supposed to.&amp;nbsp; I&amp;#39;m still looking at the drivers from edge impluse but I wonder if I even need that for threshold and sense wake.[/quote]
&lt;p&gt;Let&amp;#39;s first go back to this. I give the driver and the VM3011 datasheet a quick look. It seems the VM3011&amp;#39;s DOUT output is supposed to be used as an alert for the system to start processing further data. The driver in the Edge Impulse repo you found works like that. Therefore, the function to set the threshold is static and isn&amp;#39;t accessible from outside.&lt;/p&gt;
&lt;p&gt;I am not sure what kind of behavior you want for your device, but it looks certain that it is possible to implement&amp;nbsp;waking up the system from System OFF sleep with the&amp;nbsp;VM3011&amp;#39;s DOUT output.&lt;/p&gt;
&lt;p&gt;I am a bit uncertain whether you need any particular help with this though.&lt;/p&gt;
[quote user="tldr"]Just to be more clear about why I had to add&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_SERIAL&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;C:/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/io.c:48:2: error: #error &amp;quot;Serial recovery selected without an entrance mode set&amp;quot;&lt;br /&gt; 48 | #error &amp;quot;Serial recovery selected without an entrance mode set&amp;quot;&lt;br /&gt;&lt;br /&gt;was the error you get with just the gpio off.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ah yes, that makes sense. Thanks for revisiting this point.&lt;/p&gt;
[quote user="tldr"]&lt;p&gt;With v2.7.0; I had to use&amp;nbsp;sysbuild\mcuboot.conf and get rid of&amp;nbsp;child_image\mcuboot\mcu_boot.conf&lt;/p&gt;
&lt;p&gt;I found this info from&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/samples/sysbuild/with_mcuboot/README.html"&gt;https://docs.zephyrproject.org/latest/samples/sysbuild/with_mcuboot/README.html&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Thanks for this too. I have not started with sysbuild myself&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/493011?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 15:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70b686b9-1500-4d37-a332-d5546438a67b</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;Just to be more clear about why I had to add&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_SERIAL&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;C:/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/io.c:48:2: error: #error &amp;quot;Serial recovery selected without an entrance mode set&amp;quot;&lt;br /&gt; 48 | #error &amp;quot;Serial recovery selected without an entrance mode set&amp;quot;&lt;br /&gt;&lt;br /&gt;was the error you get with just the gpio off.&lt;/p&gt;
&lt;p&gt;With v2.7.0; I had to use&amp;nbsp;sysbuild\mcuboot.conf and get rid of&amp;nbsp;child_image\mcuboot\mcu_boot.conf&lt;/p&gt;
&lt;p&gt;I found this info from&amp;nbsp;&lt;a id="" href="https://docs.zephyrproject.org/latest/samples/sysbuild/with_mcuboot/README.html"&gt;https://docs.zephyrproject.org/latest/samples/sysbuild/with_mcuboot/README.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/492427?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 11:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408e16c3-e4bb-43d6-959f-4c8768733fc2</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;Thanks for the feedback, I appreciate the perspective on the DFU.&lt;br /&gt;&lt;br /&gt;The drivers I have found are here:&lt;br /&gt;&lt;a id="" href="https://github.com/edgeimpulse/firmware-nordic-thingy53/tree/main/drivers/vm3011"&gt;https://github.com/edgeimpulse/firmware-nordic-thingy53/tree/main/drivers/vm3011&lt;br /&gt;&lt;/a&gt;vm3011_wos_dout_thresh_set might be something in there.&lt;br /&gt;Thats all the code I can find out there for the pdm microphone.&lt;/p&gt;
&lt;p&gt;Thanks for verifying on the color sensor.&amp;nbsp; That&amp;#39;s too bad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/492386?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 08:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7564bb4-42ee-44be-932d-e8869981333b</guid><dc:creator>Hieu</dc:creator><description>[quote user="tldr"]&lt;p&gt;config BOOT_SERIAL_BOOT_MODE&lt;br /&gt; bool &amp;quot;Check boot mode via retention subsystem&amp;quot;&lt;br /&gt; depends on RETENTION_BOOT_MODE&lt;/p&gt;
&lt;p&gt;Looks like this retention method might work?&lt;/p&gt;[/quote]
&lt;p&gt;It might work, but you might want to imagine what you want to do with the Serial Recovery feature.&lt;/p&gt;
&lt;p&gt;If the application can run to write to&amp;nbsp;GPREGRET, then it should also be able to receive DFU package.&lt;/p&gt;
&lt;p&gt;The benefit of using Serial Recovery then is to reduce application size.&lt;/p&gt;
&lt;p&gt;Though I imagine you could also add some login during the initialization phase to check if the device has been functioning properly, and if not (like crashing 5 times in a row?), try to go into bootloader mode. This is just a quick&amp;nbsp;idea though, you will want to think about&amp;nbsp;what makes sense for your product.&lt;/p&gt;
[quote user="tldr"]In terms of waking on sound, it looks like theres a way to do it or that its supposed to.&amp;nbsp; I&amp;#39;m still looking at the drivers from edge impluse but I wonder if I even need that for threshold and sense wake.[/quote]
&lt;p&gt;I am unfamiliar with the driver in the Edge Impulse sample application. Are you referring to this?&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/applications/machine_learning/README.html"&gt;nRF Machine Learning (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;haven&amp;#39;t found mentions of the microphone in that though.&lt;/p&gt;
[quote user="tldr"]I don&amp;#39;t know if wake from light is possible?&amp;nbsp; I don&amp;#39;t think theres a pin you can sense wake?[/quote]
&lt;p&gt;Do you mean by the BH1749NUC color sensor on the Thingy:53? It doesn&amp;#39;t seem so. &lt;a href="https://fscdn.rohm.com/en/products/databook/datasheet/ic/sensor/light/bh1749nuc-e.pdf"&gt;Its datasheet&lt;/a&gt; shows that the only interface it has is I2C.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/492102?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 14:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd69eae5-192d-478d-85f3-566049a4bfbd</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109649/jump-to-bootloader-mcuboot-from-application-without-button"&gt;Jump to bootloader (mcuboot) from application without button&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;config BOOT_SERIAL_BOOT_MODE&lt;br /&gt; bool &amp;quot;Check boot mode via retention subsystem&amp;quot;&lt;br /&gt; depends on RETENTION_BOOT_MODE&lt;/p&gt;
&lt;p&gt;Looks like this retention method might work?&lt;/p&gt;
&lt;p&gt;In terms of waking on sound, it looks like theres a way to do it or that its supposed to.&amp;nbsp; I&amp;#39;m still looking at the drivers from edge impluse but I wonder if I even need that for threshold and sense wake.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if wake from light is possible?&amp;nbsp; I don&amp;#39;t think theres a pin you can sense wake?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/491296?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 11:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baa7473f-b59d-4a87-a457-5139f39385cb</guid><dc:creator>Hieu</dc:creator><description>[quote user="tldr"]&lt;span&gt;I found it wasn&amp;#39;t enough and I had to put&lt;br /&gt;&lt;/span&gt;&lt;span&gt;CONFIG_MCUBOOT_SERIAL&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;in as well.&lt;/span&gt;[/quote]
&lt;p&gt;OK. That&amp;#39;s a little surprising. I guess with GPIO not enabled, Serial Recovery default to a different entrance method, some waiting form, and keep the execution stuck in MCUboot still.&lt;/p&gt;
[quote user="tldr"]Correct, a button press entry into DFU mode would not work.&amp;nbsp; Updates were not top of my priority list[/quote]
&lt;p&gt;I think you can use BLE as the primary DFU transport. Serial Recovery is quite nice to have, but not a must.&lt;/p&gt;
[quote user="tldr"]the concept I was thinking would be a bluetooth command to write a flash value indicating entry into the serial recovery feature and sys_reboot()?&amp;nbsp;[/quote]
&lt;p&gt;I don&amp;#39;t think there is native support for it, but it&amp;#39;s a&amp;nbsp;direction. Not sure how comfortable you are with modifying MCUboot though.&lt;/p&gt;
&lt;p&gt;Here is the definition of the natively supported entrance methods:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/v2.0.99-ncs1/boot/zephyr/Kconfig.serial_recovery#L133-L187"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/v2.0.99-ncs1/boot/zephyr/Kconfig.serial_recovery#L133-L187&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/491176?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 18:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c12e087-d84b-433f-b8cd-93348f283713</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;No apologies needed.&amp;nbsp; I appreciate that you continued your efforts!&lt;/p&gt;
&lt;p&gt;added child_image\mcuboot.conf with&amp;nbsp;&lt;br /&gt;&lt;span&gt;CONFIG_GPIO&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;I found it wasn&amp;#39;t enough and I had to put&lt;br /&gt;&lt;/span&gt;&lt;span&gt;CONFIG_MCUBOOT_SERIAL&lt;/span&gt;&lt;span&gt;=n&lt;br /&gt;in as well.&lt;br /&gt;&lt;br /&gt;This fix also worked in the project not just the sample.&amp;nbsp; Cheers and thank u.&lt;br /&gt;&lt;br /&gt;Correct, a button press entry into DFU mode would not work.&amp;nbsp; Updates were not top of my priority list, but the concept I was thinking would be a bluetooth command to write a flash value indicating entry into the serial recovery feature and sys_reboot()?&amp;nbsp; With it being compiled out, this is not an option currently.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s unfortunate that mcuboot causes such a lock and the way in which it locks can corrupt attached i2c device memory.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/490696?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 15:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94d807f1-6d50-4a3a-8597-2573ee11ac21</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;My apology for the long absence.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just want to let you know that I am still working on this case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have thought that the issue is with the Serial Recovery feature, where MCUboot would enter recovery mode and await a new application image.&amp;nbsp;CONFIG_BOOT_SERIAL_ENTRANCE_GPIO enabled this feature, and it is on by default.&lt;/p&gt;
&lt;p&gt;However, further testing show that it might not be the case. The device remains&amp;nbsp;stuck even after I disabled Serial Recovery completely, not just the button entrance method.&lt;br /&gt;(I also ran into the observation that button0 somehow cannot be used instead)&lt;/p&gt;
&lt;p&gt;At the moment, I have found that if we disable the GPIO driver completely by setting CONFIG_GPIO=n for MCUboot, then the device works as expect.&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t know if this state is acceptable for you. I know you plan to use MCUboot, but do you plan to use the Serial Recovery feature?&lt;/p&gt;
&lt;p&gt;Considering that you want the device to work with the scenario where an end-user would repeatedly press the button, you will not be able to use&amp;nbsp;the button to enter the Serial Recovery mode, regardless of configs.&lt;/p&gt;
&lt;p&gt;Please let me know what you think. I have a few more things I will try tomorrow, but I don&amp;#39;t have high hope it will bring any difference.&lt;/p&gt;
&lt;p&gt;Once again, I am very sorry for the long wait.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/487600?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 01:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1acdae73-a7be-4909-94bc-528a8c96fcae</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;Tried setting mcuboot-button0; it looked like it was working for a while but still found myself with a locked up device.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;aliases&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;mcuboot-button0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;button0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;I haven&amp;#39;t found any information on how to get my project working while disabling the mcuboot.&amp;nbsp; I can&amp;#39;t&amp;nbsp;use the RTC module when this occurs and switching the device is no fun.&lt;br /&gt;&lt;br /&gt;I hope you have success in finding a solution.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/487366?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 15:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b241f24d-aba8-4065-ab33-df9a49f45ef9</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;Thank you for the response and glad to hear you were able to reproduce.&amp;nbsp; Your thoughts that it had to do with mcuboot is correct.&amp;nbsp; I was able to disable the mcuboot via&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT=n in the sample&amp;nbsp;I provided.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66234/disable-mcuboot-on-start-up"&gt;Disable MCUBoot on start-up&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not yet educated enough to know how to overlay the mcuboot child image to use a different GPIO. The device no longer locks up.&amp;nbsp; I would like to keep mcuboot&amp;nbsp;for future upgrades so knowing how to resolve this another way aside disabling mcuboot would be nice.&amp;nbsp; This is progress though;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;I will try this in my other code and see if this resolves the lockups.&lt;br /&gt;&amp;gt;&amp;gt; I tried in my other project; the code no longer runs at all, no button presses wake the device and reset also doesn&amp;#39;t show a lit led as it normally would.&amp;nbsp; disabling mcuboot in my other project is not a general solution it appears.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/487350?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 13:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e6b246-4ee5-464a-bfff-78f5cd6ed812</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Thank you for the patience.&lt;/p&gt;
&lt;p&gt;I reproduced your observation.&amp;nbsp;I suspect that the issue&amp;nbsp;lies with MCUboot processing the button but not 100% sure yet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will keep working on it and come back to you soon.&lt;/p&gt;
&lt;p&gt;In case you&amp;nbsp;want to try, a simple test would be overlaying the MCUboot child image to use a different&amp;nbsp;GPIO as the button instead of where the button really is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/485922?ContentTypeID=1</link><pubDate>Sun, 26 May 2024 11:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b62bb7b5-fb5c-4152-a9a0-4dd53b20ecdf</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;I decided against the additional commit with the code I attempted to resolve this issue.&amp;nbsp; None of those attempts worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/485916?ContentTypeID=1</link><pubDate>Sun, 26 May 2024 02:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c8d69fe-1bac-4194-ab5a-053145688c34</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;I just tried the tldr_sleep_wake_buzzer sample and spamming the button leads to nonresponsive device.&amp;nbsp; just press the button it turns on lights the light and plays a sound.&amp;nbsp; its not much code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/485915?ContentTypeID=1</link><pubDate>Sun, 26 May 2024 02:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a322a3-80b6-4f4e-ab42-5a6eb9219e3e</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;ncs\v2.6.1&amp;nbsp; I provided a sample of code,&amp;nbsp; I&amp;#39;ve provided a description of the situation.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/davehorner/tldr_sleep_wake_buzzer"&gt;https://github.com/davehorner/tldr_sleep_wake_buzzer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;operates&amp;nbsp;like the&amp;nbsp;&lt;span&gt;system_off nfc sample, it wakes and sleeps, the button wakes and second press buzzes until it turns off, but if pressed many times or randomly, it will not wake.&amp;nbsp; I&amp;#39;ve tried configuring the gpio&amp;nbsp;from all over.&amp;nbsp; removing call backs.&amp;nbsp; etc.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using printk isn&amp;#39;t really useful when the system gets shut off every 6 seconds.&lt;br /&gt;If I change the gpio from within system_off, i find it doesn&amp;#39;t stay off and cycles instead on and off.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;---&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;The device I&amp;#39;m working on wants to be off and sense when the device moves, button press, or nfc tag is detected.&lt;/div&gt;
&lt;div&gt;The device becomes non responsive or continually resets itself randomly,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;sys_poweroff&lt;/span&gt;();&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;is troublesome.&lt;/div&gt;
&lt;div&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nfc/system_off/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nfc/system_off/README.html&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;--&amp;nbsp;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;field_sens_start&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;) is referenced but not in sample code and its not clear to me where to use it and &amp;quot;&lt;/span&gt;&lt;span&gt;When using the registers to wake up the device, replace&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;start_nfc()&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;with the following function:&amp;quot; isn&amp;#39;t clear to me&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I believe I might need to be using field_sens_start() when using nfc in my case but I do not understand.&amp;nbsp; I have tried many thing in the interrupt and in the thread to disable PWM and other peripherals; in my attempts to unstick this issue I may have caused myself more trouble.&amp;nbsp; I will try to commit some code to demonstrate some of the things I&amp;#39;ve tried.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/485010?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 08:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08fc018c-fa30-47e8-97d9-18a1f7aacb5d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tldr,&lt;/p&gt;
&lt;p&gt;My apology for the long wait and thank you for your patience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which version of&amp;nbsp;NCS are you using, and how are you shuting down the device?&lt;/p&gt;
&lt;p&gt;Could you be experiencing the issue discussed here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105567/caf-button-wakeup-does-sometimes-not-happen-in-ncs-2-5-0-if-pressed-again-while-powering-down"&gt;CAF button wakeup does sometimes not happen in ncs 2.5.0, if pressed again while powering down&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/481843?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 14:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:107dd13e-0211-4cf1-a1f6-cce49745fc80</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;I understand the title of this help is now incorrect.&lt;/p&gt;
&lt;p&gt;I think I am experiencing something like:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99599/wake-from-gpio-using-sense-without-a-race-condition/425228"&gt;wake from GPIO using SENSE without a race condition - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which ended with the developer saying it was related to pwm; which I am using.&lt;/p&gt;
&lt;p&gt;I can break up the sample into a smaller sample if need.&lt;br /&gt;The device works fine, except if you spam the button while it is shutting down and then it doesn&amp;#39;t come back on a button press again without a reboot.&amp;nbsp; Worse still, it clears the i2c RTC time and ram when it happens.&lt;/p&gt;
&lt;p&gt;I have tried adding the code which turns off the PWM before shutdown.&lt;/p&gt;
&lt;p&gt;I can create another ticket that is more specifically named; but it would be named the same as the above ticket.&amp;nbsp; There&amp;#39;s something wrong with the shutdown when the button is spamed.&amp;nbsp; I have added code that doesn&amp;#39;t shut the device down when the button is HIGH;&amp;nbsp; It&amp;#39;s like if the button is transitioning, the shutdown fails and the device becomes unresponsive.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/480949?ContentTypeID=1</link><pubDate>Sat, 27 Apr 2024 10:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0498abb3-3c70-4ae3-b0de-a36148b9d5fc</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;yes, there is dead code from the samples mixed together.&amp;nbsp; This board can go into low power mode and wake up based on sensors, but there are no samples of this sort.&amp;nbsp;&amp;nbsp;ticket can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/478794?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 13:25:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cba95f4-4909-4dfd-a90f-2c4489e21e54</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tldr,&lt;/p&gt;
&lt;p&gt;Just double checking, but this piece of code after the&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;return 0;&lt;/span&gt; on line 321 is intentionally unreachable, right?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/davehorner/tldr_sleep_wake_buzzer/blob/97ebb248d401d4c17746fcbdaaca67e5e1b0d844/src/main.c#L321-L337"&gt;tldr_sleep_wake_buzzer/src/main.c at 97ebb248d401d4c17746fcbdaaca67e5e1b0d844 · davehorner/tldr_sleep_wake_buzzer (github.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Otherwise, nothing seems&amp;nbsp;outstandingly wrong to me.&amp;nbsp;I could only recommend starting with a relatively blank slate and go over small cycles of adding functionalities and testing, until you can pinpoint at which point it breaks. Does this sound like a reasonable plan to you?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/478564?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 13:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d333d4b-3bf3-48e1-b327-393de03440f2</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tldr,&lt;/p&gt;
&lt;p&gt;I will take over from Susheel. I will take a look at the&amp;nbsp;project you link, go over possible options, and get back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/478425?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 04:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37520efe-6435-49da-bc12-c38edebc26f3</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;here&amp;#39;s the code I&amp;#39;m working from.&lt;br /&gt;&lt;a id="" href="https://github.com/davehorner/tldr_sleep_wake_buzzer"&gt;https://github.com/davehorner/tldr_sleep_wake_buzzer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;operates&amp;nbsp;like the&amp;nbsp;&lt;span&gt;system_off nfc sample, it wakes and sleeps, the button wakes and second press buzzes until it turns off, but if pressed many times or randomly, it will not wake.&amp;nbsp; I&amp;#39;ve tried configuring the gpio&amp;nbsp;from all over.&amp;nbsp; removing call backs.&amp;nbsp; etc.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using printk isn&amp;#39;t really useful when the system gets shut off every 6 seconds.&lt;br /&gt;If I change the gpio from within system_off, i find it doesn&amp;#39;t stay off and cycles instead on and off.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/478359?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 14:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70e2a5f9-d13e-4643-8b96-f724538af06b</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;Thank you for your response! The primary purpose of this question is about using the microphone and trying to wake via a threshold.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was describing my code to give a sense of where I was coming from.&amp;nbsp; I am looking for help in waking from PDM.&amp;nbsp; I do appreciate the information you provided.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/478275?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f257d5-1403-4e2d-8c8d-4d80112c2b78</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The button callback will not be called when it is waking the chip from system off as the chip will be reset in this situation. If you were doing a system on idle sleep (WFE/WFI) and then try to wakeup from that, then your button callback handler will be called as you expected.&lt;/p&gt;
&lt;p&gt;So, in short, you need to implement your&amp;nbsp;button callback handler after detecting that the wakeup (reset) reason is caused by the GPIO from system off&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to look into &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Freset%2Fdoc%2Freset.html&amp;amp;cp=4_0_0_3_9_10_0&amp;amp;anchor=register.RESETREAS"&gt;POWER-RESETREAS&lt;/a&gt;&amp;nbsp;register to see if this wakeup is caused by a GPIO and then (BITMASK F -&amp;gt; OFF = set) and then call your button handler manually if this bit is set. I am assuming that there are no other wakeup sources from systemoff apart from this, so no need to check the GPIO registers to validate that it was a button that caused the wakeup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake on PDM microphone</title><link>https://devzone.nordicsemi.com/thread/478167?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 02:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1430dcd-a3e2-4f70-b904-68bac8c51beb</guid><dc:creator>generallysilver</dc:creator><description>&lt;p&gt;i noticed there are a few errors in your system_off nfc sample, to wake up the board on button press on audible wake need to properly reference their metrics in the system_off sample. Make sure to connect them correctly for operation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ffffff;"&gt;&lt;a style="color:#ffffff;" href="https://geometrydash-subzero.io"&gt;geometry dash subzero&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>