cancel
Showing results for 
Search instead for 
Did you mean: 

Disable External Watchdog during microcontroller programming

Hanamant
Associate

Hi Team.

We are facing some challenge with external watchdog timer with STM32F373VCT6 controller. when there is no program in flash input to external watch dog timer (WDI) is output and no pulse . during this time external watch dog timer continuously generate reset pulse to microcontroller pin (nRST which is default of pull up). 

when we trying to program through JLINK external watch dog timer not allowing to program , it continuously resetting the controller, we need to manually separate external watch dog timer reset pin from nRST pin by removing R64 as per given schematic.

 

Hanamant_0-1749561370559.png

Do you have any suggestion to avoid manual intervention

3 REPLIES 3
TDK
Super User

I believe removing R64 is the best option.

The NRST signal is hardwired--no way to have the chip ignore it.

You could hardwire NRST to 3V3 if the watchdog chip has limited output capacity and won't be damaged by that. Not really recommended to short NRST to 3V3 but it'll work.

If you feel a post has answered your question, please click "Accept as Solution".
Andrew Neil
Super User

This is a common issue with any external WD - nothing to do with the STM32, and not specific to the STWD100.

The STWD100 has an Enable pin:

AndrewNeil_0-1749562035359.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

From your own code, or ram based loader, you could generate watchdog kick pulses via PB4 TIM16_CH1 or TIM3_CH1

It might have been a better approach to have connected the -EN pin to a programming header or MCU pin

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..