This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 spi always faults out

i use nrf52 DK as master and configure ads1292 breakout as slave. I have try the loopback example which works properly. I write the sample spi code based on spi_master_with_slave example to read the value of the specific register in the ads1292. what happen is that the CS ,SCL,MOSI signal are all correct, but the MiSO signal is always wrong. image description yellow color is sclk,green color is miso, blue one is mosi,pink one is cs. no matter what register i read, the green signal (miso)is always like that. I attached my code as follow。 main.txt

the pin setting is changed like following:

#define SPIM0_SCK_PIN   25  // SPI clock GPIO pin number.
#define SPIM0_MOSI_PIN  23  // SPI Master Out Slave In GPIO pin number.
#define SPIM0_MISO_PIN  24  // SPI Master In Slave Out GPIO pin number.
#define SPIM0_SS_PIN    22  // SPI Slave Select GPIO pin number.'

please help me!

  • well I'm not going to read a 50 page datasheet - try other commands, simpler ones perhaps, something which returns status, make sure the thing is properly reset, make sure you have it configured properly so that it's supposed to be doing something. The MOSI trace is fine so what you're seeing is the reply from the chip which is .. there isn't one. And check the chip wiring too to ensure you have all the pins hooked up properly.

Related