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

multiple definition of `hal_init'; #45

Closed
Raki22 opened this issue Jan 14, 2022 · 4 comments
Closed

multiple definition of `hal_init'; #45

Raki22 opened this issue Jan 14, 2022 · 4 comments

Comments

@Raki22
Copy link

Raki22 commented Jan 14, 2022

All good until I get to the 7th step of the README file:

  1. Open this project file main/main.ino with the Arduino IDE and upload it to your TTGO T-Beam.

I get this error message:

/home/rakilachraf/snap/arduino/61/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/rakilachraf/snap/arduino/61/.arduino15/packages/esp32/hardware/esp32/2.0.2/tools/sdk/esp32/lib/libpp.a(hal_mac.o): in function hal_init': (.text.hal_init+0xb4): multiple definition of hal_init'; libraries/MCCI_LoRaWAN_LMIC_library/hal/hal.cpp.o:/home/rakilachraf/snap/arduino/current/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/hal.cpp:416: first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board T-Beam.

Any help please...thanks in advance.

@wolfpcgn
Copy link

wolfpcgn commented Jan 26, 2022

Add: #define hal_init LMICHAL_init
to lmic_project_config.h

mcci-catena/arduino-lmic#714

@LevendSpacePeak
Copy link

That worked thanks, btw the correct setting on board setup for me was 40Mhz + 115200 baud (did not work with default setting 80 + 921600baud )

@kizniche
Copy link
Owner

kizniche commented Jul 3, 2022

Fixed in ae76501

@kizniche kizniche closed this as completed Jul 3, 2022
@afifkhoury2005
Copy link

Add: #define hal_init LMICHAL_init to lmic_project_config.h

mcci-catena/arduino-lmic#714

you made my day, thank you for resolving such issue, I was looking for a solution more than two days.

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

No branches or pull requests

5 participants