This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to know which instruction is in a Faulting instruction address

Good morning!

I am testing an application on Visual Studio Code + nRF Connect. I have a crash:

<err> os: Faulting instruction address (r15/pc): 0x0002c064

How can I know which C instruction or function is in this address? Any of the generated files? I have reviewed rom.json, but it only shows sizes, not addresses.

Thank you,

David.

Parents Reply
  • Hi Depraz!

    Awesome, I got it:

    arm-none-eabi-addr2line.exe -e ./zephyr.elf -a 0x0002c064
    0x0002c064
    D:/ncs/v1.9.1/zephyr/subsys/logging/log_core.c:126

    I use Windows, and searched for the executable; it's in .\v1.9.1\toolchain\segger_embedded_studio\gcc\arm-none-eabi\bin

    Thank you!

    David.

Children
No Data
Related