<?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>Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99674/using-pdm-causes-ble-connection-to-drop</link><description>We have a custom board using a nRF52840 module and a PDM peripheral. Some of our recently produced boards are experiencing issues with dropped BLE connections when we turn on PDM. The boards continue to work otherwise and the PDM signals the boards are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Nov 2023 19:24:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99674/using-pdm-causes-ble-connection-to-drop" /><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/458396?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 19:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6b488b7-7346-400a-afd8-5b8818bab972</guid><dc:creator>jrowberg</dc:creator><description>&lt;p&gt;Interesting. I&amp;#39;m using the u-blox (ex-Rigado) BMD-340 with the nRF52840 chipset inside. It does have its own HF crystal as well, but no LF crystal.&lt;/p&gt;
&lt;p&gt;The SPI pins in my case are P1.13 (MISO), P1.14 (MOSI), and P1.15 (SCK). The CS pin for the slave device in question is P1.12.&lt;/p&gt;
&lt;p&gt;My SYNTH test was a full-time change made in sdk_config.h. However, I&amp;#39;m pursuing a possible runtime switch as a workaround for our existing hardware in case I can&amp;#39;t figure anything else out.&lt;/p&gt;
&lt;p&gt;In case you&amp;#39;re interested, I&amp;#39;ve got my own support topic going over here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106208/spi-transfers-cause-ble-connection-timeout-but-only-on-some-units-and-especially-when-cold"&gt;devzone.nordicsemi.com/.../spi-transfers-cause-ble-connection-timeout-but-only-on-some-units-and-especially-when-cold&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/458392?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 18:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87defd97-0ed6-47db-b38b-2bc9887ac48b</guid><dc:creator>brianatcarrot</dc:creator><description>&lt;p&gt;The module we&amp;#39;re using has a 32 MHz crystal on board, but we don&amp;#39;t have any other external crystals. We&amp;#39;re using RC as our clock source.&lt;/p&gt;
&lt;p&gt;Which pins are you using for SPI? I&amp;#39;m curious if you&amp;#39;re using the same ones we were having PDM issues with.&lt;/p&gt;
&lt;p&gt;For your test with SYNTH, were you able to switch the clock source on the fly, or was that test using SYNTH full time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/458205?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 03:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ef4220a-b5b5-4fb3-a571-ffa32edcc1aa</guid><dc:creator>jrowberg</dc:creator><description>&lt;p&gt;I&amp;#39;m troubleshooting a problem surprisingly similar to this, except with SPI instead of PDM. Out of curiosity, can you tell me what clock source you&amp;#39;re using in your custom design? I have a SiTime TCXO providing a 32768Hz clock source for two components on the board (BT + IMU). With the IMU inactive, I can maintain a BLE connection as long as I want, with the clock accuracy&amp;nbsp;set to 20ppm. But as soon as I start communicating with the IMU, suddenly the connection drops--but only on a small percentage of the produced units. Setting the accuracy to 500ppm does not change the behavior.&lt;/p&gt;
&lt;p&gt;(IMPORTANT NOTE I FORGOT: Switching the clock source to SYNTH instead of XTAL solves the problem, at the obvious expense of higher current consumption. This is why I think it&amp;#39;s related to the clock source.)&lt;/p&gt;
&lt;p&gt;After I read your post, I figured &amp;quot;what the heck&amp;quot; and started blasting my current test unit with hot air to see what would happen. INCREDIBLY, after 30 seconds or so of this, the connection suddenly held for a solid minute--a first for this particular device, which always failed after not more than one second. After I let it cool down a while, it&amp;#39;s back to its old unstable self.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just wondering if you also have a TCXO, or if you&amp;#39;re using some other clock signal. I&amp;#39;m still trying to nail this down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/438359?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 16:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4a5fb4-d8c9-45c0-99fb-3659b166cfb1</guid><dc:creator>brianatcarrot</dc:creator><description>&lt;p&gt;Here&amp;#39;s an update for anybody who stumbles across this post in the future. We were unable to figure out the root cause of the problem. However, we did figure out two workarounds.&lt;/p&gt;
&lt;p&gt;Workaround one is moving your PDM peripheral to a different pin seems to fix it. That requires hardware changes though, which isn&amp;#39;t always possible.&lt;/p&gt;
&lt;p&gt;Workaround two can be done entirely in firmware and takes advantage of the fact that the temperature where the BLE communication issues start&amp;nbsp;is apparently dependent on the PDM clock rate. Higher clock rates generally decreased the temperature where we started seeing the issue, but it wasn&amp;#39;t universal. That means that if your application can handle using a different PDM clock rate, you might be able to get the temperature cutoff to outside of your operating range. Downsampling or changing the PDM decimation ratio can help if you&amp;#39;re going to a higher clock rate.&amp;nbsp;The other way to take advantage of this is&amp;nbsp;for screening your units in manufacturing. If you can find a PDM clock rate that&amp;#39;s affected at higher temperatures&amp;nbsp;than the rate you use in the field, you can use that for screening at room temperature and be pretty sure you caught anything that would be affected at cold temperatures.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/425588?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 11:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b374ce-9bac-46f4-9af5-81fa3655f4a4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Brian,&lt;/p&gt;
&lt;p&gt;I do not see any special requirements on 0.24 and 0.25 pins eithers, so it pretty much looks looks like an hardware board related issue on your end.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since you are not able to replicate this on DK or most of your other boards, I do not think this is firmware related.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/425412?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 16:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4195e819-a377-491c-a430-d0e1da3d1198</guid><dc:creator>brianatcarrot</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Unfortunately, we aren&amp;#39;t able to reproduce this on the DK. We&amp;#39;re also unable to reproduce it on&amp;nbsp;the majority of our custom boards. The boards that are affected do it consistently, so it appears to be some kind of hardware issue. We&amp;#39;ve been unsuccessful in tracking it down so far. The traces for the PDM lines on our custom board are far enough away from the RADIO and antenna pins that they don&amp;#39;t seem like they should cause any interference. The datasheet doesn&amp;#39;t mention anything about not using 0.24 and 0.25 for high frequency signals.&lt;/li&gt;
&lt;li&gt;The priority of the ISR of the PDM is set to the lowest priority, which is also the default priority from the SDK.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using PDM causes BLE connection to drop</title><link>https://devzone.nordicsemi.com/thread/425283?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 10:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b1a423-e5b4-4338-89e5-4c28d865eab5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am a bit unsure what might be wrong on the SDK which is that old (nRF5SDKv15)&lt;/p&gt;
&lt;p&gt;There are two things that I can think of&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Try to reproduce this on the nRF52840 DK and see if you have same issues.
&lt;ol&gt;
&lt;li&gt;If you have same issues, then it most likely is related to the software configuration.&lt;/li&gt;
&lt;li&gt;If you do not see the same on nRF52840 DK, then it most likely is related to your hardware. Check if the GPIO pins selected are too close to the RADIO or antenna pins.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The priority of the ISR of the PDM might be too high interfering with the BLE activity which is not allowed by the softdevice.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>