Add local reset via VECTRESET support for cortex-m device
When use setTargetResetState method, apart from using external signals for a global reset through SYSRESETREQ, sometimes we prefer to trigger local reset, which is achieved through VECTRESET.
I'm not sure how I would test this. @jreineckearm does this look sensible?
I'm not sure how I would test this. @jreineckearm does this look sensible?
@thegecko , IIRC, the VECTRESET shouldn't affect parts of the CPU like SysTick or NVIC. It definitely is not supposed to affect device specific peripherals as they are considered part of the system, not the CPU. So, it may be worth to verify the behavior based on a device specific peripheral.
Here are two points:
- The added VECTRESET only applies to armv7m, which only resets the CPU core, and we can determine the reset behavior based on the value of the CPU register file. I'm not sure it makes sense to add one of these more restricted features?
- Perform reset detection, does this cover all scenarios due to the complexity of the hardware implementation?