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

example Atom_TFCard program working but lots gpio_set_level(227) errors #87

Open
2 tasks done
colas-sebastien opened this issue Nov 16, 2024 · 2 comments
Open
2 tasks done

Comments

@colas-sebastien
Copy link

Describe the bug

When running the TFCard example with an M5Atom lite there are a lot of Errors in the logs, but it seems the program is working.

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
E (209) gpio: gpio_set_level(227): GPIO output gpio_num error
E (214) gpio: gpio_set_level(227): GPIO output gpio_num error
E (220) gpio: gpio_set_level(227): GPIO output gpio_num error
E (224) gpio: gpio_set_level(227): GPIO output gpio_num error
E (231) gpio: gpio_set_level(227): GPIO output gpio_num error
E (235) gpio: gpio_set_level(227): GPIO output gpio_num error
E (241) gpio: gpio_set_level(227): GPIO output gpio_num error
E (246) gpio: gpio_set_level(227): GPIO output gpio_num error
E (252) gpio: gpio_set_level(227): GPIO output gpio_num error
SD Card Type: SDHC
SD Card Size: 14910MB

There is a topic on the forum on the subject without any solution/workaround
https://community.m5stack.com/topic/6187/example-atom_tfcard-program-working-but-lots-gpio_set_level-227-errors

To reproduce

Just run the example ATOM_TFCard.ino with the TFcard reader attached to the M5Atom

Expected behavior

No error in the logs on Serial interface

Screenshots

No response

Environment

  • OS: Ubuntu 24.04
  • IDE &IDE Version: Aduino IDE 2.3.3

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details
@colas-sebastien
Copy link
Author

When setting the Core in log level DEBUG

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
[     4][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
M5Atom initializing...OK
[    84][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
E (82) gpio: gpio_set_level(227): GPIO output gpio_num error

The important part is [ 84][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected

@colas-sebastien
Copy link
Author

I found a workaround:
~/.arduino15/packages/m5stack/hardware/esp32/2.1.2/cores/esp32/esp32-hal-gpio.c comment the line 145:
//gpio_set_level((gpio_num_t)pin, val);

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

1 participant