Hello everybody,
I have two things on my mind:
- Does anybody have experience with debugging/programming ST’s stm32 cortex chip with openocd, while it is in sleep/stop mode? There is definitely a bug/TODO, which denies to do this. Openocd is not able to wakeup stm32 fro this mode and all I get is:
Error: cortex_swjdp.c:224 swjdp_transaction_endcheck(): SWJ-DP OVERRUN - check clock or reduce jtag speed
My solution is that I’ve added parameter, which forbids my program to enter LP mode and I program it this way. But this solution is not clear and I’d like you to ask you, if there is some better or maybe clue, how to modify openocd to wakup processor from LP mode before debugging.
- I’ve created small modification of openocd, which adds ability to run “not in daemon mode” and which just executes script supplied from command line. It is very useful for programming devices in manufacturing, mainly use OpenOCD from flash loading(and not debugging) etc.
I sent this patch to Dominic, he responded me, that he likes it and that he wants to incorporate it to main tree. But then I got no response from him, even to mails regarding problem no.1.
So I’d like to use this way if you have any solution for problem 1 and if anyone who has access to svn would like to incorporate patch as described in 2.
Thank you and best regards
Petr Masek