1 year, 2 months ago.
time_t is broken with 2017-q4 releas of gcc tool chain - workaround needed
with gcc-arm-none-eabi-7-2017-q4-major the default typedef of time_t is "long long int". older releases typedef time_t as "long int". mbed lib cannot handle this correctly which causes ctime() localtime() gmtime() to generate bogus results
This applies to exported projects as "GCC (ARM-Embedded)" compiling with GNU Tools for Arm Embedded Processors 7-2017-q4-major 7.2.1 20170904 (release) A testcase is here: https://os.mbed.com/users/bomilkar/code/Testcase_RTC/
sizeof(time_t) results 8 in the 2017-q4 release. With earlier versions the result is 4.
I think this might also affect other functions using time_t (such as file systems).
A (clean) workaround is badly needed.
3 days, 8 hours ago.
this is still broken with mbed 5.12 as of today and using gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu118.04)
To post an answer, please log in.