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)
- Sending more than one message in POCSAG HOT 1
- 'virtual float PhysicalLayer::getRSSI()' was hidden ESP-IDF HOT 10
- Feature request: AX.25 parser HOT 4
- Think I introduced a bug with Promiscuous (requireCarrierSense) when used with directMode HOT 2
- Move Raspberry Pi example to another GPIO library HOT 11
- Better error handling in the HAL HOT 3
- CC1101 Direct Mode getRSSI() only ever returns -74.0 HOT 2
- SX1280 startTransmit after CAD not working HOT 4
- Move examples to a separate repository HOT 14
- Invalid calibrateImage parameters prevent initializing with 915MHz frequency on SX126x-based STM32WLx HOT 2
- #include <Radiolib/SX1262.h> is available to use less space than the hole library? HOT 1
- Minor issue in startReceiveDutyCycleAuto HOT 3
- GFSK support for SX1231/RFM69 and SX127x/RFM9x HOT 2
- Support for MSPM0 Microcontroller HOT 1
- STM8 Arduino HOT 2
- This line cause errors when build HOT 1
- AFSK not working on LILYGO T3_V1.6.1 HOT 2
- Examples not running on seed studio XIAO esp32C3 HOT 6
- Extra bits after the message using RFM69HCW module on feather 32u4 HOT 5
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.