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

Compiling #12

Closed
vinouz opened this issue Apr 6, 2024 · 9 comments
Closed

Compiling #12

vinouz opened this issue Apr 6, 2024 · 9 comments

Comments

@vinouz
Copy link

vinouz commented Apr 6, 2024

Hello,

When I try to compile the e-ink module (Wireless Paper with LCMEN2R13EFC1 display), I always get the compile error message :

/Users/B/Documents/Arduino/libraries/heltec-eink-modules/src/Platforms/WirelessPaper/power_controls.cpp: In function 'void Platform::prepareToSleep()':
/Users/B/Documents/Arduino/libraries/heltec-eink-modules/src/Platforms/WirelessPaper/power_controls.cpp:81:9: error: 'gpio_hold_en' was not declared in this scope; did you mean 'gpio_mode_t'?
81 | gpio_hold_en((gpio_num_t) PIN_LORA_NSS); // "stay where you're told"
| ^~~~~~~~~~~~
| gpio_mode_t

Is there a way to solve this ?

@todd-herbert
Copy link
Owner

Thank you for bringing this to my attention. It seems that the latest firmware released by Heltec (v3.0.0-alpha) has made some changes. I will look into this now.

In the meantime, you should be able to downgrade to the previous release (v1.0.1) by change the url in the Arduino IDE board manager to https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/1.0.1/package_heltec_esp32_index.json

@todd-herbert
Copy link
Owner

It seems that there may be significant changes and/or bugs in Heltec's version 3.0.0-alpha. I will continue to investigate this in the future.

Arduino IDE users should continue to use v1.0.1 of Heltec ESP32 Series Dev Boards from the board manager.
The Getting started with Wireless Paper guide has been updated to mention this.

PlatformIO users can continue as usual.

@todd-herbert
Copy link
Owner

Hopefully all fixed with v4.3.0 release, available shortly in Arduino IDE. Any issues, please let me know!

@Glenno-H
Copy link

Hi Todd,

I think I may still be getting the error with Heltec 3.0.0 Firmware, Heltec ESP32 Dev-Boards Library and eink 4.3.0 when trying to use LORA and the eInk Library at the same time.

Please let me know if there is any information I can provide to asisst. Thanks!

o:\OneDrive\Projects\Microcontroller\C\libraries\heltec-eink-modules\src\Platforms\WirelessPaper\power_controls.cpp: In function 'void Platform::prepareToSleep()':
o:\OneDrive\Projects\Microcontroller\C\libraries\heltec-eink-modules\src\Platforms\WirelessPaper\power_controls.cpp:80:9: error: 'gpio_hold_en' was not declared in this scope; did you mean 'gpio_mode_t'?
80 | gpio_hold_en((gpio_num_t) PIN_LORA_NSS); // "stay where you're told"
| ^~~~~~~~~~~~
| gpio_mode_t
Multiple libraries were found for "SD.h"
Used: C:\Users\sirgo\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\libraries\SD
Not used: C:\Users\sirgo\AppData\Local\Arduino15\libraries\SD

Using library heltec-eink-modules at version 4.3.0 in folder: O:\OneDrive\Projects\Microcontroller\C\libraries\heltec-eink-modules
Using library SPI at version 2.0.0 in folder: C:\Users\sirgo\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\libraries\SPI
Using library SD at version 2.0.0 in folder: C:\Users\sirgo\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\libraries\SD
Using library FS at version 2.0.0 in folder: C:\Users\sirgo\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\libraries\FS
Using library Heltec ESP32 Dev-Boards at version 2.0.1 in folder: O:\OneDrive\Projects\Microcontroller\C\libraries\Heltec_ESP32_Dev-Boards
Using library Wire at version 2.0.0 in folder: C:\Users\sirgo\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\libraries\Wire

@todd-herbert todd-herbert reopened this Apr 16, 2024
@todd-herbert
Copy link
Owner

@Glenno-H That's definitely got me a bit confused! Hopefully can figure out why the gpio_hold_en() method isn't found in this case.

Just gathering some more information:

  • What version of the Arduino IDE are you using?
  • Which board type is selected in the Arduino IDE?

It might help to "clean" the project, to force everything to rebuild. In Arduino IDE, one way to do this is to change to a different board type (such as Arduino Uno), attempt to build (will likely fail), then swap back to the correct board and try again.

The gpio_hold_en() method which is missing should automatically be found. If the issue remains after "cleaning the project", you could try manually adding the line #include <driver/gpio.h> at the very start of your sketch. Please do let me know the result of adding this line.

@todd-herbert
Copy link
Owner

Oh, I can see an error actually when using Heltec's LoRa library. I think I missed this one because I personally prefer the RadioLib library for LoRa.

I'll see if there's an easy fix for the conflict.

@Glenno-H
Copy link

Glenno-H commented Apr 16, 2024

Thanks heaps for your quick reply Todd! Really Appreciate it!

Arduino IDE Version : 2.3.2
The board is the "Wireless Paper" from the Heltec ESP32 Dev-Boards.

I tried the cleaning trick you suggested plus the include option, and sadly they didnt work.

It would be super if you are able to find a quick fix! Ill also check out "RadioLib" as an alterative way to get it going.

Thanks again!

Board_Version
Arduino_IDE_Version

@todd-herbert
Copy link
Owner

Thanks for following up with that info!

I'm pretty sure I've spotted the issue now: a file in the "Heltec ESP32 Dev-Boards Library" has the same name as a file in the "Heltec 3.0.0 Firmware". When asking for this file, we are getting the file from the library, rather than the file we want from the firmware.

I've added a quick work-around which seems to distinguish between the two. It doesn't seem to have break anything..

Let me know if v4.3.1 sorts the issue for you. It'll probably take a few hours to show up in the Arduino IDE library manager, or you can grab it right now as a zip

@Glenno-H
Copy link

Works perfect! Thanks again!

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

3 participants