Hi,
Win10 can run a subsystem, which is Ubuntu for me, in the powershell environmental. But I can not connect the pca10040 debugger. it show error when I try to erase the board.
ERROR: There is no debugger connected to the PC.
Hi,
Win10 can run a subsystem, which is Ubuntu for me, in the powershell environmental. But I can not connect the pca10040 debugger. it show error when I try to erase the board.
ERROR: There is no debugger connected to the PC.
Could you paste more? You run GDB on that Linux subsystem? How exactly you try to connect the debugger?
I run nrfjprog on the Linux subsystem(Ubuntu). I suppose the nrfjprog will automatic detect the Jlink debugger on the PCA10040, as nrfjprog does under windows. Do I need any specific operation to use the linux version nrfjprog rather than windows version?
PS: I just type simple "nrfjprog -e" command under windows powershell bash, and that ERROR comes out.
I assume nrfjprog works only on Windows because it uses SEGGER DLLs and others. These rely on SEGGER J-Link driver which connects J-Link OB (on nRF5x DK) over USB with PC host. Not sure how that would work in Linux subsystem of Win10... But once you have Windows why you don't use that directly? Alternatively follow guide about how to flash on Linux (by using OpenOCD I suppose) without nrfjprog and SEGGER tools.
Yes, OpenOCD is a good idea!
I was setting up the an environment for zephyr on Linux, and I don't want to install vm on my PC :)
Excuse me but then I don't understand the point of having Makefile(s) using nrfjprog under nRF5_SDK_12.3.0\examples\peripheral\{PROJECT}\pca10028\s130\armgcc
I'm as well trying to get blinky Makefile working in Bash on Windows 10 and I don't get why it is advised to not use nrfjprog since nrfjprog is already used in the example Makefile.
I installed nrfjprog, gcc-arm-none-eabi, JLink and set up the COM (Windows) to Serial Port (Linux) link and then I find this answer...