mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 06:07:52 -04:00
cpu goes to power-down mode if bootloader's boot attempt fails
This commit is contained in:
parent
4a2f859e07
commit
b665c2876b
2 changed files with 855 additions and 853 deletions
File diff suppressed because it is too large
Load diff
|
@ -574,6 +574,7 @@ void system_error(uint8_t err_code) {
|
|||
neorv32_cpu_dint(); // deactivate IRQs
|
||||
neorv32_gpio_port_set(1 << STATUS_LED); // permanently light up status LED
|
||||
|
||||
asm volatile ("wfi"); // power-down
|
||||
while(1); // freeze
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue