Can I call time(NULL) from my controller code to get the time?
I'm working with a Nucleo F429ZI. I have "time.h" included in my code, and whenever I call time(NULL), I get a "-1" returned, which I think means that the function call failed. Is there anyway to get the function time(NULL) to return the time, by configuring things in a particular way, or does STM32 completely rely on RTC for the time? For example, when I enable semihosting, I can implement time.h and time(NULL) returns a time value. Does a time() call only work when semihosting is enabled, or is it something else that determines whether it works?
According to this link semihosting is the default implementation, but is there a way I can change it to get time() to work? http://www.keil.com/support/man/docs/armlib/armlib_chr1359122861930.htm
