Difference between revisions of "J-Run"
(→Usage) |
m |
||
Line 11: | Line 11: | ||
|- |
|- |
||
! Option |
! Option |
||
− | ! Alias |
||
! Default |
! Default |
||
! Description |
! Description |
||
|- |
|- |
||
− | | - |
+ | | -device ''str'' |
− | | --device ''str'' |
||
| STM32F407IE |
| STM32F407IE |
||
| Set device name to "str". |
| Set device name to "str". |
||
|- |
|- |
||
− | | |
+ | | -if ''SWD/JTAG'' |
− | | |
||
| SWD |
| SWD |
||
| Select SWD or JTAG as target interface. |
| Select SWD or JTAG as target interface. |
||
|- |
|- |
||
− | | |
+ | | -speed ''n'' |
− | | |
||
| 4000 |
| 4000 |
||
| Set interface speed to n kHz. |
| Set interface speed to n kHz. |
||
|- |
|- |
||
| --rtt |
| --rtt |
||
− | | |
||
| Auto |
| Auto |
||
| Force RTT enabled. |
| Force RTT enabled. |
||
|- |
|- |
||
| --nortt |
| --nortt |
||
− | | |
||
| Auto |
| Auto |
||
| Force RTT disabled. |
| Force RTT disabled. |
||
|- |
|- |
||
− | | -- |
+ | | --semihost |
− | | |
||
| Auto |
| Auto |
||
| Force semihosting enabled. |
| Force semihosting enabled. |
||
|- |
|- |
||
− | | -- |
+ | | --nosemihost |
− | | |
||
| Auto |
| Auto |
||
| Force semihosting disabled. |
| Force semihosting disabled. |
||
|- |
|- |
||
− | | -x ''str'' |
||
| --exit ''str'' |
| --exit ''str'' |
||
| *STOP* |
| *STOP* |
||
Line 56: | Line 47: | ||
|- |
|- |
||
| --quit |
| --quit |
||
− | | |
||
| On |
| On |
||
| Automatically exit J-Run on application exit. |
| Automatically exit J-Run on application exit. |
||
|- |
|- |
||
| --wait |
| --wait |
||
− | | |
||
| Off |
| Off |
||
| Wait for key press on application exit. |
| Wait for key press on application exit. |
||
|- |
|- |
||
− | | -2 |
||
| --stderr |
| --stderr |
||
| Off |
| Off |
||
Line 71: | Line 59: | ||
|- |
|- |
||
| -s |
| -s |
||
− | | --silent |
||
| Off |
| Off |
||
| Work silently. |
| Work silently. |
||
|- |
|- |
||
| -v |
| -v |
||
− | | --verbose |
||
| Off |
| Off |
||
| Increase verbosity. |
| Increase verbosity. |
||
Line 83: | Line 69: | ||
== Example Output == |
== Example Output == |
||
− | C:> jrun |
+ | C:> jrun --wait JRun_Demo.elf |
+ | J-Run compiled Aug 15 2019 12:09:19 |
||
− | |||
− | (c) 2018 SEGGER Microcontroller GmbH www.segger.com |
+ | (c) 2018-2019 SEGGER Microcontroller GmbH www.segger.com |
+ | |||
− | J-Run compiled Mar 19 2018 10:31:28 |
||
− | |||
Open application...OK |
Open application...OK |
||
− | Set target device to |
+ | Set target device to STM32F407IE...OK |
Select SWD interface...OK |
Select SWD interface...OK |
||
Set interface speed to 4000 kHz...OK |
Set interface speed to 4000 kHz...OK |
||
Reset target...OK |
Reset target...OK |
||
− | Download |
+ | Download 08000000-08002E19...OK |
+ | SEGGER_SEMIHOST_DebugHalt found at 0x00000000 |
||
− | Download 00002350-00002397...OK |
||
− | Set RTT control block at 0x20002090...OK |
||
Start target application...OK |
Start target application...OK |
||
+ | Reading output from target until exit command. |
||
− | Start RTT...OK |
||
+ | ============================================== |
||
− | Read terminal data... |
||
+ | |||
− | |||
SEGGER J-Run demo. |
SEGGER J-Run demo. |
||
Took 2582433 cycles |
Took 2582433 cycles |
||
+ | |||
− | |||
+ | J-Run finished. Press any key to exit. |
||
C:> _ |
C:> _ |
||
− | C:> jrun --silent |
+ | C:> jrun --silent JRun_Demo.elf |
SEGGER J-Run demo. |
SEGGER J-Run demo. |
||
Took 2582433 cycles |
Took 2582433 cycles |
||
− | |||
C:> _ |
C:> _ |
Revision as of 15:19, 15 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 | Default | Description |
---|---|---|
-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 | Force RTT enabled. |
--nortt | Auto | Force RTT disabled. |
--semihost | Auto | Force semihosting enabled. |
--nosemihost | Auto | Force semihosting disabled. |
--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. |
--stderr | Off | Also send target output to stderr. |
-s | Off | Work silently. |
-v | Off | Increase verbosity. |
Example Output
C:> jrun --wait JRun_Demo.elf J-Run compiled Aug 15 2019 12:09:19 (c) 2018-2019 SEGGER Microcontroller GmbH www.segger.com Open application...OK Set target device to STM32F407IE...OK Select SWD interface...OK Set interface speed to 4000 kHz...OK Reset target...OK Download 08000000-08002E19...OK SEGGER_SEMIHOST_DebugHalt found at 0x00000000 Start target application...OK Reading output from target until exit command. ============================================== SEGGER J-Run demo. Took 2582433 cycles J-Run finished. Press any key to exit. C:> _
C:> jrun --silent JRun_Demo.elf SEGGER J-Run demo. Took 2582433 cycles C:> _