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

Cannot set NRF24L01+ registers values to default using SPI and STM32F303

Hi everyone. Now am trying to reset all register values of the NRF24 to their default values according to the datasheet. When i probe the process on a saleae analyzer, i see that the write commands are actually going through. However, when i try to read the contents of the registers afterwards, i get a 0x00 value as the content. This applies to all the registers. 

I checked that am using SPI mode 0. i.e. CPOL and CPHA are all 0.

here is a snap of my saleae capture.

here is a closeup on the first SPI_write instruction...

  • Hi Hakim

    This sounds like an SPI signalling issue. 

    A sure way to reset the configuration registers is to power cycle the nRF24 itself.

    Have you tried to read out the state of the configuration registers after a power reset to make sure the read function is working properly?

    Once the read function is confirmed to work you should try to write to one of the registers, and read it back afterwards to ensure that the write also worked. 

    Best regards
    Torbjørn

Related