Skip to main content
scottSD
Senior III
April 29, 2021
Question

How to determine assert message when "No source available"?

  • April 29, 2021
  • 1 reply
  • 857 views

It is very frustrating not having information when a program crashes and the stack trace only provides the following: "No source available for "abort() at" 

Viewing disassembly does not provide it either...

Does anyone know how to determine what the source assert message is or must we ask on this forum to have someone at ST tell us what the assert message is when the source is not available?

The particular message I am talking about is:

No source available for "abort() at 0x8041896"

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
April 29, 2021

Some address in some undefined application, probably not going to get much help with that.

A lot of ST's code has asserts with __LINE__ and __FILE__ references so you don't need source in hand, and someone can look it up. This sort of thing, and hard fault dumps are the sort of thing end-users can push back on developers to help diagnose failure modes/paths.

The binary might contain other strings that would shed some context on the code, sources, and functions surrounding it. A .ELF or .MAP would typically provide symbolic information, narrowing down addresses.

Here, at least you could probably break-point and look at MCU registers and disassembly.

A full disassembly could probably get a good lay-of-the-land.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..