RF24Network not compiling

I am trying to run a simple test of RF24Network which requires to use nrf_to_nrf library. My compiler is pulling all the libraries and when is trying to compile I can see the object NRF_RADIO not being found/declared.

I tried to look around the doc in case I needed to include something extra but nothing... anybody has a simlar issue?

                                                                                             ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/huzzah/nrf_to_nrf/src/nrf_to_nrf.cpp:1172:155: error: 'RADIO_PCNF1_BALEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF1 = (RADIO_PCNF1_WHITEEN_Disabled << RADIO_PCNF1_WHITEEN_Pos) | (RADIO_PCNF1_ENDIAN_Big << RADIO_PCNF1_ENDIAN_Pos) | ((a_width - 1) << RADIO_PCNF1_BALEN_Pos) | (pSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                                                           ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/huzzah/nrf_to_nrf/src/nrf_to_nrf.cpp:1172:190: error: 'RADIO_PCNF1_STATLEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF1 = (RADIO_PCNF1_WHITEEN_Disabled << RADIO_PCNF1_WHITEEN_Pos) | (RADIO_PCNF1_ENDIAN_Big << RADIO_PCNF1_ENDIAN_Pos) | ((a_width - 1) << RADIO_PCNF1_BALEN_Pos) | (pSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/huzzah/nrf_to_nrf/src/nrf_to_nrf.cpp:1172:239: error: 'RADIO_PCNF1_MAXLEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF1 = (RADIO_PCNF1_WHITEEN_Disabled << RADIO_PCNF1_WHITEEN_Pos) | (RADIO_PCNF1_ENDIAN_Big << RADIO_PCNF1_ENDIAN_Pos) | ((a_width - 1) << RADIO_PCNF1_BALEN_Pos) | (pSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/huzzah/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::printDetails()':
.pio/libdeps/huzzah/nrf_to_nrf/src/nrf_to_nrf.cpp:1182:20: error: 'NRF_RADIO' was not declared in this scope
1 Like

could you upload the code which gave the error messages?
where did you get the code from?

Just the normal example from here: https://github.com/nRF24/RF24Network/blob/master/examples/helloworld_tx/helloworld_tx.ino

Apparently if I do use the arduino IDE , it seems to be ok to compile, no idea why instaliing the same library on platformio is not working...

1 Like

I found two related issues:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.