fix(PeriphDrivers): Fix clock speed configuration of SPI3 for MAX32650#1566
Conversation
|
Were the changes of PR #1566 tested on actual hardware? On the MAX32650, SPI3 is on the AHB bus not the APB bus and is therefore clocked twice as fast as the other SPI peripherals. This can be confirmed in Table 2-3 of the user guide. These changes may need to be reverted. |
Makes sense but there is conflicting information in Table 19-7 (scaling formula uses PCLK). Also, in Table 1 in datasheet the maximum frequency is the same for all SPI instances. |
|
I think you (and the PR) may be correct). I've checked with a logic analyzer and having clocked from PCLK seems to be correct. I am still investigating, but you can ignore my comment for now. |
|
Thanks for the clarification. |

Description
spi_me10.c assumes the SPI3 peripheral clock is twice the frequency as other SPI instances. Looking at the MAX32650 UG there is no indication SPI3 peripheral clock is twice the frequency.
Checklist Before Requesting Review