Chat freely about anything...

User avatar
By kireol
#53730 Hi,

I have a nodemcu that I'm writing to using arduino ide/C

It seems whenever I invoke any radio commands, the esp hardware watchdog resets, and I'm not sure why.

Here's what I have.

Nodemcu .9
nrf24l01+

Arduino IDE 1.6.8
RF24 1.1.7
esp8266 1.0.0

Code: Select all#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(9, 10);

const byte rxAddr[6] = "00001";

void setup()
{
  ESP.wdtDisable();

   
  Serial.begin(115200);
  ESP.wdtFeed();
  radio.begin();
  ESP.wdtEnable(WDTO_8S);
}

void loop()
{
Serial.println("sup");
}



my output


Code: Select allwdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
)
 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

User avatar
By kireol
#53783
rudy wrote:The nrf24l01+ code probably blocks. If that is the case, and it blocks too long, then you would get a reset.


I thought the same.

So I turned off (as shown) the software version.

Let's say the hardware version is still doing that.

How is every single example on the internet with an esp8266 + an nrf24l01 working? I've tried every example I could find.