#!/bin/bash
# Input arguments (only one at a time)
elfread="build/zephyr/zephyr.elf"
addr2line="/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line"
address=$1
$addr2line -e $elfread $address