Hi,
I have a Nordic NRF52840 DK board with a PCA10056.
It works fine in Visual Studio Code.
I connect it via USB.
I'm currently looking into automated testing. This means that I want to send commands via RTT/UART to the device to execute some part of the firmware functionality.
For this I'm using a Raspberry Pi, which is installed with the bare minimum (so no X11 libraries and stuff).
But when I want to use JLink without GUI, it somehow forces it to use GUI, which is not working because I don't use X11 libraries:
Display All
I tried both JTAG and SWD but both have the same result.
I actually want to use pytest, and I want to know if this is possible via the USB interface?
Otherwise I have to wire 2 additional I/O for an additional UART.
Visual Studio Code somehow manages to communicate with this device over RTT without any GUI. Probably by using the Nordic plugins.
I have a Nordic NRF52840 DK board with a PCA10056.
It works fine in Visual Studio Code.
I connect it via USB.
I'm currently looking into automated testing. This means that I want to send commands via RTT/UART to the device to execute some part of the firmware functionality.
For this I'm using a Raspberry Pi, which is installed with the bare minimum (so no X11 libraries and stuff).
But when I want to use JLink without GUI, it somehow forces it to use GUI, which is not working because I don't use X11 libraries:
Source Code
- 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 00h 01m 44s
- 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>S
- 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>
I actually want to use pytest, and I want to know if this is possible via the USB interface?
Otherwise I have to wire 2 additional I/O for an additional UART.
Visual Studio Code somehow manages to communicate with this device over RTT without any GUI. Probably by using the Nordic plugins.