I have a problem with polling GPIO pins on Raspberry 2/3. The system works for 5 to 15 seconds, but then freezes completely and I need to flash the sd card again to get back running.
The code works locally without problems (on command line). I can also see GPIO polling working if I try this in the console (Balena cloud’s ssh window), but the system freezes quickly.
I noticed that some other people have encountered the same (or similar) issue, but I wasn’t able to figure out what they finally did to get everything working.
I’ve set BALENA_HOST_CONFIG_dtoverlay=gpio-no-irq as per the instructions.
I’m pulling my hair out because of this. If anyone had a working example or any hints on how to solve this, I’d be eternally grateful.