We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi when trying to download flash to STM32L152 using Keil and ST-Link V2 debugger from SW port, I see "Internal command Error" boot and reset dose not help. is there any way to get rid of this problem?
And you're using SWD mode, and not JTAG?
What were you doing immediately before it failed? What changed in the software or the system?
Yes SWD. Last time I programmed it with a program generated by cube32mx in low power 32Khz. Just now I tried sth and problem solved. I pushed reset button and same time clicked the flash download icon and chip got programmed.
Does you board have NRST attached?
Yes NRST is pulled up to VCC and there is a push button connecting NRST to GND.
I was thinking to the debug interface, but never mind... In that the option to "connect-under-reset" could actually achieve that.