I'm trying to understand what happens in one prototype board I have, because Flash programming through Atmel Studio is now very very slow.
It seems the Flash programming speed dramatically decreases when I enable WDT (watchdog timer) in my program. It's very strange to me, because I thought the core is maintained in a reset status during Flash programming, so with WDT disabled. How is it possible that the firmware that is running changes the Flash programming speed?
I started making some tests in order to understand more deeply what happens, so I observed the RESET line on the SWD connector. I noticed it isn't controlled during Flash programming, it seems it stays high for all the time. Is it correct? Hot the MCU is put in reset during Flash programming? Maybe is there a SWD instruction that resets the MCU core, so avoiding the use of the RESET line?
What could be the reason of so slow Flash programming process?
It seems the Flash programming speed dramatically decreases when I enable WDT (watchdog timer) in my program. It's very strange to me, because I thought the core is maintained in a reset status during Flash programming, so with WDT disabled. How is it possible that the firmware that is running changes the Flash programming speed?
I started making some tests in order to understand more deeply what happens, so I observed the RESET line on the SWD connector. I noticed it isn't controlled during Flash programming, it seems it stays high for all the time. Is it correct? Hot the MCU is put in reset during Flash programming? Maybe is there a SWD instruction that resets the MCU core, so avoiding the use of the RESET line?
What could be the reason of so slow Flash programming process?