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

nRF8001 Incomplete Setup

Hi Folks,

I'm experiencing a problem with the nRF8001 setup. After I send the last setup packet, I still receive: 0x03 (length), 0x84(CommandResponseEvent), 0x06(Setup), 0x01 (ACI_STATUS_TRANSACTION_CONTINUE) followed by junk bytes, as shown in the diagram attached.

I used nRFgo Studio to generate the minimal setup sequence (11 packets) for external 32KHz and 16MHz clocks and no security features, so I don't see why it's asking for more setup commands. Any idea why my nRF8001 doesn't reset and send DeviceStartedEvent at the end?

Cheers, Soren

nRF8001-ACI-Setup.JPG

  • Hi,

    In the attachment; if you are sending the last setup packet here, you will get a command response to this once the packet is processed. Please also make sure you set the length byte in the transmit buffer to 0 when you are done transmitting. The interface is asynchronous so the nRF8001 can buffer packets. Make sure you read out all command responses as this will be sent after a command is processed (not when it is received).

    Best regards, Runar

  • Hi Runar,

    You were right. After sending the last setup packet, I had to generate the SPI clock for not 1 packet but 3 packets (i.e. sent 3 packets of 6 dummy bytes) and then nRF8001 responded back that the setup is complete. I also changed the "Active signal" in nRFgo Studio from active high to active low which I think helped fix my issue.

    Thank you for your help, Soren

Related