2020-12-23 01:39 AM
IN the rm0316 documentation, there is no explicit indication of where and which SPI interface takes the clock, you have to "guess through who turns on this periphery", which is not "strictly deterministic behavior". the documentation is done formally and wildly not finalized.
the SPI description States: fPCLK, and there is no strictly PCLK1 or PCLK2.
Solved! Go to Solution.
2020-12-23 02:28 AM
Hello @placidity.master_gmail.com ,
What you are saying is valid also for other peripherals specifications. In the peripheral’s specifications, we try to be as generic as possible. For example, there are SPI instances mapped on APB1 and others mapped on APB2. So, to be generic, we put APB and to have precise information about which APB, the user should refer to section 3.2.2 Memory map and register boundary addresses (Table 2. STM32F303xB/C and STM32F358xC peripheral register boundary addresses). If the SPI instance is mapped to APB1 then its clock is from APB1, if it is mapped to APB2 then its clock is from APB2.
Imen
2020-12-23 02:28 AM
Hello @placidity.master_gmail.com ,
What you are saying is valid also for other peripherals specifications. In the peripheral’s specifications, we try to be as generic as possible. For example, there are SPI instances mapped on APB1 and others mapped on APB2. So, to be generic, we put APB and to have precise information about which APB, the user should refer to section 3.2.2 Memory map and register boundary addresses (Table 2. STM32F303xB/C and STM32F358xC peripheral register boundary addresses). If the SPI instance is mapped to APB1 then its clock is from APB1, if it is mapped to APB2 then its clock is from APB2.
Imen
2021-01-07 11:55 PM
Hello @placidity.master_gmail.com ,
If your question is answered, please mark Imen's reply as best answer by clicking on "Select as Best". This will help other users find this solution more quickly.
If you still need help, feel free to ask your question in more detail.
Imen
2021-01-13 05:48 AM
Hi @Imen DAHMEN and @Imen GH ,
While what you write is maybe considered "common knowledge", couldn't the RMs say so explicitly, in the RCC section? Something like "All peripherals' clocks are equal to the APB/AHB bus clock on which they are located, unless there is a dedicated clock for them (which then is set in RCC_xxxx register(s))"?
Thanks for considering this,
Jan