Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
When setting GPIO 2 to act as a button the program always crashes before the configuration function is completed. In the core dump the last called function is esp8266_gpio_isr.
When setting GPIO 2 to act as a button the program always crashes before the configuration function is completed. In the core dump the last called function is esp8266_gpio_isr.
When
mgos_gpio_set_button_handler
gets replaced with:The same problem occurs.
Only when
mgos_gpio_setup_input
gets replaced bymgos_gpio_setup_output
the above example starts working as expected. coredump.log