2017-05-03 10:18 AM
I have device with STM32f030K6T6. Since one moment, I am not able to start this uP without shorcircuiting nReset signal to VCC. Originally I had RC circuit on this line. When this problem had occured I modified it removing resistor (leaving capacitor connected between nReset and GND). Still doesn't work. Currently I'm running very simple program with for(;;) loop.
Main question is: what kind of setting may cause that? At some point I was using settings in ST-Link with 'Program under reset', but now I change that to 'normal & autodetect' but behavior is still the same.
Note: this post was migrated and contained many threaded conversations, some content may be missing.2017-05-03 10:23 AM
I would guess you don't have VDDA wired up properly to a supply.
Short circuiting the pin suggests come chronic design failure on your end.
2017-05-03 12:29 PM
VDDA is connectected directly to VCC and 100nF capacitor is placed as close as possible.
2017-05-03 12:38 PM
If the supply is below threshold on VDDA the device will have NRST clamped internally.
If NRST with a pull-up is LOW, something in the circuit is driving it there or clamping. The STM32 won't naturally do that. You need to look critically at the circuits on the board, review the netlist carefully. Measure the voltage on VDDA.
Double check pin list against datasheet, and that part is correctly orientated.
2017-05-03 02:53 PM
It is weird, because it was working. The only thing I was changing, was firmware. I don't use ADC, so it should use default threshold value. To be sure, I set it up again in code, but still no differences. To program chip I need to keep this RST pin pulled up to VCC. Does anything else can influence on this pin?
2017-05-03 05:17 PM
Do you have any other GPIO, or net, that could short with it? Watch dog?
What did you change in the firmware between the time it worked and the time it failed? Did you do anything with the hardware, or introduce external voltages?
HSI should come on by default.
If you don't short NRST to VCC, what is the condition/profile of the signal? View on scope, power on board, etc.
2017-05-04 09:15 AM
On PCB J2 is standard SWD connector. As you can see, RST is connected only to RC and J2. It is not shorted to GND and to any other GPIO.I thought may I messed somehing in ''options bytes'', but I checked, they are setup (all checked) as in working project. I'm not sure what exactly I had changed when this first happend. For sure I was adding another module in firmware. No changes in hardware.
VDDA voltage
RESET signal
2017-05-04 09:53 AM
Leaky capacitor? Try to remove it.
JW
2017-05-04 04:33 PM
I will try tomorrow, but I have already replaced it with brand new one. Let me underline, device in this configuration was working. I'm more looking for internal setting that can cause this wrong behavior.