《EOSS 2023.pdf》由會員分享,可在線閱讀,更多相關《EOSS 2023.pdf(22頁珍藏版)》請在三個皮匠報告上搜索。
1、#EMBEDDEDOSSUMMITAdding Coredumps To Your Debugging ToolkitEric Johnson,Memfaultejohnso49#EMBEDDEDOSSUMMITAbout Me:-Firmware Solutions Engineer Memfault-Previously:Walgreens Health,Athos,Acuity Brands,Lexmark-First encountered Zephyr at OSS 2018-Met Tyler Hoffman at ZDS 2022-Contributor of humble bu
2、g fixes to BLE,Kernel,Shell subsystems Coredumps Overview Coredumps+Zephyr Zephyr Asserts and Fault Handling Subsystem Components Host Tools Scripting Demo!Future WorkLogging is great,untilPanics are great,but only show 1 frame-Triggered by faults,kernel panics,asserts-Captures registers and memory
3、to allow for later analysis-Data can be streamed out immediately or stored in non-volatile memoryCoredumpsCoredump ComponentsZephyr Assertion Call GraphZephyr Fault Handling Call GraphCoredump SubsystemDevice Region Example#EMBEDDEDOSSUMMITCoredump Host Tools-GDB can be built with Python extension s
4、upport-Zephyr toolchain defaults to no-py version-Use Python with“-py”-Requires matching system Python install-Use venv+gdbundle to manage packagesScripting Extensions#EMBEDDEDOSSUMMITDemo!ISR-safe Flash backed:See issueAllow application to override linker memory regionEncourage users to submit core
5、dumps with bugs/issuesAdd example using flash simulation region for backendExtend west to convert log output and run coredump serverFuture W To Find MeView tasks,stack traces,registers,and local variablesCoredumps in MemfaultView all global variables at time of coredumpCoredumps in Memfault#EMBEDDEDOSSUMMITAcknowledgements:-Coredump subsystem maintainers and contributors-Coredump:A brief introduction and demo by Daniel Leunghttps:/