<?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>nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97601/nrf52840-spi-does-not-update-register-values-in-max30003-module</link><description>Hi, I want to communicate with MAX30003 ECG chip with my nRF52840 board. I am able to read MAX30003 register values but I cannot write new values to the registers. Not some specific register but all of them. So I must have done something wrong here..</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Mar 2023 20:30:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97601/nrf52840-spi-does-not-update-register-values-in-max30003-module" /><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415336?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 20:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ef0928-a428-4526-8e17-bdb7f7d82c1b</guid><dc:creator>rmptxf</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s actually the default one&amp;nbsp;&lt;strong&gt;NRF_DRV_SPI_DEFAULT_CONFIG&lt;/strong&gt; with &lt;strong&gt;MODE_0&lt;/strong&gt; and &lt;strong&gt;4MHz&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I mean the wing board &lt;strong&gt;3.3V&lt;/strong&gt; pin, I&amp;#39;m using the module not the bare chip. Yes the chip is getting &lt;strong&gt;1.8v,&lt;/strong&gt; a regulator is in the board for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415248?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 14:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d6d9c2c-739e-4f6f-81c0-8cd97f03d81f</guid><dc:creator>Giovani_Giorgio</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I have an update&lt;/p&gt;
&lt;p&gt;I took my nRF52840 DK and I connected my MAX30003wing.&lt;/p&gt;
&lt;p&gt;With the same SPI pins configuration It did not work even with the MAX30003wing.&lt;/p&gt;
&lt;p&gt;So I changed MISO from P0.22 to P0.30 and it worked properly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have wasted so many hours for this...&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415178?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 12:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd46647-4370-45a6-892a-6c98896d7946</guid><dc:creator>Giovani_Giorgio</dc:creator><description>&lt;p&gt;The thing is that I have already created the PCB with those pins so it is rather difficult change it now.&lt;br /&gt;But apart from that even if the MISO pin is faulty, the command should be inserted correctly to MAX30003 since MOSI is a regular GPIO. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415086?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 09:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:154cfe92-8d61-49a3-9f0b-04e445ae523a</guid><dc:creator>azwin</dc:creator><description>&lt;p&gt;because it is recommended for QSPI usage&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1678785116986v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415077?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 08:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cd13f38-d8a7-4b05-9993-7db0e02d8e43</guid><dc:creator>Giovani_Giorgio</dc:creator><description>&lt;p&gt;Hi, can you share the spi pin settings ?&lt;br /&gt;Also, when you say VDD you mean OVDD or DVDD?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415063?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 08:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3ea6db5-a774-4e51-b8c6-bb2cb00629b7</guid><dc:creator>Giovani_Giorgio</dc:creator><description>&lt;p&gt;Hi, no I am not using the max30003wing I am using my custom board with MAX300003 and nRF52840 chip &lt;br /&gt;and I cannot modify the pins unfortunately&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415062?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 08:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3857483f-4fbb-4d95-aef7-49a3ee288797</guid><dc:creator>Giovani_Giorgio</dc:creator><description>&lt;p&gt;Hi, &lt;br /&gt;what is wrong with pin (0,22)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415030?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 00:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d98674-4a60-47d2-9a9b-83f3a1c03123</guid><dc:creator>rmptxf</dc:creator><description>&lt;p&gt;I&amp;#39;m also struggling with this sensor and using the wing breakout too.&lt;/p&gt;
&lt;p&gt;Here I wasn&amp;#39;t even able to get a valid chip id. That&amp;#39;s at startup and not right after a chip reset.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="max30003 spi read chip id" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/max30003_5F00_ewing_5F00_spi.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit1:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I was able to get a valid chip id, but after using a &lt;strong&gt;1.8v&lt;/strong&gt; VDD. And that&amp;#39;s with the wing module, that is stated to work with &lt;strong&gt;3.3v.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="max30003 1.8v VDD" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/max30003_5F00_1_5F00_8v.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit2:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So, yes it turns out that a &lt;strong&gt;1.8v&lt;/strong&gt;&amp;nbsp;VDD did it. Now it is working fine. Able to get the ecg samples on the fifo buffer.&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/max30003_5F00_ecg_5F00_samples.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;There is an mbed based library for this sensor that would be good to check and port to the nRF SDKs:&amp;nbsp;&lt;strong&gt;&lt;a title="max30003 mbed lib" href="https://os.mbed.com/users/h_keyur/code/MAX_IOT_KIT/"&gt;https://os.mbed.com/users/h_keyur/code/MAX_IOT_KIT/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/415021?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 20:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ffd1912-e776-4423-869e-97a55049d4f4</guid><dc:creator>harry4951</dc:creator><description>&lt;p&gt;Hardware: If you are using max30003wing breakout board, try to connect both breakout GNDs to the DK.&lt;br /&gt;&lt;br /&gt;Software: I manage to&amp;nbsp;read the data&amp;nbsp;0x080004 back using max30003wing breakout. I am&amp;nbsp;using the following setup, the rest are the same.&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SPI_INSTANCE 1 /**&amp;lt; SPI instance index. */
static const nrf_drv_spi_t m_spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE); /**&amp;lt; SPI instance. */
static volatile bool spi_xfer_done; /**&amp;lt; Flag used to indicate that SPI instance completed the transfer. */

#define SPI_MISO_PIN NRF_GPIO_PIN_MAP(1, 8)
#define SPI_MOSI_PIN 30
#define SPI_SCK_PIN 31
#define SPI_SS_PIN NRF_GPIO_PIN_MAP(1, 7)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SPI does not update register values in MAX30003 module</title><link>https://devzone.nordicsemi.com/thread/414807?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 06:07:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a9e5f0-1a89-4a9b-90a7-53c90819bae1</guid><dc:creator>azwin</dc:creator><description>&lt;p&gt;check the pin setting esp :&amp;nbsp;#define SPI_MISO_PN&amp;nbsp; &amp;nbsp; NRF_GPIO_PIN_MAP(0,22) . give any other pin number n check&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>