HelTecAutomation / CubeCell-Arduino

Heltec CubeCell Series (based on ASR6501, ASR6502 chip) Arduino support.
247 stars 138 forks source link

v0.0.5 : undefined references on compilation #66

Closed fredolaredo closed 4 years ago

fredolaredo commented 4 years ago

many compilation errors probably due to the renaming actions in 0.0.5 version, but I'm no expert -> no problem on the same code when going back to 0.0.4

(edit : code was adapted to the new naming convention prior to build)

/Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:149: undefined reference to `devEui'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:149: undefined reference to `appEui'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:149: undefined reference to `appKey'
/Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:98: undefined reference to `isTxConfirmed'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:98: undefined reference to `appPort'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:98: undefined reference to `confirmedNbTrials'
/Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:453: undefined reference to `loraWanClass'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:453: undefined reference to `loraWanAdr'
/Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `overTheAirActivation'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `devEui'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `appEui'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `appKey'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `devAddr'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `nwkSKey'
/Users/fred/Library/Arduino15/packages/CubeCell/tools/gcc-arm-none-eabi/8-2019-q3/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:533: undefined reference to `appSKey'
/Users/fred/Library/Arduino15/packages/CubeCell/hardware/CubeCell/0.0.5/libraries/LoRa/src/LoRaWan_APP.cpp:551: undefined reference to `loraWanClass'
/Users/fred/Dropbox/__Technologie/Arduino/libraries/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src/OLEDDisplay.cpp:855: undefined reference to `yield()'
D:\asr_lib/AT_Command.c:1127: undefined reference to `keepNet'
D:\asr_lib/AT_Command.c:1179: undefined reference to `keepNet'
D:\asr_lib/AT_Command.c:1260: undefined reference to `keepNet'
Heltec-Aaron-Lee commented 4 years ago

In this update, we have modified the names of some variables to make them more consistent with the style of Arduino.

Which example did you use?

wasn-eu commented 4 years ago

it can be so easy. change this line in your code

bool KeepNet = false;

to

bool keepNet = false;

please delete your keys and ids in your source when you upload them.