SPI broken on STM32 Nucleo-F401RE

22 Feb 2014

Hi,

Today I've been trying to connect MCP4922 to the new board I just got from Farnell. I connected the chip to the SPI pins on the Arduino connector and tried to set some values .

I didn't work so I connected my scope to see what's wrong. The MOSI and SCK signals were fine but SCK was much to slow that is in range of few hundreds of hertz, not in MHz range.

I wrote a quick bit-banging write-only master and it worked as a charm from the very beginning.

Does anybody have a fix for this issue? I tried to look at the code but I didn't dig into it that much.

Regards, Caladan

04 Mar 2014

The SPI frequency command is not working. Setting a frequency of 1MHz is ok, but higher values result in a 30KHz setting.

04 Mar 2014

Setting a frequency up to 4 MHz is ok...

04 Mar 2014

That is 'correct', at least on all but the F401, but that is just the theoretical limitation, there might also be another divide by two in the peripheral: Except the F401 they all run at 8MHz, the F401 runs at 16MHz.