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

Problems ESP32PICOD4 #32

Open
Lordcybertracker opened this issue May 28, 2022 · 1 comment
Open

Problems ESP32PICOD4 #32

Lordcybertracker opened this issue May 28, 2022 · 1 comment

Comments

@Lordcybertracker
Copy link

Hello,
I use an ESP32 Pico D4 and an RFM95.
The last time I used it everything worked.
But now I get the following error in the Arduino IDE as well as PlatformIO:

pin map is:
#define PIN_LMIC_NSS 5
#define PIN_LMIC_RST 14
#define PIN_LMIC_DIO0 25
#define PIN_LMIC_DIO1 37
#define PIN_LMIC_DIO2 38

// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = PIN_LMIC_NSS,
.rxtx = LMIC_UNUSED_PIN,
.rst = PIN_LMIC_RST,
.dio = {PIN_LMIC_DIO0, PIN_LMIC_DIO1, PIN_LMIC_DIO2},
};

Mistake:
Compiling .pio\build\pico32\src\main.cpp.o
Linking .pio\build\pico32\firmware.elf
c:/users/laval/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa -esp32-elf/bin/ld.exe: C:\Users\laval.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib\libpp.a(hal_mac.o): in function hal_init': (.text.hal_init+0xc8): multiple definition of hal_init'; .pio\build\pico32\lib051\libMCCI LoRaWAN LMIC library.a(hal.cpp.o):C:\Users\laval\Documents\PlatformIO\Projects\HSN-TTN_Esp32 V1.1\HSN-TTN_Esp32 V1.1/ .pio/libdeps/pico32/MCCI LoRaWAN LMIC library/src/hal/hal.cpp:416: first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\pico32\firmware.elf] Error 1

Please how can I fix this because it can continue to work.
Thanks

@terrillmoore
Copy link
Member

Hi, can you try with https://github.com/mcci-catena/arduino-lmic? We should update this repo to match, but as you can possibly tell from the revision history, it hasn't had a lot of attention in the last few years.

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

2 participants