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

LoRA WAN LMIC improvement #268

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

LoRA WAN LMIC improvement #268

wants to merge 4 commits into from

Conversation

hpsaturn
Copy link
Member

  • fixed conflicts and PRs merged from @roberbike
  • removed LMIC library files
  • missing implementation of this library (missing LoRaWANSetup(); ??)
  • issue: build fail for axp20x.h missing (maybe we need check the previous bullet)

@hpsaturn hpsaturn requested a review from roberbike October 17, 2023 07:44
@roberbike
Copy link
Member

Why do these warnings appear?

Archiving .pio\build\LORADEVKIT\libFrameworkArduino.a
Linking .pio\build\LORADEVKIT\firmware.elf
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function boardInit(InitType)': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam.h:113: multiple definition of boardInit(InitType)'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam.h:113: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function printChars(Print&, char, unsigned char, bool)': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:190: multiple definition of printChars(Print&, char, unsigned char, bool)'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:190: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function printSpaces(Print&, unsigned char, bool)': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:203: multiple definition of printSpaces(Print&, unsigned char, bool)'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:203: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function printHex(Print&, unsigned char*, unsigned int, bool, char)': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:209: multiple definition of printHex(Print&, unsigned char*, unsigned int, bool, char)'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:209: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function setTxIndicatorsOn(bool)': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:230: multiple definition of setTxIndicatorsOn(bool)'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:230: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function initSerial(unsigned long, short)': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:298: multiple definition of initSerial(unsigned long, short)'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:298: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function setup()': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.cpp:810: multiple definition of setup()'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/src/main.cpp:251: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o): in function loop()': C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.cpp:867: multiple definition of loop()'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/src/main.cpp:358: first defined here
c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o):C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam.h:99: multiple definition of serial'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam.h:99: first defined here c:/users/tecni/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/LORADEVKIT/lib54c/libLMIC-node.a(LMIC-node.cpp.o):C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam.h:85: multiple definition of lmic_pins'; .pio/build/LORADEVKIT/src/main.cpp.o:C:\Users\tecni\OneDrive\Documentos\platformio\canairio_firmware/.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam.h:85: first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\LORADEVKIT\firmware.elf] Error 1
=========================================== [FAILED] Took 544.58 seconds ===========================================

@hpsaturn
Copy link
Member Author

I have a different issue:

Compiling .pio/build/LORADEVKIT/lib2c4/batterylib/battery_oled.cpp.o
In file included from .pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.h:82,
                 from .pio/libdeps/LORADEVKIT/LMIC-node/src/LMIC-node.cpp:53:
.pio/libdeps/LORADEVKIT/LMIC-node/src/boards/bsf_ttgo_t_beam_v1.h:83:10: fatal error: axp20x.h: No such file or directory

****************************************************************
* Looking for axp20x.h dependency? Check our library registry!

but maybe is possible that is a duplicated header or include or definition, in your case. Do you have a different branch? or it happens with this branch? with LoRA_Wan_LMic_improv ?

@roberbike
Copy link
Member

Yes, the same branch LoRA_Wan_LMic_improv.
The same issue for ttgo_lora32_v1.
You can define ttgo_t_beam.h that does not use axp20.h and run with t_beam v1

Base automatically changed from devel to master January 8, 2024 17:09
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

Successfully merging this pull request may close these issues.

2 participants