Open steprat opened 2 years ago
Hi @steprat, sorry for the slow reply, I was moving to a new house this past week.
Is the pyocd command line in your description correct? It has -0 connect_mode=under-reset
, with a zero instead of "capital oh". This probably won't work, but is worth checking.
Mbed OS automatically places the device in low power modes when CPU idles (like most modern IoT oriented RTOSes), so this is almost certainly related to low power modes. (The "AP wait" error occurs almost exclusively with low power related issues on STM32.)
Could you please try pyocd v0.33.1 (latest as of this writing)?
I'm not very familiar with the STM32L452/152 differences compared to other STM32 devices, so I'll need to read up on them before suggesting anything else.
Hello,
when I try to flash a NUCLEO-L452RE board with pyOCD i get a STLink error (16): AP wait When I compile the same mbed blinky project for an STM32L152 pyOCD flashes a NUCLEO-L152RE Board without a problem.
Command
This is the terminal output:
I also looked at #1147 but a power down problem can not be related to mine. Board is running/idle not power down.
Any pointers to what I could check or test would be appreciated.
Stephen