AnsweredAssumed Answered

Unable to program when in stop mode

Question asked by potgieter.mc on Mar 22, 2016
Latest reply on Mar 23, 2016 by potgieter.mc
I'm unable to program a STM32 using the STLink2 when the micro has firmware running that puts it into stop mode.

I've played with the reset sequence settings in Keil but none of them solve my problem.

Does anyone know how to reprogram a STM32 micro with the STLInk2 and Keil when its in stop mode.

I just completed a low power project using the STM32F040 and had the same issue. I'm unable to program the micro when its in stop mode. Once would thing the reset sequence will allow the STLink2 to program it? Luckily I had an interrupt that woke up the micro and would delay for a couple seconds before it stopped again.

On my new board using the L151 I do not have this implemented. The micro is now programmed with firmware that puts it into stop mode and I'm unable to reprogram the micro again.

Outcomes