Originally Posted by
mk13
It's the bootloader that become corrupted in the Seeeduino. I have to rewrite the bootloader with an ST Link v2, then rewrite the solenoid program, and it finally works again. But it's boring.

you lost me after "it's the..."