Hello All
I’m really stumped on this problem i’m having, I’ve been searching Google for nearly an hour with no success. I’m playing around with 2 nRF24L01 Transceivers that are running a UNO board each.
Here is my code that i’m using
My problem is that if I uncomment Mirf.init(); I get a serial output like this SerialSerialSerialSerialSerialSerialSerial and that goes indefinitely, if however I comment out Mirf.init(); I get my 2 Serial outputs I have in the void setup. This happens with both my boards and it doesn’t matter if the Wireless Transceivers are connected or not and I’ve double checked that they are connected correctly.
Any help would be great
Could it be that these Mirf modules communicate through Serial, and you’re trying to use the same communication channel for 2 things? Or maybe the Mirf module code is causing the board to reset? Any chance you could, oh, I don’t know, maybe point us to this mythical Mirf library you’re using?
I got exactly the same issue.
MirfSpiDriver causes this problem.
Seems that spi variable is not initialized in Mirf class, so i've added initialization into init method in Mirf.cpp file right before spi->begin(); call:
spi = new MirfSpiDriver();
Hope this helps