<?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>Triyng to use a MPRLS 0015PA0000SAB sensor with nrf5340dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117453/triyng-to-use-a-mprls-0015pa0000sab-sensor-with-nrf5340dk</link><description>Hello, I&amp;#39;ve been developing on a Nrf5340 board and I am trying to gather pressure sensor data from both a adafruit mprls pressure sensor breakout board on i2c and then a Honeywell mprls0015PA0000SAB sensor that is running on the SPI bus. I&amp;#39;ve been able</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2025 14:40:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117453/triyng-to-use-a-mprls-0015pa0000sab-sensor-with-nrf5340dk" /><item><title>RE: Triyng to use a MPRLS 0015PA0000SAB sensor with nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/517271?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 14:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e73a35b5-81ff-43dd-96ee-f61235177cfe</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;&lt;span&gt;Only other pins that I have connected to the nrf controller are those for the honeywell mpr pressure sensor that uses I2C, those pins are only connected to the I2C datalines (P103 and P102) so it shouldnt be overlapping with the SPI datalines.&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you please elaborate this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The SPI shares registers and other resources with other peripherals that have the same ID as the SPI. Therefore, the user must disable all peripherals that have the same ID as the SPI before the SPI can be configured and used. So, it is not about i2c have dedicated pins but also you need to chcek if ay other peripherals share the same pins as SPI.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Disabling a peripheral that has the same ID as the SPI will not reset any of the registers that are shared with the SPI. It is therefore important to configure all relevant SPI registers explicitly to secure that it operates correctly.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Which Pins are used for SPI0 peripheral? Can you show me the pincontrol&amp;nbsp; file?&lt;/p&gt;
&lt;p&gt;This is the default pin selection of nRF5340 (nrf5340dk_nrf5340_cpunet-pinctrl.dtsi)&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/pastedimage1736260470476v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is the documentation of pin assignments of nRF5340&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triyng to use a MPRLS 0015PA0000SAB sensor with nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/516161?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2024 16:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e9bfca-7de2-4ed0-ab54-6929a3a05533</guid><dc:creator>PatTheTrickster</dc:creator><description>&lt;p&gt;This is my prj.conf file&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_LOG=y
CONFIG_SERIAL=n
# Enable the ADC API and driver
CONFIG_ADC=y
CONFIG_SPI=y
# Add the I2C Drivers and Show floating points w/digits
CONFIG_I2C=y
CONFIG_PINCTRL=y 
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_GPIO=y
CONFIG_SENSOR=y
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In my zephyr.dts file this is the definition that is generated for spi0&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;			spi0: spi@8000 {
				compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				reg = &amp;lt; 0x8000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0x8 0x1 &amp;gt;;
				max-frequency = &amp;lt; 0x7a1200 &amp;gt;;
				easydma-maxcnt-bits = &amp;lt; 0x10 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				pinctrl-0 = &amp;lt; &amp;amp;spi0_default &amp;gt;;
				pinctrl-1 = &amp;lt; &amp;amp;spi0_sleep &amp;gt;;
				pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
				cs-gpios = &amp;lt; &amp;amp;gpio0 0x19 0x1 &amp;gt;;
				mprls_spi: mprls_spi@0 {
					compatible = &amp;quot;honeywell,mprls_spi&amp;quot;;
					reg = &amp;lt; 0x0 &amp;gt;;
					spi-max-frequency = &amp;lt; 0xf4240 &amp;gt;;
					duplex = &amp;lt; 0x0 &amp;gt;;
				};
			};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And I also wanted to the include the I2c1 that is generated since that is my other sensor&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;			i2c1: arduino_i2c: i2c@9000 {
				compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				reg = &amp;lt; 0x9000 0x1000 &amp;gt;;
				clock-frequency = &amp;lt; 0x186a0 &amp;gt;;
				interrupts = &amp;lt; 0x9 0x1 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				pinctrl-0 = &amp;lt; &amp;amp;i2c1_default &amp;gt;;
				pinctrl-1 = &amp;lt; &amp;amp;i2c1_sleep &amp;gt;;
				pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
				mprls: mprls@18 {
					compatible = &amp;quot;i2c-device&amp;quot;;
					reg = &amp;lt; 0x18 &amp;gt;;
					label = &amp;quot;mprls&amp;quot;;
					pinctrl-0 = &amp;lt; &amp;amp;i2c1_default &amp;gt;;
					pinctrl-1 = &amp;lt; &amp;amp;i2c1_sleep &amp;gt;;
					int_gpios = &amp;lt; &amp;amp;gpio0 0x1b 0x11 &amp;gt;;
					status = &amp;quot;okay&amp;quot;;
					zephyr,concat-buf-size = &amp;lt; 0x80 &amp;gt;;
				};
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;And the ADC sensor that is generated aswell&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;			adc: adc@e000 {
				compatible = &amp;quot;nordic,nrf-saadc&amp;quot;;
				reg = &amp;lt; 0xe000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0xe 0x1 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				#io-channel-cells = &amp;lt; 0x1 &amp;gt;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				phandle = &amp;lt; 0x17 &amp;gt;;
				channel@0 {
					reg = &amp;lt; 0x0 &amp;gt;;
					zephyr,gain = &amp;quot;ADC_GAIN_1&amp;quot;;
					zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
					zephyr,acquisition-time = &amp;lt; 0x0 &amp;gt;;
					zephyr,input-positive = &amp;lt; 0x1 &amp;gt;;
					zephyr,resolution = &amp;lt; 0xc &amp;gt;;
				};
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Only other pins that I have connected to the nrf controller are those for the honeywell mpr pressure sensor that uses I2C, those pins are only connected to the I2C datalines (P103 and P102) so it shouldnt be overlapping with the SPI datalines.&lt;br /&gt;&lt;br /&gt;Let me know if this is enough information to see the problem or if there is something else that I should be checking out on, Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triyng to use a MPRLS 0015PA0000SAB sensor with nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/516049?ContentTypeID=1</link><pubDate>Sun, 22 Dec 2024 21:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a0c225f-bc8d-4c13-9544-8c55b4bb61bc</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How does your prj.conf file like? Have you checked if any other pins of other peripherals are overlapped with the SPI pins which connected to Honeywell sensors?&lt;/p&gt;
&lt;p&gt;Can you check the zephyr.dts file from build folder if the SPI pins are defined properly?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>