HelTecAutomation / ESP32_LoRaWAN

Transplanted from Semtech LoRaWAN(https://github.com/Lora-net/LoRaMac-node) protocol to "ESP32 + Arduino" platform. Use RTC, support deep sleep, only working with ESP32 + LoRa boards made by HelTec Automation(TM). Need a unique license to use it.
344 stars 109 forks source link

Building example sketches failed (PlatformIO) #82

Open ade21 opened 2 years ago

ade21 commented 2 years ago

Hi there,

I am trying to build this example in a new PlatformIO project for my Hellten Wireless Stick: https://github.com/HelTecAutomation/ESP32_LoRaWAN/blob/master/examples/OTAA/OTAA.ino

I am getting the following error:

Bildschirmfoto 2022-06-09 um 22 11 21

Seems like this is a known issue in the Heltec forums: http://community.heltec.cn/t/error-compiling-example-esp32-v2/10327

Can anybody help me out here?

Cheers Andre

ameerhazo commented 2 years ago

Hi @ade21 I'm facing the same problem trying to build the sketch. Did you get it to work on your end?

Regards, Ameer

maxgerhardt commented 2 years ago

Can you try the (compile) fixed version from my PR #83? Use

lib_deps =
   https://github.com/maxgerhardt/ESP32_LoRaWAN/archive/refs/heads/master.zip

in the platformio.ini.

fabiano182 commented 2 years ago

Hi @maxgerhardt,

I was facing the same errors with rtc-board.c, your PR fixed them. But I'm with similar problems, following errors:

image

I'm trying to use FreeRTOS with core 0 (BLE Task) and core 1 (LoRa OTAA Task). Would you know how to help me?

Best regards, Fabiano

maxgerhardt commented 2 years ago

I think that's a loosing game, depending on what code you have compiled it will shift the object files in the memory space and then suddenly other call8 instructions have to be fixed than what's shown in your current error..

I've updated my fork with a few more fixes, so if you delete the .pio folder and build again it should hopefully show less errors. Try fixing the rest in the same way I did in the PR.

Heltec just needs to republish this library but compiled with -mlongcalls as they promised but not yet delivered to fix this properly.

fabiano182 commented 2 years ago

Thank you @maxgerhardt

Almost all errors with call8 gone away. My code still don't work but i think thats not library/Platformio problems.

Best regards, Fabiano