ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
23 stars 5 forks source link

command:cmsis-csolution.getBinaryFile returns path to a non-existing .axf file (In Linux environment) #45

Closed AkiMakkonen-AlifSemi closed 11 months ago

AkiMakkonen-AlifSemi commented 11 months ago

This is a similar case than https://github.com/ARM-software/vscode-cmsis-csolution/issues/42

Version 1.11.2 works as expected in Windows.

But in Ubuntu 22.04: v.1.11.0 getBinaryFile works as expected v.1.11.1 getBinaryFile returns empty string v.1.11.2 getBinaryFile returns path to non-existing debug+HE.axf file (building with GCC so it should be .elf by default)

In cproject.yaml I set output like this: output: base-name: $Project$ type:

mcgordonite commented 11 months ago

Has the cbuild.yml generated correctly for the .debug+HE context? The extension uses the output node in the cbuild file to find the binary name.

AkiMakkonen-AlifSemi commented 11 months ago

Yes, it seems to be ok. .axf is not mentioned in it and the filenames are ok. I am using cmsis-toolbox 2.1 if that matters.

output-dirs: intdir: tmp/blinky/HE/debug outdir: out/blinky/HE/debug rtedir: RTE output: