Hi!
I just got a WIFI-R3, and I started by uploading the example Blink. It went all fine.
I soldered a NRF24L01 to it, and uploaded the code.
//Include Libraries
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
//create an RF24 object
RF24 radio(9, 8); // CE, CSN
//address through which two modules communicate.
const byte address[6] = "00001";
void setup()
{
while (!Serial);
Serial.begin(115200);
radio.begin();
//set the address
radio.openReadingPipe(0, address);
//Set module as receiver
radio.startListening();
}
void loop()
{
delay(1000);
//Read the data if available in buffer
if (radio.available())
{
char text[32] = {0};
radio.read(&text, sizeof(text));
Serial.println(text);
}
}
It compiled, and uploaded fine, but in the serial monitor, it gave me this:
ets Jan 8 2013,rst cause:4, boot mode:(3,5)
wdt reset
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v00042ac0
~ld
The reset cause 4 is because of the watchdog timer, but I don't know how to fix it.
Can someone help me?