Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add CFI directives to asm blocks

Open
#695 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
embedded-iot

Research direction

Start by locating the assembly blocks in the cortex-m crate and read the linked ARM guidance and related rust-embedded/aarch32 issue. Use the reported probe-rs unwind error as a reference when checking the affected paths. Done means the debugger can unwind through the relevant assembler functions without the reported CFA error.

Written by the indexing model from the issue text.

Description

See https://support.arm.com/documentation/107976/22-1-0/Debug-information-for-your-application/How-to-get-a-backtrace-through-AArch32-assembler-functions for details on telling the debugger about where functions start and end, and when LR is corrupted.

See also https://github.com/rust-embedded/aarch32/issues/230

This might resolve the following probe-rs error:

Firmware exited with: Unknown runtime error
ERROR probe_rs_debug::debug_info: Other("UNWIND: Tried to unwind `RegisterRule` at CFA = None.")
Core 0
    Frame 0: syscall1 @ 0x16c4 inline
        /Users/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-semihosting-app/src/bin/panic.rs:9:1
    <snip stack frames>
    Frame 9: Reset : ERROR: UNWIND: Tried to unwind `RegisterRule` at CFA = None. @ 0x13a
Error: Unknown runtime error
Dominant language
Rust
Stars
1k
Forks
201
Avg merge
1h 8m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-embedded/cortex-m

All issues in rust-embedded/cortex-m

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.