kike-canaries / canairio_firmware

CanAirIO is a citizen science initiative. We are developing a mobile application that is able to set a PM2.5 or CO2 sensors, and other related sensors, as a fixed station using WiFi or mobile station with an smartphone by using a Bluetooth connection.
https://canair.io
GNU General Public License v3.0
104 stars 23 forks source link

Espressif v5.0.0 GPIO issues #229

Closed hpsaturn closed 1 year ago

hpsaturn commented 2 years ago

Overview

Testing the last devel branch with Espressif framework 5.0.0 we have a weird output with GPIO.

Debug output

12:42:40.940 > E (87103) gpio: gpio_set_level(226): GPIO output gpio_num error
12:42:41.192 > E (87355) gpio: GPIO can only be used as input mode

Device config

board: M5StickC Plus
firmware version: `devel`
mobile app version: revxxx
sensors: with and without sensors
Power: USB
hpsaturn commented 1 year ago

Maybe in relation with issue on #178

Jason2866 commented 1 year ago

Why using the old outdated framework 5.0.0? By doing this you use a old Arduino core version. There was a bug in GPIO settings, fixed in actual core. The platformio v5.3.0 uses Arduino core 2.0.6. Every earlier versions of the core 2.0.x has bugs.

hpsaturn commented 1 year ago

Thanks so much, it is true, it resolve the GPIO issue, and the execution messages. Now I need research why with this toolchain my firmware go to freeze. But sounds that without any doubts is better this version :D