GithubHelp home page GithubHelp logo

Comments (6)

jacobrosenthal avatar jacobrosenthal commented on September 26, 2024

Seems like thats gimli? maybe here

let fde = debug_frame.fde_for_address(bases, pc.into(), DebugFrame::cie_from_offset)?;

from probe-run.

japaric avatar japaric commented on September 26, 2024

Forgot to document this: when you use the release profile you need to set debug = 1 (or higher) in the crate/workspace Cargo.toml. This is the default in the cortex-m-quickstart template but if you are using something else you'll need to set it manually. Could you check that @jacobrosenthal ? If release still doesn't work; does the dev profile work?

from probe-run.

jacobrosenthal avatar jacobrosenthal commented on September 26, 2024

I did not. However it didnt seem to help (true, nor 2), nor did dev mode.

from probe-run.

japaric avatar japaric commented on September 26, 2024

Next thing that can fail is non-Rust subroutines w/o CFI information, e.g. external assembly (old releases of cortex-m have this issue) or C code. Could you check that cortex-m is set to latest version (0.6.3) in Cargo.lock? Also do you have C dependencies?

Given that this fails in the very first frame then it's likely external assembly. Could you disassembly the ELF to see which routine contains the 0x0800132e address? Given your example the commands would be:

$ # rust-objdump is part of the `cargo-binutils` crate
$ rust-objdump -Cd target/thumbv7em-none-eabi/release/examples/cycle_count

Then look for the address that appears in the first frame of the backtrace ( 0x0800132e in the example). You should see something like this:

00000e8a __bkpt:
     e8a: 00 be                         bkpt    #0
     e8c: 70 47                         bx      lr

^ That's an example with the wrong address but we'd like to identify the subroutine that's causing problems (in the example above it would be __bkpt for address 0x00000e8a).

Alternatively, you can point me to the source code of the program that's giving you issues but I'll need the exact Cargo.lock and Cargo.toml files you are using plus the updated error message with command line invocation to diagnose the error.

from probe-run.

jacobrosenthal avatar jacobrosenthal commented on September 26, 2024

from probe-run.

japaric avatar japaric commented on September 26, 2024

Thanks for checking! Will improve the error message and add some notes to the docs.

from probe-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.