Skip to content
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

set_time not working on LPC1768 #7380

Closed
janfwesterkamp opened this issue Jun 30, 2018 · 7 comments
Closed

set_time not working on LPC1768 #7380

janfwesterkamp opened this issue Jun 30, 2018 · 7 comments

Comments

@janfwesterkamp
Copy link

Description

Using the time example from https://os.mbed.com/docs/latest/reference/time.html and updating mbed-os
to the newest version (03196b2) in the mbed online compiler returns the following in the terminal:

Time as seconds since January 1, 1970 = -1
Time as a basic string = Sun Jan 1 00:00:00 1900
Time as a custom formatted string = 12:00 AM

The expected result would have been:

Time as seconds since January 1, 1970 = 1256729737
Time as a basic string = Wed Oct 28 11:35:37 2009
Time as a custom formatted string = 11:35 AM

Also not working is revision 866850a (5.9.0).
The last working revision with the expected result is 35fa909 (5.8)

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 2, 2018

@ARMmbed/team-nxp Please review
[Mirrored to Jira]

@Jossie90
Copy link

Jossie90 commented Aug 28, 2018

I stumbled upon this issue when updating to the latest mbed release (5.9.4.). I think it is caused by this commit 6d90c27, where the RTC is was disabled for this device. Adding "RTC" to targets.json solved it for me.

[Mirrored to Jira]

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2018

RTC should be reenabled (but needs to make RTC testing green first)
[Mirrored to Jira]

@mmahadevan108
Copy link
Contributor

mmahadevan108 commented Sep 5, 2018

Below PR to reenable RTC on LPC1768
#8009

[Mirrored to Jira]

@kegilbert
Copy link
Contributor

kegilbert commented Sep 5, 2018

If RTC is disabled it'll default to using a ticker which has a known issue and pending fix (haven't looked closely into this yet, just saw the issue and it sounds like it may be related):
#7849
[Mirrored to Jira]

@adbridge
Copy link
Contributor

adbridge commented Oct 4, 2018

Internal Jira reference: https://jira.arm.com/browse/IOTPART-5784

@janfwesterkamp
Copy link
Author

janfwesterkamp commented Oct 10, 2018

With revision c53d51f (5.10.1) it's working now as expected - for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants