hard debugging on nrf52840

Hi,

i have this error in the program i developed but i don't know how to see the map of the program to try to intercept the problem. Can someone explain to me how to generate the map in order to identify where the program could have the problem? I think something is happening at address 0x20040000 but I can't find the way to verify.

I problem happens not always at the same time but randomly and BFAR address is always the same.

Thank you

Silvio

Parents
  • Hello

    You can look up where in the program the address is using the addr2line tool:

    https://linux.die.net/man/1/addr2line

    In my toolchain installation it is located at c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line.exe

    As inputs you could give it your zephyr.elf file using -e and the address you want to look up.

    Best regards,

    Einar

  • thank you very much. I discovered that this fatal error was caused by an array variable that was smaller than it actually used.

Reply
  • thank you very much. I discovered that this fatal error was caused by an array variable that was smaller than it actually used.

Children
No Data