riscv-openocd icon indicating copy to clipboard operation
riscv-openocd copied to clipboard

add callback for target reset

Open erhankur opened this issue 3 years ago • 2 comments

In this MR on_reset callback function added to inform upper layers when reset happened.

Reset can be triggered by user request or in an unexpected time. Before displaying an "unexpected reset" warning message, target state checked to inform users correctly.

Change-Id: Ife0244f31db06a93a264e797501d5266243364cd Signed-off-by: Erhan Kurubas [email protected]

erhankur avatar Feb 21 '22 23:02 erhankur

Hi @JanMatCodasip, is this PR OK for you? Anything from my side? @timsifive can you also please have a look?

erhankur avatar Feb 28 '22 12:02 erhankur

What exactly is the use case for this? Why does the FreeRTOS layer need to be told when a reset happens?

I share Jan's concern that this is only useful to people modifying the OpenOCD source code, and generally people shouldn't need to do that.

timsifive avatar Feb 28 '22 17:02 timsifive

Inactive.

timsifive avatar Nov 16 '22 19:11 timsifive