After separating calling functions polling 1 second tick; asserting (bool) switch (g_bPrintingData = true) normally invokes (PrintAllData()) printing all the (Type Def Struct) defined as (tStat). All CCS compiler versions claim (tStat) is undefined.
Areas of contention when CCS compiler proofs the following statements:
bool g_bPrintingData = false;
bool SyncWithExosite(tStat **psStats);
if (SyncWithExosite(g_psDeviceStatistics) == true)
Review using F3 traces all defined (tStat) to a correct path in module (stats.c) where exists the (typedef strut) table holding several defines in a pointer named (tStat).
If we move all the external prototypes (tStat) into (stats.c) the compiler builds without error. However asserting (bool) switch triggering PrintAllData() to the UART driven terminal fails.
Also a failure of asserting (bool) switch Sync with Exosite appears to be problematic, apparently corrupting the stack. A resulting and perceived MPU Reset then occurs.