Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use the RF24 libraries with platformio since the v1.0.18 release #212

Closed
shyney7 opened this issue Jun 20, 2023 · 7 comments
Closed

Comments

@shyney7
Copy link

shyney7 commented Jun 20, 2023

Since the new release of the RF24 libraries Im unable to use them with platformio anymore.
Even if I try to use the older version that was working for projects before this update.
Here is the error that I get: platformio/platformio-home#5848

I know that until this point its a platformio issue thats why I opened it there instead of here, but even if I try to download every library manually and insert them into the lib folder Im getting a bunch of compiler errors.
This issue seems only to affect the RF24Network and RF24Mesh libraries. The RF24 library can be isntalled in platformio without problems.

This seems to only effect the nrf_to_nrf.cpp source file:

Details

-----------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lilygo-t-display-s3.html
PLATFORM: Espressif 32 (6.2.0) > LilyGo T-Display-S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20008.0 (2.0.8)
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 41 compatible libraries
Scanning dependencies...
Dependency Graph
|-- RF24 @ 1.4.7        
|-- RF24Mesh @ 1.1.9    
|-- RF24Network @ 1.0.18
|-- SPI @ 2.0.0
Building in release mode
Compiling .pio\build\lilygo-t-display-s3\liba8a\nrf_to_nrf\nrf_to_nrf.cpp.o
Compiling .pio\build\lilygo-t-display-s3\FrameworkArduino\libb64\cdecode.c.o
Compiling .pio\build\lilygo-t-display-s3\FrameworkArduino\libb64\cencode.c.o
Compiling .pio\build\lilygo-t-display-s3\FrameworkArduino\main.cpp.o
Compiling .pio\build\lilygo-t-display-s3\FrameworkArduino\stdlib_noniso.c.o
Compiling .pio\build\lilygo-t-display-s3\FrameworkArduino\wiring_pulse.c.o
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In function 'uint32_t addr_conv(const uint8_t*)':
Compiling .pio\build\lilygo-t-display-s3\FrameworkArduino\wiring_shift.c.o
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:22:12: error: '__REV' was not declared in this scope
     return __REV(
            ^~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::begin()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:86:5: error: 'NRF_CLOCK' was not declared in this scope
     NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:86:5: note: suggested alternative: 'F_LOCK'
     NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
     ^~~~~~~~~
     F_LOCK   
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:94:28: error: 'CLOCK_LFCLKSRC_SRC_Xtal' was not declared in this scope
     NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos);
                            ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:94:55: error: 'CLOCK_LFCLKSRC_SRC_Pos' was not declared in this scope
     NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos);
                                                       ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:102:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->POWER = 1;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:102:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->POWER = 1;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:105:30: error: 'RADIO_PCNF0_S0LEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (1 << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (1 << RADIO_PCNF0_S1LEN_Pos);
                              ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:105:61: error: 'RADIO_PCNF0_LFLEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (1 << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (1 << RADIO_PCNF0_S1LEN_Pos);
                                                             ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:105:92: error: 'RADIO_PCNF0_S1LEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (1 << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (1 << RADIO_PCNF0_S1LEN_Pos);
                                                                                            ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107:25: error: 'RADIO_PCNF1_WHITEEN_Disabled' 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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107:57: error: 'RADIO_PCNF1_WHITEEN_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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107:85: error: 'RADIO_PCNF1_ENDIAN_Big' 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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                     ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107:111: error: 'RADIO_PCNF1_ENDIAN_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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107:143: 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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107: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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);

                             ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:107: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) | (4 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                                                              ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:121:25: error: 'RADIO_CRCCNF_LEN_Two' was not declared in this scope
     NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_Two; /* CRC configuration: 16bit */
                         ^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:126:24: error: 'RADIO_MODE_MODE_Nrf_1Mbit' was not declared in this scope
     NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:126:53: error: 'RADIO_MODE_MODE_Pos' was not declared in this scope
     NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
                                                     ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:126:53: note: suggested alternative: 'GPIO_MODE_OUTPUT'
     NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
                                                     ^~~~~~~~~~~~~~~~~~~
                                                     GPIO_MODE_OUTPUT
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:129:34: error: 'RADIO_TXPOWER_TXPOWER_Pos' was not declared in this scope
     NRF_RADIO->TXPOWER = (0x8 << RADIO_TXPOWER_TXPOWER_Pos);
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'uint8_t nrf_to_nrf::sample_ed()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:143:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->TASKS_EDSTART = 1; // Start
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:143:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->TASKS_EDSTART = 1; // Start
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::available(uint8_t*)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:173:9: error: 'NRF_RADIO' was not declared in this scope
     if (NRF_RADIO->EVENTS_CRCOK) {
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:173:9: note: suggested alternative: 'NRF_PA_LOW'
     if (NRF_RADIO->EVENTS_CRCOK) {
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:175:23: error: 'CCM_IV_SIZE' was not declared in this scope
         uint8_t tmpIV[CCM_IV_SIZE];
                       ^~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:175:23: note: suggested alternative: 'MEM_SIZE'
         uint8_t tmpIV[CCM_IV_SIZE];
                       ^~~~~~~~~~~
                       MEM_SIZE
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:298:9: error: 'NRF_RADIO' was not declared in this scope
     if (NRF_RADIO->EVENTS_CRCERROR) {
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:298:9: note: suggested alternative: 'NRF_PA_LOW'
     if (NRF_RADIO->EVENTS_CRCERROR) {
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::read(void*, uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:313:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->TASKS_START = 1;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:313:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->TASKS_START = 1;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::write(void*, uint8_t, bool, bool)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:402:13: error: 'NRF_RADIO' was not declared in this scope
         if (NRF_RADIO->STATE < 9) {
             ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:402:13: note: suggested alternative: 'NRF_PA_LOW'
         if (NRF_RADIO->STATE < 9) {
             ^~~~~~~~~
             NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:410:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->EVENTS_END = 0;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:410:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->EVENTS_END = 0;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:426:41: error: 'RADIO_MODE_MODE_Nrf_1Mbit' was not declared in this scope
                 if (NRF_RADIO->MODE == (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos)) {
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:426:70: error: 'RADIO_MODE_MODE_Pos' was not declared in this scope
                 if (NRF_RADIO->MODE == (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos)) {
                                                                      ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:426:70: note: suggested alternative: 'GPIO_MODE_OUTPUT'
                 if (NRF_RADIO->MODE == (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos)) {
                                                                      ^~~~~~~~~~~~~~~~~~~
                                                                      GPIO_MODE_OUTPUT
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::startWrite(void*, uint8_t, bool)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:507:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->TASKS_START = 1;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:507:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->TASKS_START = 1;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::startListening(bool)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:566:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->EVENTS_DISABLED = 0;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:566:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->EVENTS_DISABLED = 0;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::stopListening(bool, bool)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:589:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->EVENTS_DISABLED = 0;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:589:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->EVENTS_DISABLED = 0;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::isValid()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:621:21: error: 'NRF_RADIO' was not declared in this scope
     uint32_t freq = NRF_RADIO->FREQUENCY;
                     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:621:21: note: suggested alternative: 'NRF_PA_LOW'
     uint32_t freq = NRF_RADIO->FREQUENCY;
                     ^~~~~~~~~
                     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::setChannel(uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:632:48: error: 'NRF_RADIO' was not declared in this scope
 void nrf_to_nrf::setChannel(uint8_t channel) { NRF_RADIO->FREQUENCY = channel; }
                                                ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:632:48: note: suggested alternative: 'NRF_PA_LOW'
 void nrf_to_nrf::setChannel(uint8_t channel) { NRF_RADIO->FREQUENCY = channel; }
                                                ^~~~~~~~~
                                                NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'uint8_t nrf_to_nrf::getChannel()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:636:52: error: 'NRF_RADIO' was not declared in this scope
 uint8_t nrf_to_nrf::getChannel() { return (uint8_t)NRF_RADIO->FREQUENCY; }
                                                    ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:636:52: note: suggested alternative: 'NRF_PA_LOW'
 uint8_t nrf_to_nrf::getChannel() { return (uint8_t)NRF_RADIO->FREQUENCY; }
                                                    ^~~~~~~~~
                                                    NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::enableDynamicPayloads(uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:672:13: error: 'NRF_RADIO' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (6 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
             ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:672:13: note: suggested alternative: 'NRF_PA_LOW'
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (6 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
             ^~~~~~~~~
             NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:672:38: error: 'RADIO_PCNF0_S0LEN_Pos' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (6 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
                                      ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:672:69: error: 'RADIO_PCNF0_LFLEN_Pos' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (6 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
                                                                     ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:672:100: error: 'RADIO_PCNF0_S1LEN_Pos' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (6 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
                                                                                                    ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:676:13: error: 'NRF_RADIO' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (8 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
             ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:676:13: note: suggested alternative: 'NRF_PA_LOW'
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (8 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
             ^~~~~~~~~
             NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:676:38: error: 'RADIO_PCNF0_S0LEN_Pos' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (8 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
                                      ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:676:69: error: 'RADIO_PCNF0_LFLEN_Pos' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (8 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
                                                                     ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:676:100: error: 'RADIO_PCNF0_S1LEN_Pos' was not declared in this scope
             NRF_RADIO->PCNF0 = (0 << RADIO_PCNF0_S0LEN_Pos) | (8 << RADIO_PCNF0_LFLEN_Pos) | (3 << RADIO_PCNF0_S1LEN_Pos);
                                                                                                    ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:9: error: 'NRF_RADIO' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->PCNF1 = (RADIO_PCNF1_WHITEEN_Disabled << RADIO_PCNF1_WHITEEN_Pos) | (RADIO_PCNF1_ENDIAN_Big << RADIO_PCNF1_ENDIAN_Pos) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:29: error: 'RADIO_PCNF1_WHITEEN_Disabled' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:61: error: 'RADIO_PCNF1_WHITEEN_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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                             ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:89: error: 'RADIO_PCNF1_ENDIAN_Big' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                         ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:115: error: 'RADIO_PCNF1_ENDIAN_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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:162: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);

 ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:193: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:678:236: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (0 << RADIO_PCNF1_STATLEN_Pos) | (payloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                                                           ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::disableDynamicPayloads()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:692:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:692:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:692:38: error: 'RADIO_PCNF0_S0LEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
                                      ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:692:69: error: 'RADIO_PCNF0_LFLEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
                                                                     ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:692:108: error: 'RADIO_PCNF0_S1LEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
                                                                                                            ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:25: error: 'RADIO_PCNF1_WHITEEN_Disabled' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:57: error: 'RADIO_PCNF1_WHITEEN_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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:85: error: 'RADIO_PCNF1_ENDIAN_Big' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                     ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:111: error: 'RADIO_PCNF1_ENDIAN_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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:158: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                                                              ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:205: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                            ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:694:254: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                                                                             ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::setPayloadSize(uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:708:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:708:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:708:38: error: 'RADIO_PCNF0_S0LEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
                                      ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:708:69: error: 'RADIO_PCNF0_LFLEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
                                                                     ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:708:108: error: 'RADIO_PCNF0_S1LEN_Pos' was not declared in this scope
     NRF_RADIO->PCNF0 = (lenConfig << RADIO_PCNF0_S0LEN_Pos) | (0 << RADIO_PCNF0_LFLEN_Pos) | (lenConfig << RADIO_PCNF0_S1LEN_Pos);
                                                                                                            ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:25: error: 'RADIO_PCNF1_WHITEEN_Disabled' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:57: error: 'RADIO_PCNF1_WHITEEN_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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:85: error: 'RADIO_PCNF1_ENDIAN_Big' 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                     ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:111: error: 'RADIO_PCNF1_ENDIAN_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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:158: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);
                                                                                                                                                              ^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:205: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                            ^~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:710:254: 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) | (addressWidth - 1 << RADIO_PCNF1_BALEN_Pos) | (staticPayloadSize << RADIO_PCNF1_STATLEN_Pos) | (staticPayloadSize << RADIO_PCNF1_MAXLEN_Pos);

                                                                                             ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::openReadingPipe(uint8_t, uint64_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:744:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->BASE0 = base;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:744:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->BASE0 = base;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:749:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:749:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:754:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:754:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:758:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->RXADDRESSES |= 1 << child;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:758:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->RXADDRESSES |= 1 << child;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::openWritingPipe(uint64_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:777:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->BASE0 = base;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:777:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->BASE0 = base;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::openReadingPipe(uint8_t, const uint8_t*)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:803:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->BASE0 = base;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:803:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->BASE0 = base;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:808:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:808:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:813:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:813:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->BASE1 = base;
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:817:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->RXADDRESSES |= 1 << child;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:817:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->RXADDRESSES |= 1 << child;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::openWritingPipe(const uint8_t*)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:837:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->BASE0 = base;
     ^~~~~~~~~
Archiving .pio\build\lilygo-t-display-s3\libFrameworkArduino.a
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:837:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->BASE0 = base;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::setDataRate(uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:885:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:885:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:885:28: error: 'RADIO_MODE_MODE_Nrf_1Mbit' was not declared in this scope
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:885:57: error: 'RADIO_MODE_MODE_Pos' was not declared in this scope
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:885:57: note: suggested alternative: 'GPIO_MODE_OUTPUT'
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_1Mbit << RADIO_MODE_MODE_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~
                                                         GPIO_MODE_OUTPUT
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:889:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_2Mbit << RADIO_MODE_MODE_Pos);
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:889:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_2Mbit << RADIO_MODE_MODE_Pos);
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:889:28: error: 'RADIO_MODE_MODE_Nrf_2Mbit' was not declared in this scope
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_2Mbit << RADIO_MODE_MODE_Pos);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
Indexing .pio\build\lilygo-t-display-s3\libFrameworkArduino.a
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:889:57: error: 'RADIO_MODE_MODE_Pos' was not declared in this scope
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_2Mbit << RADIO_MODE_MODE_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:889:57: note: suggested alternative: 'GPIO_MODE_OUTPUT'
         NRF_RADIO->MODE = (RADIO_MODE_MODE_Nrf_2Mbit << RADIO_MODE_MODE_Pos);
                                                         ^~~~~~~~~~~~~~~~~~~
                                                         GPIO_MODE_OUTPUT
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::setPALevel(uint8_t, bool)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:914:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->TXPOWER = paLevel;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:914:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->TXPOWER = paLevel;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'uint8_t nrf_to_nrf::getPALevel()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:922:23: error: 'NRF_RADIO' was not declared in this scope
     uint8_t paLevel = NRF_RADIO->TXPOWER;
                       ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:922:23: note: suggested alternative: 'NRF_PA_LOW'
     uint8_t paLevel = NRF_RADIO->TXPOWER;
                       ^~~~~~~~~
                       NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::setCRCLength(nrf_crclength_e)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:954:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_Two; /* CRC configuration: 16bit */
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:954:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_Two; /* CRC configuration: 16bit */
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:954:29: error: 'RADIO_CRCCNF_LEN_Two' was not declared in this scope
         NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_Two; /* CRC configuration: 16bit */
                             ^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:959:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_One; /* CRC configuration: 8bit */
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:959:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_One; /* CRC configuration: 8bit */
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:959:29: error: 'RADIO_CRCCNF_LEN_One' was not declared in this scope
         NRF_RADIO->CRCCNF = RADIO_CRCCNF_LEN_One; /* CRC configuration: 8bit */
                             ^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:964:9: error: 'NRF_RADIO' was not declared in this scope
         NRF_RADIO->CRCCNF = 0; /* CRC configuration: Disabled */
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:964:9: note: suggested alternative: 'NRF_PA_LOW'
         NRF_RADIO->CRCCNF = 0; /* CRC configuration: Disabled */
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'nrf_crclength_e nrf_to_nrf::getCRCLength()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:974:9: error: 'NRF_RADIO' was not declared in this scope
     if (NRF_RADIO->CRCCNF == 0) {
         ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:974:9: note: suggested alternative: 'NRF_PA_LOW'
     if (NRF_RADIO->CRCCNF == 0) {
         ^~~~~~~~~
         NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:977:35: error: 'RADIO_CRCCNF_LEN_One' was not declared in this scope
     else if (NRF_RADIO->CRCCNF == RADIO_CRCCNF_LEN_One) {
                                   ^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'bool nrf_to_nrf::testCarrier(uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:990:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->EVENTS_RSSIEND = 0;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:990:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->EVENTS_RSSIEND = 0;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::powerUp()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1004:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->POWER = 1;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1004:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->POWER = 1;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::powerDown()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1016:5: error: 'NRF_RADIO' was not declared in this scope
     NRF_RADIO->EVENTS_DISABLED = 0;
     ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1016:5: note: suggested alternative: 'NRF_PA_LOW'
     NRF_RADIO->EVENTS_DISABLED = 0;
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::setAddressWidth(uint8_t)':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:5: error: 'NRF_RADIO' 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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:5: note: suggested alternative: 'NRF_PA_LOW'
     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);
     ^~~~~~~~~
     NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:25: error: 'RADIO_PCNF1_WHITEEN_Disabled' 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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:57: error: 'RADIO_PCNF1_WHITEEN_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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:85: error: 'RADIO_PCNF1_ENDIAN_Big' 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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:111: error: 'RADIO_PCNF1_ENDIAN_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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:153: 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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:188: 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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1035:237: 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/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'void nrf_to_nrf::printDetails()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1045:20: error: 'NRF_RADIO' was not declared in this scope
     Serial.println(NRF_RADIO->STATE);
                    ^~~~~~~~~
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1045:20: note: suggested alternative: 'NRF_PA_LOW'
     Serial.println(NRF_RADIO->STATE);
                    ^~~~~~~~~
                    NRF_PA_LOW
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In member function 'nrf_crclength_e nrf_to_nrf::getCRCLength()':
.pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:983:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
*** [.pio\build\lilygo-t-display-s3\liba8a\nrf_to_nrf\nrf_to_nrf.cpp.o] Error 1
================================================================== [FAILED] Took 9.20 seconds ==================================================================

@2bndy5
Copy link
Member

2bndy5 commented Jun 20, 2023

The problem is that the nrf_to_nrf library has declared certain branches of RF24Network & RF24Mesh as dependencies, and the branches don't exist anymore. And, RF24Network master branch (soon to be v2.0) has declared nrf_to_nrf as a dependency for the nRF52 family chips. I don't think its really a PIO problem; the output is pretty explanatory.

@TMRh20 Can you remove the deps from nrf_to_nrf lib? I've been having similar issues with the PIO CI workflow. I had a feeling I deleted those branches hastily, now I know why. I don't have a local copy of the nRF52Support branches on my machine anymore, so I can't just push those branches back to the git remotes.

@shyney7 RF24Network v1.0.17 shouldn't have this dependency cycle.

@2bndy5 2bndy5 changed the title Unable to use the RF24 libraries with platformio since the newest releases. Unable to use the RF24 libraries with platformio since the v1.0.18 releas. Jun 20, 2023
@2bndy5 2bndy5 changed the title Unable to use the RF24 libraries with platformio since the v1.0.18 releas. Unable to use the RF24 libraries with platformio since the v1.0.18 release Jun 20, 2023
@2bndy5 2bndy5 transferred this issue from nRF24/RF24Mesh Jun 20, 2023
@TMRh20
Copy link
Member

TMRh20 commented Jun 20, 2023

@2bndy5 OK I removed the dependancies from nrf_to_nrf, but am still getting errors installing RF24Mesh in platform io:

Libraries: Could not install library
PIO Core Call Error: "Resolving nanoatmega328 dependencies...\r\nLibrary Manager: RF24Mesh@1.1.9 is already installed\r\nLibrary Manager: Installing git+https://github.com/nRF24/RF24Network.git#nrf52Support\r\ngit version 2.37.0.windows.1\n\n\nCloning into 'C:\\Users\\Owner\\.platformio\\.cache\\tmp\\pkg-installing-4q2iap8o'...\nwarning: Could not find remote branch nrf52Support to clone.\nfatal: Remote branch nrf52Support not found in upstream origin\nError: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'nrf52Support', 'https://github.com/nRF24/RF24Network.git', 'C:\\\\Users\\\\Owner\\\\.platformio\\\\.cache\\\\tmp\\\\pkg-installing-4q2iap8o']"

Maybe it takes a bit to update fully? I dunno...

@2bndy5
Copy link
Member

2bndy5 commented Jun 20, 2023

It might take a bit for PIO lib registry to use the new release. 🤷🏼 I'll look into this and the open PRs tonight.

@2bndy5
Copy link
Member

2bndy5 commented Jun 21, 2023

I think we need to add the following patch to v1.x branch and re-release:

--- a/library.json
+++ b/library.json
@@ -17,7 +17,8 @@
         {
             "name": "nrf_to_nrf",
             "authors": "TMRh20",
-            "frameworks": "arduino"
+            "frameworks": "arduino",
+            "platforms":["nordicnrf52"]
         }
     ],
     "export":

Currently, RF24Network v1.0.18 will note nrf_to_nrf as a dependency for platforms other than nordcnrf52. While the removal of deps from nrf_to_nrf in v1.2.5 does avoid the erroneous dependency-loop, the compiler still tries to compile nrf_to_nrf for incompatible platforms because there is no platforms stipulation on the nrf_to_nrf dep.

My local attempts (compiling for esp32 board as done in OP):
✅ RF24Network v1.0.17 & RF24Mesh v1.1.9
💥 RF24Network v1.0.18 & RF24Mesh v1.1.9
✅ RF24Network v2.0 (master) & RF24Mesh v2.0 (template-attempt2 branch)

@2bndy5
Copy link
Member

2bndy5 commented Jun 21, 2023

Just published RF24Network v1.0.19 and it is working again for non-nordic boards.

[env]
lib_deps = 
    nrf24/RF24Network @ 1.0.19
    nrf24/RF24Mesh @ 1.1.9

[env:qtpy-esp32]
platform = espressif32
framework = arduino
board = adafruit_qtpy_esp32

Unfortunately, I'm too late to retract the RF24Network v1.0.18 release. According to the PIO docs:

You can only remove a package version within 72 hours from the published date.

I'm closing this now that it should be resolved with the new releases of nrf2nrf and RF24Network.

@2bndy5 2bndy5 closed this as completed Jun 21, 2023
@shyney7
Copy link
Author

shyney7 commented Jun 21, 2023

Just published RF24Network v1.0.19 and it is working again for non-nordic boards.

[env]
lib_deps = 
    nrf24/RF24Network @ 1.0.19
    nrf24/RF24Mesh @ 1.1.9

[env:qtpy-esp32]
platform = espressif32
framework = arduino
board = adafruit_qtpy_esp32

Unfortunately, I'm too late to retract the RF24Network v1.0.18 release. According to the PIO docs:

You can only remove a package version within 72 hours from the published date.

I'm closing this now that it should be resolved with the new releases of nrf2nrf and RF24Network.

Thanks for the fast solution to this issue. It works now!

@2bndy5
Copy link
Member

2bndy5 commented Jun 21, 2023

@TMRh20 I was also (finally) able to get the PIO CI working again. Apparently, all named deps of a lib are installed to global storage (pio pkg install -g) despite any platform-specificity for said lib deps. This means that installing RF24Network via

pio pkg install -g nrf24/RF24Network

will install nrf_to_nrf if there is no platformio.ini file to declare the project's platform. For projects using global storage, the recommended CI approach is to skip lib dependencies and install them manually.

# note the order matters here
pio pkg install -g -f --skip-dependencies -l nrf24/RF24Mesh
pio pkg install -g -f --skip-dependencies -l nrf24/RF24Network
pio pkg install -g -f --skip-dependencies -l nrf24/RF24

Warning
Global storage is officially discouraged by PIO. Probably because pio needs additional info from platformio.ini (like platform).

Our CI is a special case because we don't maintain a platformio.ini file for building the Arduino examples. Instead we specify the board/platform via pio ci ... to build our examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants