-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mts 001 mtdot clk fix #15291
Mts 001 mtdot clk fix #15291
Conversation
@reissjason, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not, but I think it would be better to update the original system_clock.c
|
||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; | ||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; | ||
RCC_OscInitStruct.PLL.PLLM = HSE_VALUE / 1000000; // VCO input clock = 2 MHz (8 MHz / 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: comment is wrong
RCC_OscInitStruct.PLL.PLLN = 200; // VCO output clock = 400 MHz (2 MHz * 200) | ||
#endif /* DEVICE_USBDEVICE */ | ||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; // PLLCLK = 100 MHz or 96 MHz (depending on DEVICE_USBDEVICE) | ||
RCC_OscInitStruct.PLL.PLLQ = 8; // USB clock = 48 MHz (DEVICE_USBDEVICE=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 4 to get 48MHz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to be able to update the PLLM, PLLQ and PLLP values of the original to accommodate the 26MHz external clock without affecting current other F411RE users?
@jeromecoutant Would you want me to submit a new PR with a change to the F411xE/system_clock.c to add the HSE_VALUE setting? And also include the comment change and PLLQ update to our system_clock.c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase (remove merge commit please).
0ae5c91
to
8fbe943
Compare
8fbe943
to
4d616cc
Compare
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
By default internal clock was being use and the external clock source could not be set to 26MHz using mbed_app.json.
The MTS_MDOT_F411RE will always have and external crystal available so it should be used as the default clock source.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers