Skip to main content
TDK
Super User
March 20, 2017
Question

Conflicting info on max APB1/APB2 speed for STM32F411

  • March 20, 2017
  • 2 replies
  • 1956 views
Posted on March 20, 2017 at 13:59

There appears to be conflicting information in the maximum APB1/APB2 speed on the STM32F411 chip, in both the data sheet and the STM32CUBEMX software.  I was hoping someone here may know more about why this is.

In the manual (RM0383), in one place it quite clearly states

The maximum frequency of the AHB domain is 100 MHz. The maximum allowed frequency of the high-speed APB2 domain is 100 MHz. The maximum allowed frequency of the low-speed APB1 domain is 50 MHz.

Then, later on during the register section (RCC->PPRE2), it states

The software has to set these bits correctly not to exceed 84 MHz on this domain.

Similarly, for the low speed APB2 domain, it states:

The software has to set these bits correctly not to exceed 42 MHz on this domain.

Well, which is it? Can I set these to 100/50 MHz or only a max of 84/42 MHz? Anecdotally, I can say that setting them to 100 MHz has not caused me issues so far.

I wouldn't have even noticed it except that in the STM32CUBEMX software, it gives an error if I try to set the APB1 clock above 42 MHz. Interestingly, no such error is given if I set APB2 above 84 MHz.

0690X00000606ceQAA.png

Anyone have more info on this?  There's nothing in the errata list about it.  The data sheet is still in its initial version.

Maybe the original intent of the chip was to be run at 84 MHz and they simply didn't update it everywhere?

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    March 20, 2017
    Posted on March 20, 2017 at 14:28

    Sounds like a software bug.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    waclawek.jan
    Super User
    March 20, 2017
    Posted on March 20, 2017 at 14:32

    Sounds like a software bug.

    What? The mistake in the RM? ;)

    JW

    Tesla DeLorean
    Guru
    March 20, 2017
    Posted on March 20, 2017 at 15:34

    '

    STM32CUBEMX software, it gives an error if I try to set the APB1 clock above 42 MHz

    '

    I've used the 100/50 setting for APB2/APB1, and honestly don't think the 50/25 setting would make any sense. That it says 84/42 in the manual is just lack of editing for the F411 context.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Amel NASRI
    Technical Moderator
    May 3, 2017
    Posted on May 03, 2017 at 11:47

    Hello,

    Maximum APB1 and APB2 frequencies are the ones specified in the datasheet (documentation remains the first reference):

    0690X00000606nzQAA.png

    However, we still have the error reported in OP in the reference manual. This will be taken into consideration to be fixed in coming version of RM0383. For sure we should have all our resources aligned to avoid any confusion. Thanks for your help to achieve this.

    Please note that there is no more problem with CubeMX to set a frequency > 42 MHz for APB1 (I am using the last version 4.20.1):

    0690X00000606vvQAA.png

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.