Skip to content

Decode assertion File IDs in F Prime GDS #4666

@celskeggs

Description

@celskeggs
F´ Version fprime @ v4.0.1a1-103-g89a9e3247, fprime-gds==4.0.2a11.dev3+gc55a33b86
Affected Component fprime-gds, build system

Feature Description

For small embedded systems, it is very useful to set FW_ASSERT_LEVEL to FW_FILEID_ASSERT, because this eliminates the overhead of embedding source code filenames into the flight binary.

However, this adds an extra step to understand the cause of an assertion like the following:

Assert in file 0x12345678, line 123: 1

The user must run fprime-util hash-to-file 0x12345678 to find the file, and then go back to the original message to find the line. It would be much more convenient if the F Prime GDS could decode the file ID automatically.

Rationale

Ease of use, faster debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions