I'm trying to get MMC over SPI to work. My system crashes in spiUnselect when trying to initialize the SPI module:
Code: Select all
Breakpoint 1, chSysHalt (
reason=reason@entry=0x8005034 <__func__.7105> "spiUnselect")
at chibios/os/rt/src/chsys.c:192
192 void chSysHalt(const char *reason) {
(gdb) up
#1 0x08000e78 in spiUnselect (spip=spip@entry=0x20000b00 <SPID2>)
at chibios/os/hal/src/hal_spi.c:156
156 osalDbgCheck(spip != NULL);
(gdb) print spip
$8 = (SPIDriver *) 0x20000b00 <SPID2>
(gdb)