Hi,

I have an issue regarding the WFI instruction on a STM32.

On the STM32, a particular bit must be set in order to maintain debug access 
during sleep (WFI).

Imagine for a second a useless program where the first instruction is a WFI.

Currently I'm finding that OpenOCD cannot handle such a program.  (nor any 
other containing WFI)

I think what is happening is that OpenOCD issues a reset, then releases reset, 
and by the time it tries to access memory addresses, the program has already 
started running and is sleeping in the WFI instruction.

What I think should happen is that OpenOCD should control the startup out of 
reset, and ensure that the bit in the DBGMCU_CR register gets set before the 
program starts running.

Any thoughts on how this can be achieved?


Regards,

Evan Hunter
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to