I finally got a basic little circuit running with a cheap STM32C0, just cycling thru some simple outputs. It's working fine when I just flash the code and leave it alone, but the moment I start running a slightly more complex routine—maybe involving a peripheral like a timer or even just rapid GPIO toggling—the thing just randomly restarts. It seems totally stable, then poof, reset.
I've checked the power lines multiple times and the voltage is solid 3.3V from the supply module. I've also ensured the decoupling capacitors are placed close to the chip like the tutorial suggested. I'm using the bare minimum components, just a few resistors and some LEDs for feedback, so I don't think excessive current draw is the issue, but I am stumped by this intermittent reset problem. Is there some common configuration mistake I might be making in the setup, or maybe a specific timing issue related to the clock setup that causes a spontaneous reset on these lower-end chips?