Skip to content

Commit

Permalink
armv7m: Change cpuReset logic in exceptions
Browse files Browse the repository at this point in the history
JIRA: RTOS-520
  • Loading branch information
gerard5 committed Jul 12, 2023
1 parent ac040e9 commit 5221147
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions hal/armv7m/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,8 @@ __attribute__((section(".noxip"))) void hal_exceptionsDispatch(unsigned int n, s
hal_exceptionsDumpContext(buff, ctx, n);
hal_consolePrint(buff);

#ifdef NDEBUG
#ifdef CPU_STM32
_stm32_nvicSystemReset();
#elif defined(CPU_IMXRT)
_imxrt_nvicSystemReset();
#endif
#ifndef NDEBUG
hal_cpuReset();
#endif

for (;;) {
Expand Down

0 comments on commit 5221147

Please sign in to comment.