Hi,
I want to know how to connect to nrf52840 DK using CLI. So no GUI!!
I'm using a headless computer (Raspberry Pi) to do automatic test cases. It needs to send commands to the nrf52840 DK.
So I was looking into pytest or something similar. But it looks like I can only use JLink but it doesn't work?!
This is what I get using JLink:
pi@raspberrypi:/opt/SEGGER/JLink $ sudo ./JLinkExe -NoGUI 1 SEGGER J-Link Commander V7.80c (Compiled Sep 27 2022 16:10:59) DLL version V7.80c, compiled Sep 27 2022 16:10:35 Connecting to J-Link via USB...O.K. Firmware: J-Link OB-nRF5340-NordicSemi compiled Nov 7 2022 16:22:01 Hardware version: V1.00 J-Link uptime (since boot): 0d 07h 28m 25s S/N: ******* USB speed mode: Full speed (12 MBit/s) VTref=3.300V Type "connect" to establish a target connection, '?' for help J-Link>connect Please specify device / core. <Default>: Unspecified Type '?' for selection dialog Device>nrf52840 Please specify target interface: J) JTAG (Default) S) SWD F) FINE I) ICSP C) C2 T) cJTAG TIF> Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect JTAGConf> Specify target interface speed [kHz]. <Default>: 4000 kHz Speed> ./JLinkGUIServerExe: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory No valid device has been selected. J-Link>
The device is listed:
/dev/serial/by-id/usb-SEGGER_J-Link_000*******-if00
The reason there are no X libraries installed on the Raspberry Pi is because the OS needs to remain small and fast recoverable.
Also there is no reason to have X like software installed on a headless machine.
So I want to know how to use pytest or something similar to communicate with the nrf52840 DK using CLI only?