espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
431 stars 145 forks source link

Problems with Switch type or with gpio_set_level function (MEGH-5681) #318

Closed KalashQK closed 3 days ago

KalashQK commented 5 days ago

Answers checklist.

IDF / ESP32-Arduino version.

ESP-IDF v5.1.3

Operating System used.

Windows

How did you build your project?

Command line with idf.py

Development Kit.

ESP32-Wroom-32 with own development board

What is the expected behavior?

I expect that once the button is turned on, the additional board connected to the pin will turn on and work

What is the actual behavior?

Instead, the additional board turns on and after a few minutes reboots

Steps to reproduce.

  1. I use the Multi_device example
  2. I change OUTPUT_GPIO in app_driver.c to 17
  3. When I turn on the switch, the logic level on port 17 is correct, the additional board controlled via pin 17 turns on, but resets after few minutes

Debug Logs.

There are no error messages or reboot messages in the port and logs

More Information.

When I used Arduino IDE and digitalWrite function, the additional board working perfectly, do not reboots. I think that problem may tied up with declarations of pins, but I test with different pull-up_en, not helps. I tried to add gpio_set_level to 16 pin, no changes. I add images with electrical scheme of the development board, maybe it helps to find solution image image

Please. help me, its very important