armink-rtt-pkgs / cmbacktrace Goto Github PK
View Code? Open in Web Editor NEWAdvance backtrace library for ARM Cortex-M series MCU | ARM Cortex-M 系列 MCU 错误追踪库
License: MIT License
Advance backtrace library for ARM Cortex-M series MCU | ARM Cortex-M 系列 MCU 错误追踪库
License: MIT License
能否举例在rt-thread studio下如何使用CmBacktrace定位hardfault的例子,文字说明看了不太明白,记得原来用过一次不过忘了。
CmBacktrace用到的究竟支持哪些文件“.out"?“.axf"?“.hex/elf"?,如果是axf如何生成?
测试环境 rtt5.1.0 nrf52832
add2line用的是https://github.com/armink/CmBacktrace/tree/master/tools/addr2line/win64
编译成功运行后分别进行如下测试
cmb_test ASSERT
PS *\build\keil\Obj> addr2line.exe -e rtthread.axf -afpiC 000176c2 0001830e 00029424 00027186
0x000176c2: assert_hook at */rt-thread/src/timer.c:?
0x0001830e: cmb_test at */rt-thread/components/finsh/shell.c:?
0x00029424: _msh_exec_cmd at */rt-thread/components/finsh/msh.c:294
(inlined by) msh_exec at */rt-thread/components/finsh/msh.c:503
0x00027186: finsh_get_prompt at */rt-thread/components/finsh/shell.c:95
(inlined by) finsh_thread_entry at */rt-thread/components/finsh/shell.c:648
cmb_test UNALIGNED
PS *\build\keil\Obj> addr2line -e rtthread.axf -afpiC 00018374 00018372 00029424 00027186
0x00018374: cmb_test at */rt-thread/src/timer.c:?
0x00018372: cmb_test at */rt-thread/components/finsh/shell.c:?
0x00029424: _msh_exec_cmd at */rt-thread/components/finsh/msh.c:294
(inlined by) msh_exec at */rt-thread/components/finsh/msh.c:503
0x00027186: finsh_get_prompt at */rt-thread/components/finsh/shell.c:95
(inlined by) finsh_thread_entry at */rt-thread/components/finsh/shell.c:648
cmb_test DIVBYZERO
PS *\build\keil\Obj> addr2line -e rtthread.axf -afpiC 0001832e 0001832c 00029424 00027186
0x0001832e: cmb_test at */rt-thread/src/timer.c:?
0x0001832c: cmb_test at */rt-thread/components/finsh/shell.c:?
0x00029424: _msh_exec_cmd at */rt-thread/components/finsh/msh.c:294
(inlined by) msh_exec at */rt-thread/components/finsh/msh.c:503
0x00027186: finsh_get_prompt at */rt-thread/components/finsh/shell.c:95
(inlined by) finsh_thread_entry at */rt-thread/components/finsh/shell.c:648
为什么都没有定位到实际位置呢,,可能什么原因,感谢
msh >cmb_test DIVBYZERO
怀疑与 RT-Thread/rt-thread#6327 是同一个问题
使用cmb_flash_log_println或者ulog输出到外部spi flash中场景:
hardfault中断中,最终会调用spi 操作, 会存在使用mutex锁情况。
中断中不能使用mutex锁, 是否存在此问题,导致输出异常?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.