Hello,
I am trying to code nRF52840- DK with MAX30003 ECG Board Using SPI. I have referred Arduino Uno Code for MAX30003 ECG.
I need some help for Driver Development if anybody worked on this please share any info.
Thanks and Regards,
Rohit
Hello,
I am trying to code nRF52840- DK with MAX30003 ECG Board Using SPI. I have referred Arduino Uno Code for MAX30003 ECG.
I need some help for Driver Development if anybody worked on this please share any info.
Thanks and Regards,
Rohit
I need some help for Driver Development
What "help", exactly, do you need?
What have you tried?
Where are you stuck?
Hey Rohit,
Either you answer the questions asked by Nordic staff or community members or you wont get any help from us. We can only help you help yourself. If you do not want our help please refrain from using our forum. It will not help you to keep posting the same question in new threads without engaging in any conversation in your ongoing thread:
See the public duplicates:
https://devzone.nordicsemi.com/f/nordic-q-a/39021/max30003-ecg-with-nrf52840
https://devzone.nordicsemi.com/f/nordic-q-a/39063/spi-communication-with-max30003-ecg-reg_read_write
I have got a few tips for your current project:
Here's an abstract architecture of your FW with regards to the MAX30003:
Good luck,
Håkon H.
Hello sir sorry for that,
may i know nrf SPIM driver means "spi_master_using_nrf_spi_mngr" example?
I suggest you start with the nrfx SPI Master Example first, then if you want you can use the SPI Transaction Manager Example. The transaction manager is just another layer of abstraction useful when dealing with multiple slaves with different SPI configurations on the same bus. If you're only interfacing with this one sensor then there's no need for the SPI transaction manager.
Se also the SPI master docs and SPIM API references.
Hi Haakonsh,
Thank you for your suggestion, I am using nRFX_spim Example now.
I have done REG read function for reading MAX30003ECG Register value, In function, I have to read SPI transmit and SPI Receive.
I want to store Tx & Rx data in a CHAR_ARRAY but it is not storing in the SPI_temp_32b[i]. Please check it in below code
void MAX30003_Reg_Read(uint8_t Reg_address)
{
nrf_gpio_pin_clear(NRFX_SPIM_SS_PIN);
SPI_TX_Buff[1] = (Reg_address<<1 ) | RREG;
// Please clarify below function correct or not //
nrfx_spim_xfer_desc_t xfer_desc4 = NRFX_SPIM_XFER_TRX(SPI_TX_Buff[1], sizeof(SPI_TX_Buff[1]), SPI_RX_Buff, sizeof(SPI_TX_Buff[1]));
for ( i = 0; i < 3; i++)
{
SPI_temp_32b[i]= NRFX_SPIM_XFER_TRX(A, sizeof(A), SPI_RX_Buff, sizeof(A));
}
nrf_gpio_pin_set(NRFX_SPIM_SS_PIN);
}
Regards,
Rohit