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.
This commit is contained in:
schneider
2022-10-26 20:00:29 +02:00
parent 48b94321fc
commit d8d3dc039d

View File

@ -241,6 +241,7 @@ int main(void)
cpu_clock_init(); cpu_clock_init();
/* Wake the M0 */ /* Wake the M0 */
ipc_halt_m0();
ipc_start_m0((uint32_t) &__ram_m0_start__); ipc_start_m0((uint32_t) &__ram_m0_start__);
if (!cpld_jtag_sram_load(&jtag_cpld)) { if (!cpld_jtag_sram_load(&jtag_cpld)) {