eiannone / Heltec_Esp32_LoRaWan

Arduino/Platformio LoRaWAN library for Heltec ESP32 boards
MIT License
12 stars 3 forks source link

LoRaWan not working #3

Open LucasCanete opened 2 months ago

LucasCanete commented 2 months ago

The code compiles fine but when i upload it to my Heltec WiFi LoRa V3 board the Serial Monitor shows the following error before doing a reboot:

joining...
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x4200508f  PS      : 0x00060830  A0      : 0x82004d9a  A1      : 0x3fcebda0  
A2      : 0x3fcebdd4  A3      : 0x3fcebdcc  A4      : 0x00000031  A5      : 0x00000000  
A6      : 0x3fcefc4c  A7      : 0x00000000  A8      : 0x00000000  A9      : 0x00000001  
A10     : 0x00000000  A11     : 0x3fc988c0  A12     : 0x3fc97391  A13     : 0x00000000  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000000  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000000  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffffd  

Backtrace: 0x4200508c:0x3fcebda0 0x42004d97:0x3fcebdc0 0x420022cb:0x3fcebe00 0x42001d7b:0x3fcebe40 0x42008925:0x3fcebe60

  #0  0x4200508c:0x3fcebda0 in LoRaMacConfirmQueueAdd at .pio/libdeps/heltec_wifi_lora_32_V3/Heltec_Esp32_LoRaWan/src/loramac/LoRaMacConfirmQueue.c:134
  #1  0x42004d97:0x3fcebdc0 in LoRaMacMlmeRequest at .pio/libdeps/heltec_wifi_lora_32_V3/Heltec_Esp32_LoRaWan/src/loramac/LoRaMac.c:3919
  #2  0x420022cb:0x3fcebe00 in LoRaWanClass::join() at .pio/libdeps/heltec_wifi_lora_32_V3/Heltec_Esp32_LoRaWan/src/LoRaWan_APP.cpp:608
  #3  0x42001d7b:0x3fcebe40 in loop() at src/main.cpp:629
  #4  0x42008925:0x3fcebe60 in loopTask(void*) at /home/lucas/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50

This is my platformio.ini file:


[env:heltec_wifi_lora_32_V3]
platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
lib_deps = 
    eiannone/Heltec_Esp32_LoRaWan@^0.7.0
    sensirion/Sensirion I2C SEN5X@^0.3.0
    sensirion/Sensirion Core@^0.7.1
    adafruit/Adafruit BME680 Library@^2.0.4
    eiannone/Heltec_Esp32_Display@^0.1.0
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
upload_speed = 921600
upload_protocol = esptool
build_flags = 
    -D WIFI_LORA_32_V3=true

    -D ACTIVE_REGION=LORAMAC_REGION_EU868
    -D LORAWAN_PREAMBLE_LENGTH=8
    -D LoRaWAN_DEBUG_LEVEL=3
    -D CORE_DEBUG_LEVEL=0
    -D LORAWAN_DEVEUI_AUTO=1

    -Wno-narrowing
    -lheltec_s3

Has anybody any clue on how to solve this?

djegum commented 5 days ago

I have the same problem. Have you solved the issue in the meantime?

LucasCanete commented 5 days ago

Yes I have solved it. It seems the newest version of esp idf - arduino is no longer supported by platformio which causes some problems with programs that rely on it.

To solve it decided to work with the arduino ide.

In preferences at the bottom where it says add aditional board manager URL add this link: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/0.0.7/package_heltec_esp32_index.json

Afterwards install the latest (V0.0.7)heltec esp32 board with the help of the board mamager and then you can just use the examples from heltec.