Skip to content

Incompatibility with Arduino NANO 33 BLE. #739

@TonioChingon

Description

@TonioChingon

Hi,

this is a great library!
There is however some incompatibility with the Arduino Nano 33 BLE (based on mbed OS).

I have the following setup:

  1. NRF24L01+ as transmitter with an Arduino Nano 33 BLE Sense
  2. NRF24L01+ as receiever with an Arduino Nano 33 BLE
  3. NRF24L01+ as receiever with an Arduino Uno

I am not able to receive any data on the Radio 2, transmission works well as data is received in Radio 3.

In order to debug the code, I tried to use printDetails and printf_P. Unfortunately they did not print any information.

After some research, I was able to make it work by inserting at line 27 of printf.h the following (see line 44 in https://github.com/arduino/ArduinoCore-mbed/blob/8564c3a97f9a2f74a54f3952ddd9a0516da22add/cores/arduino/macros.h):

#elif defined(ARDUINO_ARCH_MBED)
REDIRECT_STDOUT_TO(Serial);
#endif

Original code of printf.h:

RF24/printf.h

Lines 20 to 28 in 2af44fc

#if defined(ARDUINO_ARCH_AVR) || defined(__ARDUINO_X86__)
int serial_putc(char c, FILE *)
{
Serial.write(c);
return c;
}
#endif

Unfortunately, I did not figure it out how to insert it inside printf_begin().

I was able to perform the debugging, but with no success, i.e. I am still not able to receive data with Radio 2.
The Radios 2 and 3 seem to behave exactly the same during setup commands, however at the time of reading the data, there is no available data in Radio 2. The tests were carried out while Radio 2 and 3 were both on and only either of them was on.

Any thoughts? I will keep trying.

PS. I was debugging library v.1.3.11 but today I made the update to 1.3.12 also with no success (but no debugging).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions