G30 SPI clockrate doesn't change

When using the G30TH modules and the SPI, the SPI clock rate does not change. When I look on the scope it is always running at 357KHz no matter what I set the clock rate to.


SPI.Configuration FFLane1 = new SPI.Configuration(GHI.Pins.G30.Gpio.PA10, false, 0, 0, false, true, 1, SPI.SPI_module.SPI1);
SPI.Configuration FFLane1 = new SPI.Configuration(GHI.Pins.G30.Gpio.PA10, false, 0, 0, false, true, 100, SPI.SPI_module.SPI1);

This doesn’t change the clock rate and we need it to be slower.

There’s another post about the clock rate - it does change, but I think you’re uner the lower limit. What rate do you need, and for what device? Seems quite slow (and no SPI-like)

https://www.ghielectronics.com/community/forum/topic?id=22390

Thanks for your reply.
That thread indicates the lowest possible clock rate for a G30 is 329KHz which is give or take about what I’m seeing. However page 516 of this document [url]http://www.st.com/content/ccc/resource/technical/document/reference_manual/5d/b1/ef/b2/a1/66/40/80/DM00096844.pdf/files/DM00096844.pdf/jcr:content/translations/en.DM00096844.pdf[/url] indicates that I might be able to get much lower. I’ll have to do some reading and some maths to figure out if it’s possible otherwise I guess I’m going to have to bit bash it in software.

Edit:
Based on the 84Mhz clock speed it seems that you can’t get it lower by poking at the registers which is a shame.