Difference between revisions of "J-Run"

From SEGGER Wiki
Jump to: navigation, search
(Created page with "J-Run is a test tool to automatically run an application on a target device and receive its terminal output. https://blog.segger.com/j-run-automating-performance-tests ==...")
(No difference)

Revision as of 17:33, 14 August 2019

J-Run is a test tool to automatically run an application on a target device and receive its terminal output.

https://blog.segger.com/j-run-automating-performance-tests


Usage

JRun [options] elf-file
Option Alias Default Description
-d str --device str STM32F407IE Set device name to "str".
--if SWD/JTAG SWD Select SWD or JTAG as target interface.
--speed n 4000 Set interface speed to n kHz.
--rtt Auto Explicitly enable RTT.
--nortt Auto Explicitly disable RTT.
--sh Auto Explicitly enable semihosting.
--nosh Auto Explicitly disable semihosting.
-x str --exit str *STOP* Set exit wildcard to "str".
--quit On Automatically exit J-Run on application exit.
--wait Off Wait for key press on application exit.
-2 --stderr Off Also send target output to stderr.
-s --silent Off Work silently.
-v --verbose Off Increase verbosity.

Example Output

C:> jrun SEGGER_RTT_JRun_Demo.elf
 
(c) 2018 SEGGER Microcontroller GmbH    www.segger.com
J-Run compiled Mar 19 2018 10:31:28
 
Open application...OK
Set target device to MK66FN2M0xxx18...OK
Select SWD interface...OK
Set interface speed to 4000 kHz...OK
Reset target...OK
Download 00000000-0000234F...OK
Download 00002350-00002397...OK
Set RTT control block at 0x20002090...OK
Start target application...OK
Start RTT...OK
Read terminal data...
 
SEGGER J-Run demo.
 
Took 2582433 cycles
 
C:> _
C:> jrun --silent SEGGER_RTT_JRun_Demo.elf
SEGGER J-Run demo.
 
Took 2582433 cycles

C:> _