2023-03-02 09:18 AM
I tried the same code on both microcontrollers, but STM32F103RET6 freezes with NVIC_SystemReset(); Can you help me please?
Solved! Go to Solution.
2023-03-05 05:24 PM
2023-03-02 10:17 AM
What hardware? How is NRST connected? How is BOOT0 connected?
JW
2023-03-02 10:24 AM
Reset can fail on these MCU's if the pin is driven HIGH externally.
It is both an input and output pin, and clamped to ground open-drain style but the NVIC_SystemReset() or the POR triggering on the VDDA threshold level.
External reset circuits are expected to clamp to ground to reset, but otherwise let it float, and have the on pin pull-up get it to the high state.
Make sure BOOT0 and BOOT1 aren't floating, these can cause other code to start, especially in circuits where the power supply has a slow rise time.
2023-03-02 10:27 AM
If this, then BOOT pins via a 2x3 jumper/header block
2023-03-02 10:46 AM
This is connection of reset pin. As I said, everything works perfectly, the only thing is software reset with NVIC_SystemReset();
2023-03-02 10:49 AM
I have tried take off jumpers, but it didnt help.
2023-03-02 12:08 PM
You definitely have a mistake in the RESET drawing, because when you press the reset button, it makes a fat short circuit between 3.3V and GND. Or do you really have Reset permanently connected to 3.3V?
2023-03-02 12:10 PM
Reset can fail on these MCU's if the pin is driven HIGH externally.
2023-03-02 12:11 PM
The previous iteration/schematic had a pull-up
2023-03-05 04:47 PM
I guess after Peter's and my "remove the R2" the guy just connected the NRST to VDD and the button to GND didn't rise any suspicion...