Comments (13)
You have an outdated version of RadioLib (6.1.0) which is nearly a year old at this point, so the first thing to try is update to the latest one (6.5.0). I wouldn't be surprised if the error goes away as that particular part of the library has been reworked. If it doesn't, please post an update.
from radiolib.
6.5.0 generates the same error (only changes line from "/RadioLib/src/Module.cpp:163:11" to "/RadioLib/src/Module.cpp:167:11"
I disabled all radiolib and initiations and all..... so when adding it as platformio library only it still produces the error
from radiolib.
Can you also try with the current master?
I disabled all radiolib and initiations and all..... so when adding it as platformio library only it still produces the error
It's a compilation error, removing initializations will have no effect on it.
from radiolib.
I have some ideas but having the issues template filled in, formatted, with an un-redacted compile log would help immensely. Otherwise my advanced guessing skills based on information supplied is that there is an assert warning earlier that will clearly state the problem.
from radiolib.
I have some ideas but having the issues template filled in, formatted, with an un-redacted compile log would help immensely. Otherwise my advanced guessing skills based on information supplied is that there is an assert warning earlier that will clearly state the problem.
sorry, but how can I generate the log to post?
Can you also try with the current master?
I disabled all radiolib and initiations and all..... so when adding it as platformio library only it still produces the error
It's a compilation error, removing initializations will have no effect on it.
I replace :
jgromes/RadioLib @ 6.5.0
for:
https://github.com/jgromes/RadioLib.git
which downloads few more stuff and processed to compile and got this:
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp: In member function 'int16_t LoRaWANNode::processCFList(uint8_t*)': .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2393:75: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].enabled = true; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2394:75: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].idx = chIndex; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2395:75: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].freq = freq; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2396:75: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].drMin = minDr; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2397:75: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].drMax = maxDr; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2400:149: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK][chIndex] = this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ .pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2400:79: error: array subscript is above array bounds [-Werror=array-bounds] this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK][chIndex] = this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex];
but the other warning/error messages got away when compiling
from radiolib.
but how can I generate the log to post?
It's just the compile output / log / messages - you've done it twice now but each time you've just provided the bits you think are important rather than all of it.
As I can compile for nRF using the Nordic toolchain just fine, we need to find out what the differences are for you.
from radiolib.
but how can I generate the log to post?
It's just the compile output / log / messages - you've done it twice now but each time you've just provided the bits you think are important rather than all of it.
As I can compile for nRF using the Nordic toolchain just fine, we need to find out what the differences are for you.
should I paste the complete output of compilation from VSCODE as a full log?
from radiolib.
should I paste the complete output of compilation from VSCODE as a full log?
As above: "each time you've just provided the bits you think are important rather than all of it"
So yes, the full log as it will allow use to find out what the differences are for you.
from radiolib.
Processing t_echo (board: nrf52840_dk_adafruit; platform: nordicnrf52; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/nrf52840_dk_adafruit.html
PLATFORM: Nordic nRF52 (10.4.0) > Nordic nRF52840-DK (Adafruit BSP)
HARDWARE: NRF52840 64MHz, 243KB RAM, 796KB Flash
DEBUG: Current (jlink) On-board (jlink) External (blackmagic, cmsis-dap, stlink)
PACKAGES:
- framework-arduinoadafruitnrf52 @ 1.10600.0 (1.6.0)
- framework-cmsis @ 2.50700.210515 (5.7.0)
- tool-adafruit-nrfutil @ 1.503.0 (5.3)
- tool-sreccat @ 1.164.0 (1.64)
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 15 compatible libraries
Scanning dependencies...
Dependency Graph
|-- TinyGPSPlus @ 1.0.3
|-- RadioLib @ 6.5.0+sha.7209690
|-- SPI @ 1.0
Building in release mode
Compiling .pio/build/t_echo/lib286/RadioLib/protocols/LoRaWAN/LoRaWAN.cpp.o
Compiling .pio/build/t_echo/FrameworkArduino/wiring_analog_nRF52.c.o
Compiling .pio/build/t_echo/FrameworkArduino/wiring_digital.c.o
Compiling .pio/build/t_echo/FrameworkArduino/wiring_private.c.o
Compiling .pio/build/t_echo/FrameworkArduino/wiring_shift.c.o
Archiving .pio/build/t_echo/libFrameworkArduino.a
Indexing .pio/build/t_echo/libFrameworkArduino.a
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp: In member function 'int16_t LoRaWANNode::processCFList(uint8_t*)':
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2393:75: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].enabled = true;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2394:75: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].idx = chIndex;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2395:75: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].freq = freq;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2396:75: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].drMin = minDr;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2397:75: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex].drMax = maxDr;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2400:149: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK][chIndex] = this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
.pio/libdeps/t_echo/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:2400:79: error: array subscript is above array bounds [-Werror=array-bounds]
this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK][chIndex] = this->availableChannels[RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK][chIndex];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
*** [.pio/build/t_echo/lib286/RadioLib/protocols/LoRaWAN/LoRaWAN.cpp.o] Error 1
=========================================================== [FAILED] Took 3.86 seconds ===========================================================
* The terminal process "platformio 'run', '--environment', 't_echo'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Edit to format as code
from radiolib.
The BSP's for SAMD vs nRF52 are rather odd. The nRF52 has a more recent CMSIS but a far older compiler. The SAMD (aka Adafruit Feather M0) compiles with no errors and yes, now I can see errors for the nRF52 with the same setup as you. But it will end up compiling if you remove -Werror. As I don't own a T-ECHO I can't test it, but you can if you remove the compile flag, you may get lucky.
from radiolib.
The BSP's for SAMD vs nRF52 are rather odd. The nRF52 has a more recent CMSIS but a far older compiler. The SAMD (aka Adafruit Feather M0) compiles with no errors and yes, now I can see errors for the nRF52 with the same setup as you. But it will end up compiling if you remove -Werror. As I don't own a T-ECHO I can't test it, but you can if you remove the compile flag, you may get lucky.
I deleted -Werror -Wall and will test how it goes as it clearly compiles without any warning now :P
from radiolib.
so, maybe I'm just lucky or you are making magic code :P
but with both library importing (without -Werror -Wall) :
- jgromes/RadioLib @ 6.5.0
or - https://github.com/jgromes/RadioLib.git
although it still make some warnings they both make T-Echo with SX1262 and NRF52840 runs well
thanks!!!
from radiolib.
Thanks for the feedback that it runs OK - I've no magic code, I was getting 'odd' warnings with the nRF toolchain that matched what you were seeing but had no way to test.
from radiolib.
Related Issues (20)
- Examples not running on seed studio XIAO esp32C3 HOT 7
- Extra bits after the message using RFM69HCW module on feather 32u4 HOT 5
- RadioLib not compile for Arduino Nano ESP32 HOT 3
- RSSI bug in PhysicalLayer? also getFrequencyError() seems missing HOT 3
- DreamLNK LLCC68-915MHz with ESP32/Pico SPI error HOT 11
- [Issue: Module not working]: No more communication after "[SX1262] Initializing ..." HOT 9
- RADIOLIB_LORAWAN_NO_DOWNLINK when calling activateOTAA() with Tock setup HOT 34
- [Bug,radiolib] wrong CMD_CalibrateImage sx1262 HOT 1
- Undocumented register sx1262 HOT 1
- [LR11x0] IRQ is always applied to DIO9. DIO11 is not supported as an event signal yet. HOT 4
- LinkCheck & DeviceTime HOT 1
- DevNonce is too small : BUG HOT 14
- [LoRaWAN] Nonces cannot be restored if device never succeeded to join
- startTransmit make data arg constant HOT 2
- error: missing binary operator before token "(" #if !defined(ESP_IDF_VERSION) || (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5,0,0)) HOT 2
- Request for Robot36 and Robot72 in SSTV HOT 3
- LR1110 anomalously high SNR HOT 15
- AX.25 Reception does not work properly HOT 2
- [SX1268]: Failure on sending LoRa-Packets HOT 2
- Transmitting SSTV with SX1268 suddenly breaks above 432 MHz HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiolib.