RTT Viewing over Command Line

Hello,

For manufacturing purposes I want to be able to have a script that programs the board (I've achieved this already). Once programming is done I have the MAC address wrote over RTT so it can be recorded.

I want to automate this process, however I can't find a command line way to do this.

This:

@echo off
cd "C:\Program Files (x86)\SEGGER\JLink"
JLink.exe -device nRF52833_xxAA -if SWD -speed 4000 -autoconnect 1 -RTTTelnetPort 19021
pause

Gets me to a point where I believe I'm connected but I don't know how to get the actual RTT output over the command line.

Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[0][1]: E0001000 CID B105E00D PID 003BB002 DWT
[0][2]: E0002000 CID B105E00D PID 002BB003 FPB
[0][3]: E0000000 CID B105E00D PID 003BB001 ITM
[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
[0][5]: E0041000 CID B105900D PID 000BB925 ETM
Cortex-M4 identified.
J-Link>

In RTT viewer I see the exact same thing, BUT the last step is

"LOG: RTT Viewer connected."

What is the command that does this?

Thanks!

Parents Reply Children
No Data
Related