Commit c03cc5b
authored
Make sure we're muxed to the SP before setting the mux to the host (#2457)
I noticed that the SP hangs if you call `set_mux(HostCPU)` twice in a
row. This is because the first call switches the mux from the SP to the
host; the second call tries to read from flash while it's muxed to the
host (to find the APOB, ABL0 version, etc). When the flash is muxed to
the host, the FPGA never loads bytes into the SP's FIFO, so this hangs
the `hf` task forever.1 parent 51e396d commit c03cc5b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
609 | 614 | | |
610 | 615 | | |
611 | 616 | | |
| |||
0 commit comments