1

I have connected my NRF24 module as described at bottom of this webpage.

I cloned that repository and have Build using SPIDEV (I have ensured SPI was enabled and double checked that SPI module works, following this look back test at bottom of the webpage.

However when I build and launch ./gettingstarted, is abruptly terminated.

pi@raspberrypi:~/RF24/examples_linux $ ./gettingstarted
RF24/examples/GettingStarted/
terminate called after throwing an instance of 'int'
Aborted

I figured its from radio.begin();

Also if no NFR24 is connected to RPi , the same abort happens.

What I've missed , or doing wrong ?

Using: Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4

P0W
  • 141
  • 7
  • The first link does not work. The 3rd is to a 6 year old obsolete tutorial. – Milliways Jun 11 '18 at 00:42
  • @Milliways I updated the first link, and ensured the tutorial did the same loop back test as on official raspberry pi webpage. (I updated 3rd link as well). Do you think its issue with RPi itself ? – P0W Jun 11 '18 at 01:22

1 Answers1

3

Looks like the device interaction needs root access.

I got help from the github community, from the authors.

I have to use sudo ./gettingstarted

P0W
  • 141
  • 7