Skip to content

STM32 : minor update in sleep HAL file #3742

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

Merged
merged 2 commits into from
Feb 22, 2017
Merged

Conversation

jeromecoutant
Copy link
Collaborator

Description

Remove compilation warning
Debug capability added
Set back US counter after deepsleep period

Status

READY

@sg-
Copy link
Contributor

sg- commented Feb 13, 2017

I'd prefer we add a unified debug method before taking this. Sure there are examples where this exists but I'd suggest we dont take more, rather, start a common implementation.

@jeromecoutant
Copy link
Collaborator Author

Debug messages have been removed, and rebase done.

@bridadan
Copy link
Contributor

/morph test-nightly

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1670

Test failed!

@bridadan
Copy link
Contributor

I think the failure was caused by a test taking abnormally long to get started and it "TIMEDOUT" before it could finish. I will restart the test.

/morph test-nightly

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1672

Example Build failed!

@bridadan
Copy link
Contributor

Here is the step that failed: http://mbed-ci-master-2.austin.arm.com:8081/job/examples_build_matrix/516/target=UBLOX_EVA_NINA,toolchain=IAR/console

The error was caused by what looks like a very intermittent bug in Jenkins: https://issues.jenkins-ci.org/browse/JENKINS-23271

It seems that lightning has struck twice on this pr 🙄

From the comment chain of the Jenkins issue, it looks like this was fixed in Jenkins version 2.35. We're currently running an earlier version of that. I would prefer to get through the 5.4.0 release before upgrading our infrastructure unless it's absolutely critical.

For this reason, I'm again just going to restart the build.

/morph test-nightly

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1673

All builds and test passed!

@0xc0170 0xc0170 removed the needs: CI label Feb 22, 2017
@@ -84,6 +85,10 @@ void hal_deepsleep(void)
// After wake-up from STOP reconfigure the PLL
SetSysClock();

TIM_HandleTypeDef TimMasterHandle;
TimMasterHandle.Instance = TIM_MST;
__HAL_TIM_SET_COUNTER(&TimMasterHandle, EnterTimeUS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that ticker is restarted and we resume the ticker from the last known timestamp?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

Does this mean that ticker is restarted and we resume the ticker from the last known timestamp?

During deepsleep period, ticker is stopped, then ticker is reset during the clock configuration.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. For future reference, this type of details is often worth having in the commit message, for a reader (I just guessed this without looking at the reference manual ).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This is one of the things we should cover in the API docs, as deepsleep in many cases would stop us ticker clocks/resets, thus should it resume time or not (currently user's assumption must be made).

@sg- sg- merged commit 5c28715 into ARMmbed:master Feb 22, 2017
@jeromecoutant jeromecoutant deleted the PR_SLEEP branch February 23, 2017 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants