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

nRF8001 Setup

Hey,

I'm working on integrating nrf8001 with STM32, currently trying to write my own stack. Upon reset, I read the DeviceStartedEvent, 0x81 and it shows "0x02 0x00 0x02", which should mean the device is in the SETUP-state, correct?

After this, I'm trying to send setup (0x06), and the first 30 bytes of the setup array from settings.h created by the nrfgo studio. Upon sending this, the response I get from the device is "0x84 0x06 0x83", which corresponds to invalid device state?

Is there something I'm missing here? Thank you in advance, Mika

Parents
  • You get ACI_STATUS_ERROR_BUSY, maybe you don’t wait for device ready status on REDYN line? You should have something like this before you write a command ioport_set_pin_level ( REQN, 0 ); while(1 == ioport_get_pin_level (REDYN)) ;

    Or SPI frequency is too high. Anyway, SPI sniffer or oscilloscope is very useful thing. Oscilloscope help me many times, when I make own device.

Reply
  • You get ACI_STATUS_ERROR_BUSY, maybe you don’t wait for device ready status on REDYN line? You should have something like this before you write a command ioport_set_pin_level ( REQN, 0 ); while(1 == ioport_get_pin_level (REDYN)) ;

    Or SPI frequency is too high. Anyway, SPI sniffer or oscilloscope is very useful thing. Oscilloscope help me many times, when I make own device.

Children
No Data
Related