Hello,
I have working devices on SPI3, which is used on the Mikrobus sockets but if I try to use SPI2 or SPI5 on the X1 or X3 headers, then nothing happens.
Is this intended behaviour ?
Hello,
I have working devices on SPI3, which is used on the Mikrobus sockets but if I try to use SPI2 or SPI5 on the X1 or X3 headers, then nothing happens.
Is this intended behaviour ?
They should work! Do you have a logic analyzer?
It turns out to be that I’ve set a too high frequency on those buses
I did not remember they were using a different prescaler stage.
30MHz is fine on SPI3 but not on SPI2 and SPI5
24 MHz is ok on the three buses.
Do you have the maximum allowed frequencies on each SPI bus ?
Sorry for the false alarm.
What happens when you set to 30Mhz?
The system should automatically pick the highest allowed clock. If not, we need to fix!
Unfortunately, my LA is not able to handle such frequencies. I can go up tp 25MHz for SPI but even there, it’s not really accurate.
And the behaviour is : nothing happens. But I think it will depend on the device, probably.
Hmmm…
Update on “allowed frequencies”, as I had connected the wires to SPI2 on the second header instead of SPI5
Requested 30 MHz is ok on SPI3
Requested 24 MHz is ok on SPI2
Requested 14 MHz is ok on SPI5
Why do I say “requested frequency” ? Because the real frequency is not the one requested but something lower. I know this is expected behaviour, there is no issue with this, to me.
Awesome! Still waiting for you to find some bugs
I feel that you are really impatient. So I can’t leave you there waiting.
Here’s one :
private static void BugForGus()
{
for (Double i = 0.0; i < 10.0; i += 0.1)
{
Debug.WriteLine($"i = {i:F1}");
Thread.Sleep(50);
}
}
Have fun
I think you should still check the max frequency thing. It looks like it does not set the right one if it is higher than allowed.
Issues made What string formatting is supported? · Issue #176 · ghi-electronics/Documentation · GitHub
Please, don’t say that formatting doubles is not supported !?
We will know soon