nRF24 / RF24Mesh

OSI Layer 7 Mesh Networking for RF24Network & nrf24L01+ & nrf52x devices
http://nrf24.github.io/RF24Mesh
GNU General Public License v2.0
421 stars 154 forks source link

nrf_to_nrf dependency is causing compiler errors in platformio #228

Closed shyney7 closed 8 months ago

shyney7 commented 8 months ago

The nrf_to_nrf library dependency is causing compiler errors like nrf_to_nrf/src/nrf_to_nrf.cpp:102:5: error: 'NRF_RADIO' was not declared in this scope to occur. This library is installed automatically when installing the RF24Mesh library in platformio. I've tried several versions of the nrf_to_nrf library but the only solution was to delete the library completely.

console output ### compiler errors: ```shell * Executing task: C:\Users\olivei_m\.platformio\penv\Scripts\platformio.exe run Processing lilygo-t-display-s3 (platform: espressif32; board: lilygo-t-display-s3; framework: arduino) -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------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 |-- CircularBuffer @ 1.3.3 |-- Button2 @ 2.2.4 |-- RF24Mesh @ 2.0.0 |-- nrf_to_nrf @ 1.2.6 |-- TFT_eSPI @ 2.5.0 |-- TouchLib @ 0.0.1 |-- RF24 @ 1.4.8 |-- RF24Network @ 2.0.0 |-- SPI @ 2.0.0 |-- Wire @ 2.0.0 Building in release mode Compiling .pio\build\lilygo-t-display-s3\src\main.cpp.o Building .pio\build\lilygo-t-display-s3\bootloader.bin Generating partitions .pio\build\lilygo-t-display-s3\partitions.bin esptool.py v4.5.1 Creating esp32s3 image... Merged 1 ELF section Successfully created esp32s3 image. Compiling .pio\build\lilygo-t-display-s3\libfdd\Button2\Button2.cpp.o Compiling .pio\build\lilygo-t-display-s3\libe64\SPI\SPI.cpp.o Compiling .pio\build\lilygo-t-display-s3\lib69b\RF24\RF24.cpp.o Compiling .pio\build\lilygo-t-display-s3\lib6ef\nrf_to_nrf\nrf_to_nrf.cpp.o In file included from lib/TFT_eSPI/TFT_eSPI.h:94, from include/graph.h:16, from src/main.cpp:9: lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:11:3: warning: #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) [-Wcpp] #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) ^~~~~~~ In file included from lib/TFT_eSPI/TFT_eSPI.h:94, from include/graph.h:16, from src/main.cpp:9: lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:369:52: warning: backslash and newline separated by space xset_mask[c] = 0; \ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:377:66: warning: backslash and newline separated by space if ( c & 0x80 ) xset_mask[c] |= (1 << (TFT_D7-MASK_OFFSET)); \ In file included from include/graph.h:16, from src/main.cpp:9: lib/TFT_eSPI/TFT_eSPI.h:953:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp] #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! ^~~~~~~ Compiling .pio\build\lilygo-t-display-s3\lib97d\RF24Network\RF24Network.cpp.o Archiving .pio\build\lilygo-t-display-s3\libe64\libSPI.a Indexing .pio\build\lilygo-t-display-s3\libe64\libSPI.a Compiling .pio\build\lilygo-t-display-s3\lib43a\RF24Mesh\RF24Mesh.cpp.o Compiling .pio\build\lilygo-t-display-s3\libdd1\FS\FS.cpp.o Archiving .pio\build\lilygo-t-display-s3\libfdd\libButton2.a Compiling .pio\build\lilygo-t-display-s3\libdd1\FS\vfs_api.cpp.o Indexing .pio\build\lilygo-t-display-s3\libfdd\libButton2.a .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp: In function 'uint32_t addr_conv(const uint8_t*)': .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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Archiving .pio\build\lilygo-t-display-s3\lib69b\libRF24.a .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); ^~~~~~~~~~~~~~~~~~~~~~ Indexing .pio\build\lilygo-t-display-s3\lib69b\libRF24.a .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, bool)': .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:591: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:591: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:599: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:599: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: In member function 'void nrf_to_nrf::startListening(bool)': .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:661: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:661: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:684: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:684: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:716: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:716: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:727: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:727: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:731: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:731: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:767: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:767: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:767: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:767: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:767: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:771: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:771: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:771: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:771: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); ^~~~~~~~~~~~~~~~~~~~~ Compiling .pio\build\lilygo-t-display-s3\lib260\SPIFFS\SPIFFS.cpp.o .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:771: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:773: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:773: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:773: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:773: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:773: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:773: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:773: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:773: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:773: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:787: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:787: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:787: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:787: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:787: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:789: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:789: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:789: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); ^~~~~~~~~~~~~~~~~~~~~~ Compiling .pio\build\lilygo-t-display-s3\lib3e9\LittleFS\LittleFS.cpp.o .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:789: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); ^~~~~~~~~~~~~~~~~~~~~~ Archiving .pio\build\lilygo-t-display-s3\lib97d\libRF24Network.a .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:789: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:789: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); ^~~~~~~~~~~~~~~~~~~~~~~ Indexing .pio\build\lilygo-t-display-s3\lib97d\libRF24Network.a .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:789: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:803: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:803: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:803: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:803: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:803: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:805: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:805: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:805: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:805: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:805: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:805: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:805: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:839: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:839: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:844: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:844: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:849: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:849: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:853: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:853: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:872: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:872: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:898: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:898: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:903: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:903: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:908: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:908: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:912: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:912: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:932: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:932: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::txStandBy()': .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:944:8: error: 'NRF_RADIO' was not declared in this scope if(NRF_RADIO->STATE == 11){ ^~~~~~~~~ .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:944:8: note: suggested alternative: 'NRF_PA_LOW' if(NRF_RADIO->STATE == 11){ ^~~~~~~~~ NRF_PA_LOW .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:949: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:949: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::txStandBy(uint32_t, bool)': .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:963:8: error: 'NRF_RADIO' was not declared in this scope if(NRF_RADIO->STATE == 11){ ^~~~~~~~~ .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:963:8: note: suggested alternative: 'NRF_PA_LOW' if(NRF_RADIO->STATE == 11){ ^~~~~~~~~ NRF_PA_LOW .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:968: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:968: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::setDataRate(uint8_t)': .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1006: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:1006: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:1006: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:1006: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:1006: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:1010: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:1010: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:1010: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); ^~~~~~~~~~~~~~~~~~~~~~~~~ .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1010: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:1010: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:1035: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:1035: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:1043: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:1043: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:1075: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:1075: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:1075: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:1080: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:1080: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:1080: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:1085: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:1085: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:1095: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:1095: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:1098: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:1111: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:1111: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::powerDown()': .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1141:5: error: 'NRF_RADIO' was not declared in this scope NRF_RADIO->POWER = 0; ^~~~~~~~~ .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1141:5: note: suggested alternative: 'NRF_PA_LOW' NRF_RADIO->POWER = 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:1155: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:1155: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:1155: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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling .pio\build\lilygo-t-display-s3\lib118\TFT_eSPI\TFT_eSPI.cpp.o Archiving .pio\build\lilygo-t-display-s3\lib43a\libRF24Mesh.a .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1155: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:1155: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:1155: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); ^~~~~~~~~~~~~~~~~~~~~~ Indexing .pio\build\lilygo-t-display-s3\lib43a\libRF24Mesh.a .pio/libdeps/lilygo-t-display-s3/nrf_to_nrf/src/nrf_to_nrf.cpp:1155: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:1155: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:1155: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:1165: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:1165: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:1104:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Compiling .pio\build\lilygo-t-display-s3\lib34d\Wire\Wire.cpp.o Compiling .pio\build\lilygo-t-display-s3\libdac\TouchLib\TouchLibInterface.cpp.o *** [.pio\build\lilygo-t-display-s3\lib6ef\nrf_to_nrf\nrf_to_nrf.cpp.o] Error 1 In file included from lib/TFT_eSPI/TFT_eSPI.h:94, from lib/TFT_eSPI/TFT_eSPI.cpp:16: lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:11:3: warning: #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) [-Wcpp] #warning >>>>------>> DMA is not supported on the ESP32 S3 (possible future update) ^~~~~~~ In file included from lib/TFT_eSPI/TFT_eSPI.h:94, from lib/TFT_eSPI/TFT_eSPI.cpp:16: lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:369:52: warning: backslash and newline separated by space xset_mask[c] = 0; \ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:377:66: warning: backslash and newline separated by space if ( c & 0x80 ) xset_mask[c] |= (1 << (TFT_D7-MASK_OFFSET)); \ In file included from lib/TFT_eSPI/TFT_eSPI.cpp:16: lib/TFT_eSPI/TFT_eSPI.h:953:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp] #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! ^~~~~~~ In file included from lib/TFT_eSPI/User_Setup_Select.h:131, from lib/TFT_eSPI/TFT_eSPI.h:68, from lib/TFT_eSPI/TFT_eSPI.cpp:16: lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c: In member function 'uint8_t TFT_eSPI::readByte()': lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:26:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D0 39 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:106:16: note: in expansion of macro 'TFT_D0' b = (((reg>>TFT_D0)&1) << 0); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:27:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D1 40 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:107:16: note: in expansion of macro 'TFT_D1' b |= (((reg>>TFT_D1)&1) << 1); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:28:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D2 41 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:108:16: note: in expansion of macro 'TFT_D2' b |= (((reg>>TFT_D2)&1) << 2); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:29:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D3 42 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:109:16: note: in expansion of macro 'TFT_D3' b |= (((reg>>TFT_D3)&1) << 3); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:30:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D4 45 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:110:16: note: in expansion of macro 'TFT_D4' b |= (((reg>>TFT_D4)&1) << 4); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:31:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D5 46 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:111:16: note: in expansion of macro 'TFT_D5' b |= (((reg>>TFT_D5)&1) << 5); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:32:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D6 47 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:112:16: note: in expansion of macro 'TFT_D6' b |= (((reg>>TFT_D6)&1) << 6); ^~~~~~ lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h:33:16: warning: right shift count >= width of type [-Wshift-count-overflow] #define TFT_D7 48 ^~ lib/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:113:16: note: in expansion of macro 'TFT_D7' b |= (((reg>>TFT_D7)&1) << 7); ^~~~~~ ============================================================================== [FAILED] Took 18.80 seconds ============================================================================== ```

ini:

[env:lilygo-t-display-s3]
platform = espressif32
board = lilygo-t-display-s3
framework = arduino
lib_deps = 
    rlogiacco/CircularBuffer@^1.3.3
    lennarthennigs/Button2@^2.2.4
    nrf24/RF24Mesh@^2.0.0
build_flags = '-DARDUINO_USB_MODE=1' '-DARDUINO_USB_CDC_ON_BOOT=1'

Platformio Core 6.1.11·Home 3.4.4

All libraries are installed project wise

2bndy5 commented 8 months ago

RF24Mesh doesn't actually require nrf_to_nrf lib installed (as you can check in RF24Mesh's v2.0.0 library.json). However, RF24Network's v2.0 library.json does name a dependency on nrf_to_nrf library for the nordicnrf52 platform. This shouldn't be applicable for apps built on other platforms (like ESP32 in your case), and the #include <nrf_to_nrf.h> is guarded with https://github.com/nRF24/RF24Mesh/blob/38ee0225c336349fab513907f9798d308d2db497/RF24Mesh.h#L44-L46

For the nrf_to_nrf v1.2.2 library.json, there was a named dependency on a certain branch of RF24Mesh, but that dependency specification has been removed as of v1.2.6 library.json (& the RF24Mesh branch has been deleted).

  1. Can you provide your project's platformio.ini file? This case was a specific concern when we released v2.0 of the network layers.
  2. Are you installing libraries globally in PIO? The build logs you posted don't seem to indicate this, but I thought I'd ask anyway.
  3. Lastly, what version of PlatformIO are you using? I'm wondering if an older version does not respect the platforms field of the nrf_to_nrf dependency in RF24Network's v2.0 library.json.
shyney7 commented 8 months ago
  1. [env:lilygo-t-display-s3]
    platform = espressif32
    board = lilygo-t-display-s3
    framework = arduino
    lib_deps = 
    rlogiacco/CircularBuffer@^1.3.3
    lennarthennigs/Button2@^2.2.4
    nrf24/RF24Mesh@^2.0.0
    build_flags = '-DARDUINO_USB_MODE=1' '-DARDUINO_USB_CDC_ON_BOOT=1'
  2. all my libraries are installed project wise
  3. Core 6.1.11·Home 3.4.4

@2bndy5

The nrf_to_nrf library is beeing installed although I've selected a esp board: grafik

2bndy5 commented 8 months ago

Thanks for answering my questions. I don't see any problems other than the platform-specific dependency getting installed (which is not intended).

I feel like this is a bug in PIO core itself. I see they had a similar problem in the past, but that was fixed in v6.1.0.

According to the docs about library dependencies, we are doing everything right as far as I can tell.

2bndy5 commented 8 months ago

Does it help to add RF24 & RF24Network to your project's lib_deps (preferably before RF24Mesh in the list)?

lib_deps = 
  rlogiacco/CircularBuffer@^1.3.3
  lennarthennigs/Button2@^2.2.4
  nrf24/RF24@^1.4.8
  nrf24/RF24Network@^2.0.0
  nrf24/RF24Mesh@^2.0.0

Maybe the PIO LDF is losing the platform info as it seeks dependencies of dependencies.

Update

I tried the above config in a new PIO project (for board = adafruit_qtpy_esp32s2) and got expected results: RF24 installed and nrf_to_nrf is not installed.

pio --version
PlatformIO Core, version 6.1.11

@shyney7 I also tried your current config in a new PIO project and was not able to reproduce this problem. I suggest you delete your .pio folder and try building again (because that's what I did when changing the config).

shyney7 commented 8 months ago

@2bndy5 Ok I did a full clean of the build environment and everything works now. I really dont know what caused this behavior in the first place!? Thank you for your support.

2bndy5 commented 8 months ago

Still its good that reported it. At least I have better advice now if someone else comes across this problem.

NorbertSandor commented 7 months ago

https://github.com/nRF24/RF24Mesh/issues/228#issuecomment-1811431278

This workaround does not work for me :(

RF24Mesh doesn't actually require nrf_to_nrf lib installed

Based on this comment, I tried

lib_ignore =
    nrf_to_nrf

and the code compiles. Do you think it is correct to exclude nrf_to_nrf altogether?

2bndy5 commented 7 months ago

It is certainly an acceptable workaround for projects that don't use nRF52 boards, but we made sure the dependencies are specifically and conditionally stated.

@NorbertSandor I have some questions:

  1. What is your platformio.ini file look like?
  2. Are you sure you completely removed/deleted your .pio folder in the project root folder?
  3. What version of PlatformIO core are you using?
NorbertSandor commented 7 months ago

@2bndy5 Deleting the .pio folder solved the problem, sorry for being inattentive :| Now it compiles without lib_ignore - thanks.