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

use an explicit pinmap on lora 32 v2 #942

Open
PromotezCitizen opened this issue Jun 28, 2023 · 1 comment
Open

use an explicit pinmap on lora 32 v2 #942

PromotezCitizen opened this issue Jun 28, 2023 · 1 comment
Assignees
Labels

Comments

@PromotezCitizen
Copy link

Hi.
I connect to heltec wifi lora 32 v2 use this project's example code.

I use example on Examples/MICC LoRaWAN LMIC library/ttn-otaa and I wrote pinmap like this

// Pin mapping
const lmic_pinmap lmic_pins = {
    .nss = 18,
    .rxtx = LMIC_UNUSED_PIN,
    .rst = 14,
    .dio = {26, 35, 34},
};

but when I verify code, below error occurred

c:\Users\Han\Documents\Arduino\libraries\MCCI_LoRaWAN_LMIC_library\src\hal\getpinmap_thisboard.cpp: In function 'const Arduino_LMIC::HalPinmap_t* Arduino_LMIC::GetPinmap_ThisBoard()':
c:\Users\Han\Documents\Arduino\libraries\MCCI_LoRaWAN_LMIC_library\src\hal\getpinmap_thisboard.cpp:71:72: note: #pragma message: Board not supported -- use an explicit pinmap
         #pragma message("Board not supported -- use an explicit pinmap")
                                                                        ^
c:/users/han/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Han\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7/tools/sdk/esp32/lib\libpp.a(hal_mac.o): in function `hal_init':
(.text.hal_init+0xb4): multiple definition of 'hal_init'; C:\Users\Han\AppData\Local\Temp\arduino\sketches\E683B30E6B4AE67100F408AD07719811\libraries\MCCI_LoRaWAN_LMIC_library\hal\hal.cpp.o:c:\Users\Han\Documents\Arduino\libraries\MCCI_LoRaWAN_LMIC_library\src\hal/hal.cpp:416: first defined here
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Why this error occurred?

Environment

  • Version of LMIC - 4.1.1
  • Version of Arduino IDE - 2.1.0
  • Network provider - The Things Network
  • Region - KR920
  • Board - Heltec Wi-Fi LoRa 32 v2
  • Radio - SX1276
@terrillmoore
Copy link
Member

You need to check the symbol defined for your board in the IDE, and compare to the symbols used in getpinmap_thisboard.cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants