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

nRF8001 Setup Question

Hello,

Working on my own code to integrate an arm chip with the nRF8001, after I read the device status, which says it's in Setup-mode, I'm sending the setup configuration to the device, as specified in services.h generated by nrf go studio. First I'm sending:

0x07,0x06,0x00,0x00,0x03,0x02,0x42,0x07 Which is 8 bytes (the first line in the setup msg array)

Then I'm sending: 0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x06,0x00,0x06,0xd0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

  • which is 32 bytes. (second line)

Note: Between each packet I cycle CS high/low.

After the first packet is sent, when I'm sending the 2nd one, I should be getting a confirmation during the transaction from the nRF, am I correct? However I get nothing. Instead, after sending the 2nd packet, I cycle CS high/low, but RDYN stays high for 39 ms, which seems to be unusually long. After that, I'm sending the 3rd packet and then I get a response, which says to continue the transaction.

I continue on to send all the packets (20 in total), after which RDYN stays up for 83 ms after which, it sends another TRANSACTION CONTINUE.

I can provide the logic trace is necessary, any help is appreciated, Thank you in advance.

Parents
  • I would suggest that you first verify your SPI driver by sending the Echo command and then verify that the Echo Event arrives. Do this for varying length echo commands so you verify your driver first.

    Send the Test Command. Wait for the Device Started Event with the nRF8001 in Test state. Send the Echo command and verify the Echo Response Event.

    Once you verify this you can attempt the Setup sequence.

Reply
  • I would suggest that you first verify your SPI driver by sending the Echo command and then verify that the Echo Event arrives. Do this for varying length echo commands so you verify your driver first.

    Send the Test Command. Wait for the Device Started Event with the nRF8001 in Test state. Send the Echo command and verify the Echo Response Event.

    Once you verify this you can attempt the Setup sequence.

Children
No Data
Related