Hi, we are trying to set a defined state for a pin to avoid unwanted behaviour on reboot. The current behaviour is that the pin is low after a hard-reset, then set high by one of our applications but on reboot not reset to low. Is there a way to detect a shutdown to reset it during one? The way we’re currently trying to solve this problem is by using pin_EnablePullDown. However, this thows the error “_swimcu_gpio_set: illegal operation to set PULL for output pin 2”
You can try with some non mcu pin
We solved it by implementing a heartbeat to which’s changes the other side listens. This way it’s depending on the change, not a static value and therefore, the value after a reboot doesn’t matter.