Hi,
Was trying to get the nRF24L01+ module working as I already have a couple of these running around the house as part of a weather station project. I already had the RF24 and MiRF libraries installed, so I used the modified
RF24 radio(53,52); command as specified in the wiki, but it didn't work. So I thought it must be my libaries, so I moved them out as to use the versions included with DigiX. No change. When I compiled the RF24\GettingStared example without any changes, I got this error :
In file included from GettingStarted.pde:22:
/printf.h: In function 'void printf_begin()':
printf.h:30: error: 'fdevopen' was not declared in this scopeI comment out the offending line, as I thought it's probably something that worked with the AVRs, but not with the SAM architecture. No problem, just means the printf calls in the main code won't output anything. At least it would compile.
I then get the following errors from the RF24 library?!? I *did* change the hardware\arduino folder to hardware\digix, but the error was occuring before I made that change.
Arduino: 1.5.3 (Windows NT (unknown)), Board: "Digistump DigiX"
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::csn(int)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:24: error: 'SPI_CLOCK_DIV4' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::print_status(uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:188: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:193: error: 'printf_P' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::print_observe_tx(uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:204: error: 'printf_P' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::print_byte_register(const char*, uint8_t, uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:212: error: 'printf_P' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::print_address_register(const char*, uint8_t, uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:223: error: 'printf_P' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::printDetails()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:325: error: 'printf_P' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::begin()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:382: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::startListening()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:398: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::powerDown()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:429: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::powerUp()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:436: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'bool RF24::write(const void*, uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:468: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::startWrite(const void*, uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:510: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'bool RF24::available(uint8_t*)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:552: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'bool RF24::read(void*, uint8_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:585: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::whatHappened(bool&, bool&, bool&)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:594: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::openReadingPipe(uint8_t, uint64_t)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:652: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::enableDynamicPayloads()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:671: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::enableAckPayload()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:700: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::setAutoAck(uint8_t, bool)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:770: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:774: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::setPALevel(rf24_pa_dbm_e)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:799: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'rf24_pa_dbm_e RF24::getPALevel()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:832: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'bool RF24::setDataRate(rf24_datarate_e)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:864: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'rf24_datarate_e RF24::getDataRate()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:907: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::setCRCLength(rf24_crclength_e)':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:933: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'rf24_crclength_e RF24::getCRCLength()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:957: error: '_BV' was not declared in this scope
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp: In member function 'void RF24::disableCRC()':
D:\Dropbox\Programming\Ardiuno\hardware\digix\sam\libraries\RF24\RF24.cpp:974: error: '_BV' was not declared in this scopeAny ideas? I'm happy to poke, prod and break things

Cheers,
Peter