2022-06-11 10:59 AM
here is the pcb
tried adding a capacitor of 100nF to GND like it was suggested in the datasheet
still nothing the only work around i found is if i fiddle with a jumper between NRST and groud sometimes start the mcu or by touching the top of it with my finger as soon as i remove my finger it stop
2022-06-11 06:25 PM
Is that just a two layer board? If so, the bottom layer should be mainly dedicated to ground plane. I don't see decoupling capacitors for the micro. Decoupling capacitors should be used as close as possible to the the micro with the minimum path from power pin to capacitor to ground plane - surface mount capacitors of course. The trouble with your NRST pin might be a symptom of a noisy board because of inadequate power supply decoupling of the micro. Careful design of power supply decoupling will make your board "quieter" for analog measurements and reduce the EMI it produces.
I'm sure ST have similar documents, but here is an older TI document I have found very useful over the years "PCB Design Guidelines for Reduced EMI" https://www.ti.com/lit/an/szza009/szza009.pdf
2022-06-13 04:51 AM
Also, I assume you have a pull-down on Boot0 pin.
2022-06-14 04:59 AM
Without the recommended capacitor, short capacitive coupled pulses may win over the weak pull up on NRST and may reset the device.
2022-06-14 05:13 AM
It is a momentary switch, not a jumper.
The pins should be high in normal operation.
2022-06-20 04:46 AM
no boot 0 is just floating a trid pulling it down no result
2022-06-20 04:48 AM
yeah tested it with a scope and it showed 3.3v but the mcu keeps doing this