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

Building example sketches failed (PlatformIO) #82

Open
ade21 opened this issue Jun 10, 2022 · 5 comments
Open

Building example sketches failed (PlatformIO) #82

ade21 opened this issue Jun 10, 2022 · 5 comments

Comments

@ade21
Copy link

ade21 commented Jun 10, 2022

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
Copy link

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
Copy link
Contributor

maxgerhardt commented Jun 24, 2022

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
Copy link

fabiano182 commented Jun 24, 2022

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
Copy link
Contributor

maxgerhardt commented Jun 24, 2022

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
Copy link

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

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

4 participants