I am trying to use NRF24L01 module on Cobra II wifi board via SP1 that have carried to expansion pins. I have tried many configurations for ChipEnable and ChipSelect pins. All the changed pinouts I can initialize SPI interface and NRF24L01 driver.
In all my tries I cannot read back the module RX Address using GetAddress method to verify my configuration.
You may find my configuration for the testing and the code snippet below. I will be glad if you can help me on this issue. Thanks in advance and Kind Regards.
public class Program
{
static NRF24L01Plus _module = new NRF24L01Plus();
static byte[] moduleAddress = new byte[] { 0x02, 0xCC, 0xDD, 0xEE, 0xFF };
public static void Main()
{
_module.Initialize(SPI.SPI_module.SPI1, (Cpu.Pin)11, (Cpu.Pin)16, (Cpu.Pin)1);
_module.Configure(moduleAddress, 2);
var address = _module.GetAddress(AddressSlot.Zero, 5);
var verify = address.ToString();
Debug.Print(verify);
}
}
I am not receiving any exception or device lock. Only the situation I discover is the RX Address I read back is full of 0xFF or 0x00. This is also changing without any pattern.
I also want to give further information for the pins that I have used.