TIRTOS on a TM4C123GH6PGE.
tirtos_tivac_2_10_01_38
Code Composer Studio Version: 6.0.1.00040
From the cfg file:
var SecondsClock = xdc.useModule('ti.sysbios.hal.SecondsClock');
From this users guide "SYS/BIOS (TI-RTOS Kernel) v6.41" it appears I can use SecondsClock to keep calendar time on my system.
However when compiling this error is generated:
Undefined reference to 'ti_sysbios_hal_Seconds_get__E' in file ./main.obj .xdchelp /WM24 TIRTOS C/C++ Problem
The compiler suggests this a fix:
var ti_sysbios_hal_Seconds = xdc.useModule('ti.sysbios.hal.Seconds');
Adding this to the project lets the program compile, but the unit lockups in Seconds_set at the clock enable bit. Understandable because this hardware is not used on this unit.
Void Seconds_set(UInt32 seconds)
{
UInt32 curSeconds;
/* Turn on the clock enable bit. */
HWREG(HIB_CTL) |= HIB_CTL_CLK32EN;
The question is how do you get it to compile and use an increment from the clock module like mentioned in the TIRTOS user's guide?