<?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>Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119964/weak-pin-drive-strength-on-nrf5340-dk-leading-to-spi-communication-failure-with-icm-42688-p</link><description>I am using the Nordic nRF5340 DK to communicate with the ICM-42688-P sensor via SPI. However, the sensor does not respond to the MCU&amp;#39;s commands. After observing the SPI clock (SCLK) waveform with an oscilloscope. I noticed that the rise and fall times</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Mar 2025 11:58:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119964/weak-pin-drive-strength-on-nrf5340-dk-leading-to-spi-communication-failure-with-icm-42688-p" /><item><title>RE: Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/thread/528829?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 11:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b603409-24e9-4780-bbba-ff338f5130b4</guid><dc:creator>MatryoshkaLJY</dc:creator><description>&lt;p&gt;The probe is calibrated, I&amp;#39;ll try to find a higher impedance probe.&lt;/p&gt;
&lt;p&gt;Thanks for your help, my development can be continued.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/thread/528815?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 11:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c5ab4a8-66f7-4c9b-9a2c-5cbe03b71c07</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;That is interesting, I wonder if the probe is a problem in itself here. And the measuremnts look odd. Do you have a higher impedance probe you can use? And is the probe properly calibrated with the oscillioscope?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/thread/528793?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 10:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e9c01df-dc55-47f4-b713-3ac55d2fee7b</guid><dc:creator>MatryoshkaLJY</dc:creator><description>&lt;p&gt;Sure. I measured the clock signal with sensor disconnected.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20250325_5F00_175308.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And the waveform looks like this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Attaching the probe to the clk pin leads to communication failure when the sensor is connected to the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/thread/528769?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 08:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0b08e7-d6e5-45b5-b2e9-626538526d0f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Could there be a lot of capacitance on the sensor board for some reason? Seem unlikely, but it would be interesting if you could measure the clock signal directly on the DK, with the sensor disconected. Does the clock signal look better then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/thread/528630?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 13:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:355f8e66-99c6-444e-b71b-414dfe01cbf7</guid><dc:creator>MatryoshkaLJY</dc:creator><description>&lt;p&gt;Thanks for your reply. I double-checked the PIN_CNF register and the drive strength is H0H1. I shortened the signal path, mounted the sensor pcb directly to the DK. Following is my current setup, the sensor is on the green PCB.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20250324_5F00_211429.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Now&amp;nbsp;when I set the drive strength H0H1, spi frequency 4MHz, it works, but fails when I set higher frequency or weaker drive strength.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weak Pin Drive Strength on nRF5340 DK Leading to SPI Communication Failure with ICM-42688-P</title><link>https://devzone.nordicsemi.com/thread/528342?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 08:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b96caa83-145d-4fc8-8541-1ac35a09eb1a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Are there additional configurations (e.g., slew rate, pin control settings) to further optimize the GPIO output characteristics on the nRF5340?[/quote]
&lt;p&gt;The pins are configured as high drive for both low and high state, and there&amp;nbsp;is nothing more you can do in that regard.&amp;nbsp;However, you could double-check the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/gpio.html#ariaid-title17"&gt;PIN_CNF register&lt;/a&gt;&amp;nbsp;for the clock pin with a debugger to verify that it really has high drive enabled?&lt;/p&gt;
[quote user=""]Could this be related to hardware design limitations (e.g., pull-up/down resistors, trace impedance) on the nRF5340 DK?[/quote]
&lt;p&gt;Yes. Though these pins are not used for anythign specical, so I wonder if it could be related to other/external parts of the cuircuitry, for instance if you have very long wires? Or are there other things that could introduce higher capacitance on thei SPI lines? Can you share a photo of your setup?&lt;/p&gt;
[quote user=""]Are there known workarounds or firmware adjustments to mitigate this issue?[/quote]
&lt;p&gt;Not other than ensuring you have high drive. In addition to checking the register, you can also see where it is confiugred in the nrfx driver, &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/6541dc3a175ef8cd0970f7d8f1d954928e6bde8c/nrfx/drivers/src/nrfx_spim.c"&gt;nrfx_spim.c&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>