RTC Time_helloWorld does't work in the latest update.

04 Oct 2018

Hi,

The example at https://os.mbed.com/docs/v5.10/apis/rtc.html does not work in the latest os update.

When loaded in the online compiler it does work (i.e. produces the output it is supposed to produce). When the MBED_OS is subsequently updated the code doesn't behave correctly. I can't say anything about the set_time() but time(NULL) returns -1.

This is kind of annoying guys I have software for some network devices that was written and tested years ago ... now nothing works like it is supposed to.

A few days ago I had the same thing with a socket accept() function that was implemented in the way it was described in the manual, it didn't work until someone suggested to use the deprecated approach.

Can someone please suggest tools and/or an approach that at least does what it's supposed to do? How can I roll back to previous stable libs and os-es?

Koen.

11 Oct 2018

Okay ... Seems like the latest update (5.10.1) fixed my problem RTC problem.

Thanks.

11 Oct 2018

Hi Koen,

We're glad that the example is now executing okay - is the same true for your application? Could you tell us what target you are using? We would like to replicate the failure on v5.10 if possible.

The Online Compiler lets you choose another OS/library/program version through the "Revision" button as shown in the picture below. If you first select "mbed-os" in the Program Workspace you can then switch to another version of Mbed. The same is true for a library or program that is under version control - you first select the entity in the Program Workspace and then use the Revision button to bring up the log.

/media/uploads/RalphF/onlinecompiler-switchosrevision.png

Regards,

Ralph, Team Mbed

12 Oct 2018

Hi Ralph,

Thanks for your reply, i've recorded this behaviour on an NXP LPC1768 MBED device. Like I said on the MBED OS release 5.10.

I'm sorry to say that porting my code from the project a few years back to mbed OS 5 is still in the phase where I'm opting to use Raspberry Pi Zero HW. Allthough, that means an extensive (and expensive redesign).

Sorry for that, I just keep encountering issues that aren't or are poorly documented or just don't work as expected. Latest encounter was my test implementation using TCPSocket. See: https://os.mbed.com/questions/82733/TCPSocket-clientclose-causes-hardware-fa/

BTW. I use MBED for education, i'm not a 10000+ units/year client.

Kind regards,

Koen. Koen

16 Oct 2018

Did you only change from OS 5.10.0 to 5.10.1 ? I work with FRDM K64F and changed some moments ago to 5.10.1 because the setting of RTC also did not work at 5.10.0, but no result. The bug is still present. Regards, Kevman

16 Oct 2018

Yes I only changed the OS release.

Koen.

Please log in to post a reply.