From d8d3dc039d0e611b14248fa036e4edb7812be228 Mon Sep 17 00:00:00 2001 From: schneider Date: Wed, 26 Oct 2022 20:00:29 +0200 Subject: [PATCH] m0: reset M0 before starting it The rad1o was not starting the M0 when powered up by inserting a USB cable. Interestingly the M0 does start when toggling the power switch. Resetting the M0 before starting it in `main()` solves this issue. --- firmware/hackrf_usb/hackrf_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/hackrf_usb/hackrf_usb.c b/firmware/hackrf_usb/hackrf_usb.c index acd8ba5d..a0604c48 100644 --- a/firmware/hackrf_usb/hackrf_usb.c +++ b/firmware/hackrf_usb/hackrf_usb.c @@ -241,6 +241,7 @@ int main(void) cpu_clock_init(); /* Wake the M0 */ + ipc_halt_m0(); ipc_start_m0((uint32_t) &__ram_m0_start__); if (!cpld_jtag_sram_load(&jtag_cpld)) {