Hi,
I'm having similar issues, with all my pre-existing Nios project compiling but unable to run/debug and have tried those workarounds (and succesfully upgraded to wsl 2) and other solutions seen in previous post such as :
change
APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB))
to
APP_LDFLAGS += -msys-lib=hal_bsp
and manually making an project.elf.srec file with
BUILD_PRE_PROCESS := touch $(ELF).srec
but it still display the following errors :
wslpath: ./Found: No such file or directory
wslpath: ./Found.srec: No such file or directory
nios2-elf-objcopy.exe: supported targets: elf32-littlenios2 elf32-bignios2 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
wslpath: ./Found.srec: No such file or directory
Using cable "USB-BlasterII [USB-1]", device 1, instance 0x00
Pausing target processor: not responding.
Resetting and trying again: FAILED
Leaving target processor paused
rm: cannot remove './Found.srec': No such file or directory
So is there any other workaround you can think of ? I'm also interested in understanding what causes all this previously functioning project to stop working.
Any ideas would be welcome
Kindly,