klonyyy / STMViewer

Real-time STM32 variable & trace viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow relative elf file path in cfg file

dzid26 opened this issue · comments

I wanted to add project file to revision control, but it contains absolute path.

Related:

file_path = C:/Users/klonyyy/PROJECTS/STMViewer_/STMViewer/test/STMViewer_test/Debug/STMViewer_test.elf

But does it work?

I tried:

[elf]
file_path = .\.pio\build\ServoCAN_release\firmware.elf

or:

[elf]
file_path = .pio\build\ServoCAN_release\firmware.elf

and it fails when updating variable addresses.
image

Relative means to the place the binary is run from. So you have to make sure the directory you're referring to is in the binary folder, otherwise you have to step out of it using ../ (you can see the example in my commit - I've checked it on both Windows and Ubuntu and it works fine)

So this only works for your example.

The path should be relative to cfg file location. Can you reopen the issue?

Now I understand what you meant. Please provide a full issue description next time so that we're both on the same page.