Question
constant data structure can't be watched
I have a project which use STM32H743ZI, and i have a data structure
#define APP_MODULE_MAJOR (INT8U)0x01 /*!< Major version of the APP module */
#define APP_MODULE_MINOR (INT8U)0x01 /*!< Minor version of the APP module */
#define APP_MODULE_CUSTOM (INT8U)0x01 /*!< Custom version of the APP module */
static const INT8S APP_s8ModuleNameString[] = "APP";
static const INT8S APP_s8ModuleDescriptionString[] = "APP";
const STD_strModuleInfoType APP_objstrModuleInfoType =
{
.objstrVersion = {APP_MODULE_MAJOR, APP_MODULE_MINOR, APP_MODULE_CUSTOM},
.u32ModuleID = APP_MODULE_ID,
.ps8ModuleNameString = APP_s8ModuleNameString,
.ps8ModuleDescriptionString = APP_s8ModuleDescriptionString
};/*<! APP module information instance */and when trying to watch any of its members, i'm getting error in watcher
Failed to execute MI command:
-data-evaluate-expression *((APP_objstrModuleInfoType).ps8ModuleDescriptionString)
Error message from debugger back end:
Missing ELF symbol "APP_objstrModuleInfoType".
i checked the optimization setting and there is no optimization, so why Am I getting this error?
