|
|
|
@ -35,7 +35,7 @@
|
|
|
|
#error "must be C99 or higher. try to add '-std=c99' to compile parameters"
|
|
|
|
#error "must be C99 or higher. try to add '-std=c99' to compile parameters"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
|
|
|
#if defined(__ARMCC_VERSION)
|
|
|
|
#define SECTION_START(_name_) _name_##$$Base
|
|
|
|
#define SECTION_START(_name_) _name_##$$Base
|
|
|
|
#define SECTION_END(_name_) _name_##$$Limit
|
|
|
|
#define SECTION_END(_name_) _name_##$$Limit
|
|
|
|
#define IMAGE_SECTION_START(_name_) Image$$##_name_##$$Base
|
|
|
|
#define IMAGE_SECTION_START(_name_) Image$$##_name_##$$Base
|
|
|
|
@ -145,7 +145,7 @@ void cm_backtrace_init(const char *firmware_name, const char *hardware_ver, cons
|
|
|
|
strncpy(hw_ver, hardware_ver, CMB_NAME_MAX);
|
|
|
|
strncpy(hw_ver, hardware_ver, CMB_NAME_MAX);
|
|
|
|
strncpy(sw_ver, software_ver, CMB_NAME_MAX);
|
|
|
|
strncpy(sw_ver, software_ver, CMB_NAME_MAX);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
|
|
|
#if defined(__ARMCC_VERSION)
|
|
|
|
main_stack_start_addr = (uint32_t)&CSTACK_BLOCK_START(CMB_CSTACK_BLOCK_NAME);
|
|
|
|
main_stack_start_addr = (uint32_t)&CSTACK_BLOCK_START(CMB_CSTACK_BLOCK_NAME);
|
|
|
|
main_stack_size = (uint32_t)&CSTACK_BLOCK_END(CMB_CSTACK_BLOCK_NAME) - main_stack_start_addr;
|
|
|
|
main_stack_size = (uint32_t)&CSTACK_BLOCK_END(CMB_CSTACK_BLOCK_NAME) - main_stack_start_addr;
|
|
|
|
code_start_addr = (uint32_t)&CODE_SECTION_START(CMB_CODE_SECTION_NAME);
|
|
|
|
code_start_addr = (uint32_t)&CODE_SECTION_START(CMB_CODE_SECTION_NAME);
|
|
|
|
|