Skip to content

Making arduino-lmic competible with arduino-esp32-2.0 #714

Closed
@chansheunglong

Description

@chansheunglong

I recently updated the arduino-esp32 to version 2.0 and when compiling the program

...\esp32\hardware\esp32\2.0.0-alpha1/tools/sdk/esp32/lib\libpp.a(hal_mac.o): in function hal_init': (.text.hal_init+0x100): multiple definition of hal_init';
...\MCCI_LoRaWAN_LMIC_library\src\hal/hal.cpp:416: first defined here
collect2.exe: error: ld returned 1 exit status

Seems like the new version of arduino-esp32 (2.0) will not be compatible with arduino-lmic because of the same definition of a function.

Since ESP32 is quite a popular platform and making LMIC and ESP32 not able to work together is sad news, will it be possible for arduino-lmic to add an option, e.g. #DEFINE_USE_ESP32, to alter the naming of the function so there will be no multiple definition?

The old version of arduino-esp32 (1.6) works with arduino-lmic

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions