CmBacktrace
CmBacktrace copied to clipboard
Advanced fault backtrace library for ARM Cortex-M series MCU | ARM Cortex-M 系列 MCU 错误追踪库
*SCB_CCR |= (1
error: #147
..\..\lib\cm_backtrace\cm_backtrace.c(48): error: #147: declaration is incompatible with "char STACK$$Base" (declared at line 65 of "..\..\..\components\libraries\util\app_util.h") the line 65 of "..\..\..\components\libraries\util\app_util.h" as follow extern char STACK$$Base; 
Hi, Your lib is really what I want, and it will be great if I can trace the call routine of the functions in uboot.
1. 在RTTV4.10中使用,使用最新版本。 没有使用easyflash的文件后端去保存。 2.使用了文件系统。想使用cmb文件后端保存为文件使用。 已成功将ulog组件日志输出到文件系统中。 3.cmb_flash_log.c这个文件怎么在github中找不到了。从RTT软件包中还可以配置下载。 4.cmb文件后端的调用是不是只写了eaysflash的使用情况。 直接对fal分区进行操作了。 我如果使用文件系统,就读不出正确的len长度,导致错误。 ` fal_partition_read(cmb_log_part, addr, (uint8_t *)&len, sizeof(size_t)); if (len != 0xFFFFFFFF) { char log_buf[ULOG_LINE_BUF_SIZE]; if (!has_read_log) { has_read_log = RT_TRUE; LOG_I("An CmBacktrace...
环境:KEIL5.29 编译器:AC6.13.1 FreeRTOS: V10.4.6,task.c中已增加uxSizeOfStack cmb_cfg.h: #define cmb_println(...) printf(__VA_ARGS__);printf("\r\n");/* e.g., printf(__VA_ARGS__);printf("\r\n") */ #define CMB_USING_OS_PLATFORM #define CMB_OS_PLATFORM_TYPE CMB_OS_PLATFORM_FREERTOS #define CMB_CPU_PLATFORM_TYPE CMB_CPU_ARM_CORTEX_M4 /* enable dump stack information */ #define CMB_USING_DUMP_STACK_INFO /* language of...
同样工程,测试cmb_test DIVBYZERO,使用armc5编译,可以正常定位到异常位置,但使用armc6则定位不到,可能是什么原因呢,感谢! 
10.5.1 用这个接口xTaskGetCurrentTaskHandle(), 可以获取当前任务的handle,根据handle就是(TCB_t)可以获得想要的信息。
./components/cm_backtrace\cm_backtrace.h(32): warning: In file included from... ./components/cm_backtrace/cmb_def.h(364): error: function definition is not allowed here __attribute__( (always_inline) ) static __inline uint32_t cmb_get_msp(void) { ^ ./components/cm_backtrace/cmb_def.h(369): error: function definition is not allowed...
https://github.com/armink/CmBacktrace/blob/8d07e7ba078fbd57af89286fc217157bc9a6d2ac/demos/os/freertos/stm32f10x/FreeRTOS/tasks.c#L4817 不应该为pxCurrentTCB嘛?