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

Hotfix linker error #83

Closed maxgerhardt closed 2 years ago

maxgerhardt commented 2 years ago

Trashes a8 register by loading the target function, then does a call using that register.

As described in https://sourceware.org/binutils/docs-2.32/as/Xtensa-Call-Relaxation.html

No idea if this works, just for reference.

To properly fix this error, please recompile that rtc-board.c file with the -mlongcalls option!

See #82

Completely untested. Might crash and burn.

maxgerhardt commented 2 years ago

Noooo, people reported it still doesn't work after these corrections in #82!! Was this tested on hardware before merge?

maxgerhardt commented 2 years ago

Please recompile the library with -mlongcalls properly from source!