-
Notifications
You must be signed in to change notification settings - Fork 3k
Bluepill: hse config fix #4755
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
Bluepill: hse config fix #4755
Conversation
I don't have BLUEPILL target, |
Thanks for making the PR @LordGuilly. I really like the minimal diff. |
@LordGuilly Can you please sign https://developer.mbed.org/contributor_agreement/ ? And share your nick on mbed? |
my mbed user is 'guilly' not sure if it can be linked to the github profile? |
/morph test |
1 similar comment
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Hi I suggest to remove the commit in stm32f1xx_hal_rcc.h file from this pul request, and to keep only the patch in targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/system_stm32f1xx.c This will make Bluepill target works anyway. In //, I am going to work on a patch which will satisfy everyone and every STM32 family (not only F1) Thx |
@LordGuilly What do you think, can you do the update? |
what's the problem, side effects? Or is it also present in other platforms, and want to solve it for all at the same time? |
They mention 2 points:
|
well, make sense, I guess the best approach would be to replace the macro with an inline call, and add all the extra logic. Doing it with a macro will not be very clear. |
reverted the commit, tested with my board, and definitely works, but only for this platform at the moment. |
@LordGuilly I think the history would be cleaner if you just rebased/squashed and removed the commit that you reverted and the revert. |
38ca3f4
to
e153452
Compare
I think I did it right this time ;-) |
Looks great! |
/morph test |
1 similar comment
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Sorry @LordGuilly It looks like the pile of merges that got in before this one caused a merge conflict. Could you rebase to resolve this conflict? |
The BLUEPILL board does have XTAL soldered, cannot be used with an external oscillator
e153452
to
909a834
Compare
done it, the file tree was restructured, and the fix had to be done in another file |
Hello @LordGuilly
As you modify only TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/system_clock.c, it means that only BLUEPILL_F103C8 device will be affected by your modification. |
Yes, the comment is a leftover from the original PR, which also included changes in a generic f1xx header. Those changes were removed due to ST driver team objections |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Thanks for the fix @LordGuilly! |
Notes:
Description
fixed the BLUEPILL (and likely other F1XX devices) oscillator setup
Problem described in issue #4753
Status
READY
Migrations
NO
Todos
Deploy notes
as said, it may impact other F1xx branches, but the HSI (fallback of the startup procedure) was doing 64Mhz), so systems may do faster than expected
Steps to test or reproduce
I started the mbed build app in a remote target with GDB, and printed SystemCoreClock