Hello,
I am using TI-RTOS on LM3S9DN6 and F28M36P63C2. My project consists of one MCU having a RTC supplying the others with a valid time at bootup. When trying to set the time on these MCUs without RTC I experienced a problem. Reading back time using
time_t rawtime; rawtime=time(NULL); tinfo = localtime(&rawtime);
I got only useful results as long as the debugger was on. Without debug connection or after disconnecting the device via menu in CSS no more useful results were returned. Seemingly setting the time at bootup was not working too, because that did not set the MCU time and the above code returned a valid time already before time setting. Trying to read time without debug connection gave 3 times a different result and afterwards returned always the same wrong value.
What do I need to do to make it work? I have already implemented another software clock/calender but some external supplied code relies on a working time() implementation (without debugger being connected ;-))
Thanks for your proposals, Oliver
By the way, CSS 5.4 did not program Rev. 1 F28M36P63C2 by default. Only a small change in nowFlash config F28M36x.M3.xml fixed this issue.