Closed LukasMino closed 1 year ago
How did you get the USB device into WSL2?
What works is to call the Windows binary from withing WSL2, so if you have JLinkExe.exe
on Windows create a symlink to that with the name JLinkExe
in a directory in your PATH
.
Then the Windows tool should be picked up when you set PROGRAMMER=jlink
.
I actually got it to work, but flashing it only worked using a VM (in my case Workstation Player). But using it inside WSL afterwards is still possible.
@benpicco Thank you for your answer :) I forwarded the USB device from the Windows Shell (see here). In the end I should have just installed JLink and nrf-tools inside the WSL enviroment and not over Windows but that might work as well (have not tried it).
Open On-Chip Debugger 0.10.0
That's the issue. That is a prehistoric version (six years old as of now) without a flash driver for nRF5x MCUs. The current stable release of OpenOCD is 0.12.0 - I strongly recommend to use the latest stable release of OpenOCD. See https://openocd.org/pages/getting-openocd.html on how to install that.
I think OpenOCD 0.11.0 would also work with nRF5x, but I'm not sure.
As @benpicco said: Likely the route of least effort is to go with a Windoofs version of J-Link or OpenOCD and call that from within WSL, as you don't have to jump through the USB over IP hoops.
If you need further assistance, feel free to ask here. I'm closing this issue, though, as it is not due to a bug on the RIOT side.
Description
I am trying to flash my nrf52840dk board with
gnrc_border_router
, but it always fails.Steps to reproduce the issue
Ubuntu console in WSL 2.0:
Without admin priveledges it would not find my board.
Expected results
It should flash the board successfully.
Actual results
I do not know why it says
make: command: Command not found
at the beginning.Versions
Operating system: Windows 11 using WSL 2.0 and Ubuntu 20.04 Board: Nordic Board nrf52840dk