debugging - debug Crash dump in firmware
问题描述
In embedded software, when the firmware crashes in the system, is there a way you can get access to something like crash dumps in desktop applications?
I want to use that information to know the CPU and registers state just at the moment that firmware has crashed.
解决方案
根据您使用的控制器,有多个位可以告诉您控制器的重置原因。在大多数情况下,这不会告诉您有关应用程序中问题根源的任何信息。
例如,在发生空指针异常之后,所有控制器都会跳转到 Hardfault Handler。在调试期间,您可能能够检查调用堆栈以找出异常的来源。
您想要在桌面应用程序中获得的所有其他信息都必须由您自己编程。例如,您可以在重置控制器之前尝试将您的处理器堆栈保护到一些非易失性内存中。
推荐阅读
- rest - 如何在 JMeter 中发送带有 x-www-for-urlencoded 正文的 POST 请求?
- c# - 对象的二进制序列化到具有特定 unicode 的文件
- asp.net-core-mvc - ASP.NETCore 3.0 Dropdownlist 错误 - InvalidOperationException:没有“IEnumerable”类型的 ViewData 项
' 有钥匙 - python - Scip 与 Pyomo 接口的问题
- html - 如何修复我的 li 元素的样式,使其出现在同一行?
- python-3.x - 如何找出 WebDriverWait 是成功的?
- java - 在 Java 中将 Stream 转换为字符串
- javascript - 角度路由在手动刷新或直接输入 url 时进入主页
- java-11 - 无法在 gmaven-plugin 插件中加载 mojo 'execute'
- angular7 - Angular7 oidc 与 Identityserver4 的集成