cpu goes to power-down mode if bootloader's boot attempt fails

This commit is contained in:
stnolting 2020-07-20 22:32:30 +02:00
parent 4a2f859e07
commit b665c2876b
2 changed files with 855 additions and 853 deletions

File diff suppressed because it is too large Load diff

View file

@ -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
}