<?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>Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124099/development-issues-when-using-the-nrfx-library-in-zephyr</link><description>HI， 
 I am currently developing with nRF54L15 and SDK 3.0.0. I have encountered some issues: 1. Problems using the nrfx library in Zephyr I have defined the configuration information of the SPIM30 node in the devicetree. According to the Zephyr manual</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Sep 2025 07:18:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124099/development-issues-when-using-the-nrfx-library-in-zephyr" /><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547716?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 07:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:190196e1-b044-458a-ba4f-55f5fc0dbb0b</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="145693" url="~/f/nordic-q-a/124099/development-issues-when-using-the-nrfx-library-in-zephyr/547714"]I was originally developing the SPI using Zephyr&amp;#39;s APIs, but found that using a k_timer to trigger SPI data transmission every 1 second resulted in a power consumption of about 29 μA. [/quote]
&lt;p&gt;I don&amp;#39;t think you will see much improvement considering the long interval between your transactions. Did you confirm that the added current was because of the CPU, and not leakage, current draw by the SPI slave, etc.?&lt;/p&gt;
[quote userid="145693" url="~/f/nordic-q-a/124099/development-issues-when-using-the-nrfx-library-in-zephyr/547714"] could Zephyr&amp;#39;s power management shut down these operations during sleep?[/quote]
&lt;p&gt;No.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547714?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 07:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e020bd5-af89-4c65-b1ce-8bdfcc5cb89f</guid><dc:creator>joey</dc:creator><description>&lt;p&gt;&lt;span&gt;I was originally developing the SPI using Zephyr&amp;#39;s APIs, but found that using a k_timer to trigger SPI data transmission every 1 second resulted in a power consumption of about 29 &amp;mu;A. I want to directly use the GRTC to trigger the SPIM via DPPI for data acquisition to reduce CPU power consumption. However, since the program uses the DPPI+SPIM approach, could Zephyr&amp;#39;s power management shut down these operations during sleep? If it could, how can I ensure that the DPPI+SPIM operations remain active while also allowing the peripherals to enter low power mode after each operation?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547709?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 06:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f701216-93ea-4e08-ad26-1fa267a1a6bd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Zephyr will enter sleep (System ON) independently of the SPI activity.&amp;nbsp;CONFIG_PM_DEVICE_RUNTIME&lt;span&gt;&amp;nbsp;only affects Zephyr drivers which support the runtime power management which usually involves disabling the peripheral during idle periods. &lt;/span&gt;&lt;span&gt;Was the goal to reduce the system current consumption when you decided to use SPI with DPPI and GRTC, or is it to meet timing requirements in your application? The CPU overhead with triggering the SPI transactions is usually negligible (i.e. no significant impact on the average power consumption)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547668?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:797980bb-0d1d-4bd5-9c22-a50d007cb41e</guid><dc:creator>joey</dc:creator><description>&lt;p&gt;OK,&lt;/p&gt;
&lt;p&gt;In the program, I used the nrfx library to operate the spim, especially combining with dppi to operate the spim. Now, regarding the original power management of Zephyr, how should I operate it to ensure that the device can enter sleep mode normally?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547667?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec8e172-abe5-44f9-bd0e-c6bf67f8d101</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This was a bug which as been addressed in SDK v3.1.0. I recommend upgrading if possible. If not, you can change NRF_SPIM_HAS_ARRAY_LIST to &amp;#39;1&amp;#39; in your SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547664?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:841c6b73-c61e-4004-8b30-cbc4af6022ea</guid><dc:creator>joey</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1756906758047v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, these functions of mine are undefined.,How should it be set to be enable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547660?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79007e9e-9d4d-47b5-9364-0f8b024be4cb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Array list mode is enabled with the&amp;nbsp;NRFX_TWIM_FLAG_TX_POSTINC and&amp;nbsp;NRFX_TWIM_FLAG_RX_POSTINC flags. There is also the&amp;nbsp;NRFX_TWIM_FLAG_HOLD_XFER to configure a transaction without actually starting it.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1756906541343v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547658?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43e9e12d-5c9e-4e1d-bb5c-2fd896063793</guid><dc:creator>joey</dc:creator><description>&lt;p&gt;However, in the SDK I&amp;#39;m using, I couldn&amp;#39;t find the configuration function for the DMA array list, and some of the examples I&amp;#39;ve looked at also directly accessed the registers.&lt;/p&gt;
&lt;p&gt;Now I want to use DPPI to control SPIM. So even though NRFX_TWIM_XFER can be used for transmission, it does not meet the actual application requirements for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547657?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 13:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ed02b8e-797a-4142-8d3e-b34c20e96968</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You should avoid direct register access when using the driver like you are doing in sensor_spim_dma_init(). Otherwise the driver&amp;nbsp;is likely to end up overwriting your configurations.&lt;/p&gt;
&lt;p&gt;You can set up your transfers via&amp;nbsp;nrfx_twim_xfer(). See API documentation for relevant flags and helper macros.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547635?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 12:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e04986-2f29-4d1d-8dde-a50e273784c1</guid><dc:creator>joey</dc:creator><description>&lt;p&gt;Thank you for your reply&lt;/p&gt;
&lt;p&gt;After initializing SPIM with nrfx_spim_init, I was able to communicate normally by calling nrfx_spim_xfer. Then, I configured the DMA array list and used nrfy_spim_task_trigger(spim30_inst.p_reg, NRF_SPIM_TASK_START) to trigger the task. However, when observing the oscilloscope, there were no waveforms and the program was not running properly. What could be the problem?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1756903671915v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Development Issues When Using the nRFx Library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/547630?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 12:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca9e6e03-2316-4ffc-b7a1-5840e732ee0c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The configurations from your spi30 node in the devictree will not be automatically applied when you are using the nrfx drivers directly&amp;nbsp;like they are when using the Zephyr SPI driver API.&amp;nbsp;Please&amp;nbsp;verify&amp;nbsp;that&amp;nbsp;.frequency&amp;nbsp;value passed to&amp;nbsp;nrfx_spim_init() is configured correctly.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/e9cf74b581a1371f77862eea1e3cf24cadd457c6/samples/boards/nrf/nrfx_prs/src/main.c#L145"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/e9cf74b581a1371f77862eea1e3cf24cadd457c6/samples/boards/nrf/nrfx_prs/src/main.c#L145&lt;/a&gt;&amp;nbsp;&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>