Skip to content

Commit

Permalink
keira; fix addr2line for windows pc (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
black-ghost-off authored Mar 26, 2024
1 parent aa3de2a commit 87990cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions firmware/keira/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def decode_backtrace(*args, **kwargs):
bin_dir = Path(env.PioPlatform().get_package_dir("toolchain-riscv32-esp")) / "bin"

# Find the addr2line binary
addr2line = next(bin_dir.glob("*-addr2line"), None)

if os.name == 'nt':
addr2line = next(bin_dir.glob("*-addr2line.exe"), None)
else:
addr2line = next(bin_dir.glob("*-addr2line"), None)
# Get .elf file
src_path = Path(env.subst("$PROGPATH"))
print('Decoding backtrace for', src_path)
Expand Down

0 comments on commit 87990cf

Please sign in to comment.