Skip to content
Snippets Groups Projects
Commit a9c9d666 authored by rahix's avatar rahix
Browse files

fix(pycardium): Return on nlr_jump_fail()


Instead of "rebooting" Pycardium, hand over control to core 0, notifying
it of a severe failure via epic_exit(253).

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 518d2a88
No related branches found
No related tags found
1 merge request!417Pycardium Improvements
Pipeline #4773 passed
...@@ -283,14 +283,12 @@ mp_uint_t mp_hal_ticks_us(void) ...@@ -283,14 +283,12 @@ mp_uint_t mp_hal_ticks_us(void)
* Fatal Errors * Fatal Errors
*/ */
extern NORETURN void *Reset_Handler(void);
void NORETURN nlr_jump_fail(void *val) void NORETURN nlr_jump_fail(void *val)
{ {
char msg[] = " >>> nlr_jump_fail <<<\r\n"; char msg[] = " >>> nlr_jump_fail <<<\r\n";
epic_uart_write_str(msg, sizeof(msg)); epic_uart_write_str(msg, sizeof(msg));
Reset_Handler(); epic_exit(253);
} }
/****************************************************************************** /******************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment