2015-06-16 05:25 AM
2015-06-16 07:59 AM
Okay, some small progress:
The OVR bit most likely comes from the debugging process where the SPI kept receiving data while the CPU was halted at a breakpoint. I'm starting my transmissions from a timer overflow interrupt. I now disabled the timers during halt at breakpoints by executing DBGMCU_APB1PeriphConfig(DBGMCU_TIM2_STOP, ENABLE); in the init code. Now I can successfully restart the transmission. I set the SPI prescaler to 32, and now the CPU is able to actually catch the interrupts. So most of my problems are fixed. Only one remaining is that I still only receive 0x00 even though I can definitely say that there is data arriving at the pin.