On Wednesday 19 August 2009, Spencer Oliver wrote:
> Just for info the statement:
> "Use a standard Cortex-M3 software reset mechanism" is not correct
The request *is* standard...
> as the sequence will not work on a stm32.
> It is implementation dependant,
.... but SoC vendors don't necessarily handle that one the same.
(What happens on STM32?)
> but is the correct sequence for luminary -
> luminary support helped a lot sorting this problem out.
The comment in the code elaborates the situation:
/* Use a standard Cortex-M3 software reset mechanism.
* SYSRESETREQ will reset SoC peripherals outside the
* core, like watchdog timers, if the SoC wires it up
* correctly. Else VECRESET can reset just the core.
*/
So an STM32 should use VECRESET, and maybe a bunch of
manual resets of the peripherals, if it doesn't have
a SRST wired up. That's what the soft_reset_halt()
does (without peripheral resets).
- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development