-
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
MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms #8272
Conversation
cc @maclobdell @ fkjagodzinski @MateuszMaz @0xc0170 |
Interesting changeset. Looks alright, but kinds odd to have the RTC intiailization unconditionally in the sdk init. |
@cmonr . I have reported this to the SDK team |
Some more details can be found in the below link posted by the NXP application team. |
I tested it on K22F, K64F, K82F. PR fixed the issue. |
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.
I can confirm this patch fixes #5348 when compiled with arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
.
However, when I use the newer arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
, only the debug profile behaves correctly. With the default, develop profile the timeout never fires and I get:
# Power applied to OpenSDA port
2999879
# Power applied to OpenSDA port
2999879
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, since the Mbed OS does not officially support the GCC_ARM
toolchain version 7 or higher I think this patch is fine.
71b4061
to
478eb6f
Compare
I have updated this PR to init the RTC OSC only if it is not already initialized. This will ensure the RTC reset tests do not fail. |
/morph build |
Build : SUCCESSBuild number : 3344 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2977 |
Test : FAILUREBuild number : 3150 |
Please take a look at the single failure. It looks quite interesting. |
Its seems to be failing on the master branch as well so not related to this PR. I will look at it and submit a separate PR. |
PR #8437 should address the mbed-ci Failure |
This is a fix for Issue 5348. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
478eb6f
to
ebf31c6
Compare
I have rebased and updated this PR to include the fix for the failure |
/morph build |
Build : SUCCESSBuild number : 3398 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3029 |
Test : SUCCESSBuild number : 3199 |
Revert "Merge pull request #8272 from NXPmicro/Ensure_RTC_OSC_Start"
Description
This is a fix for Issue #5348. The RTC 32K oscillator is used by the LPTicker, this change ensures that the oscillator is running before we start using it.
Pull request type