-
Notifications
You must be signed in to change notification settings - Fork 3k
ST: Change the LSI_VALUE according to documentation #11454
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
Conversation
@Tharazi97, thank you for your changes. |
@Tharazi97 can we ask why you're doing this change ? Have you met any test issue for instance ? |
@@ -114,7 +114,7 @@ extern "C" { | |||
* @brief Internal Low Speed oscillator (LSI) value. | |||
*/ | |||
#if !defined (LSI_VALUE) | |||
#define LSI_VALUE 32000U /*!< LSI Typical Value in Hz */ | |||
#define LSI_VALUE 40000U /*!< LSI Typical Value in Hz */ |
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.
OK
@@ -120,7 +120,7 @@ typedef struct | |||
#endif /* LSE_VALUE */ | |||
|
|||
#if !defined (LSI_VALUE) | |||
#define LSI_VALUE 32000U /*!< Value of the LSI oscillator in Hz */ | |||
#define LSI_VALUE 40000U /*!< Value of the LSI oscillator in Hz */ |
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.
OK
@@ -132,7 +132,7 @@ | |||
* @brief Internal Low Speed oscillator (LSI) value. | |||
*/ | |||
#if !defined (LSI_VALUE) | |||
#define LSI_VALUE (37000U) /*!< LSI Typical Value in Hz*/ | |||
#define LSI_VALUE (38000U) /*!< LSI Typical Value in Hz*/ |
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.
Reference Manual says: The clock frequency is around 37 kHz
Data Sheet adds details about the value: min 26 / Typ 38 / Max 56
So you could change value from 37 to 38, this will not change anything... Some boards will be at 26, other at 56...
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.
You are right and on some diagrams it's marked as 40kHz. Won't change anything, but it will be consistent to data sheet.
Ok but do we agree that this change will not be enough to meet the requirement below: To meet the requirement, you'd have to consider the worst case or introduce a precision information about the clock frequency ... ? |
@LMESTM Yes, that won't be enough, this is only to keep consistency between datasheet and implementation. |
@ARMmbed/team-st-mcd can you please review. Should we close this one or go separately and the other PR #11203 implements the proper fix. |
I think this PR could be closed. |
Shouldn't we at least keep the changes to F1 series? |
Looks not needed with #11203 change I can see. |
10cd78a
to
48040cf
Compare
Done |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
No fails in CI build artefacts |
CI restarted |
Description
Changed the LSI_VALUE of STM32F1, STM32L0, STM32L1 to match the typical value of their documentation.
Pull request type
Reviewers
@jamesbeyond @maciejbocianski @fkjagodzinski @jeromecoutant
Release Notes