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

Error: "__digitalRead(): IO 19 is not set as GPIO.", even with example code #163

Open
PKeidel opened this issue Aug 13, 2024 · 3 comments
Open

Comments

@PKeidel
Copy link

PKeidel commented Aug 13, 2024

Hi,
I am trying to use a C1101 to receive values from my water meters.

While testing with the most simple example "c1101_New_Receive_method_minimal" and the default pins, I got the following esp32 error:

[ 13][E][esp32-hal-gpio.c:190] __digitalRead(): IO 19 is not set as GPIO.

Is this problem already known?

I added some logging to "SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp" and the pinMode() calls in ELECHOUSE_CC1101::SpiStart do look correct.

  Serial.printf("SpiStart() outputs= %d, %d, %d; inputs:%d\n", SCK_PIN, MOSI_PIN, SS_PIN, MISO_PIN);

Prints: SpiStart() outputs= 18, 23, 5; inputs:19

FQBN: esp32:esp32:esp32doit-devkit-v1:DebugLevel=info,EraseFlash=all
Using board 'esp32doit-devkit-v1' from platform in folder: ...
Using core 'esp32' from platform in folder: ...

Using library SmartRC-CC1101-Driver-Lib at version 2.5.7 in folder: /home/.../Arduino/libraries/SmartRC-CC1101-Driver-Lib 
Using library SPI at version 3.0.4 in folder: /home/.../.arduino15/packages/esp32/hardware/esp32/3.0.4/libraries/SPI 


esptool.py v4.6
Chip is ESP32-D0WDQ6 (revision v0.0)
@panaak
Copy link

panaak commented Sep 28, 2024

I'm having a similar issue, have you figured something out?

@PKeidel
Copy link
Author

PKeidel commented Oct 9, 2024

I had no success. But a different error. Now I get:

E (1637) gpio: gpio_set_level(227): GPIO output gpio_num error
[  1652][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected

@dewenni
Copy link

dewenni commented Dec 1, 2024

@panaak @PKeidel @LSatan
any news on this topic?
I have the same problem in combination with Arduino V3.0.7 and ESP32

for all SPI PINs I get errors like this:
[esp32-hal-gpio.c:190] __digitalRead(): IO 19 is not set as GPIO.

but in general it seems to work. I can receive already some data, even with this error messages.

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