Segger J-Link Software
J-Link Software
To support interaction with Segger’s J-Link Software tooling during production, an SBC can be included in the PPC.
For example, to program the EFM32 of a SiLabs EFM32WG-STK3800 Wonder Gecko Starter Kit over its built-in J-Link programmer using J-Link Commander:
Sample Test Plan
title: "Program EFM32 using Segger J-Link Commander"
suite:
- title: Defines
ident: TPM
steps:
- command: define FIRMWARE.hex "STM3800_blink.hex"
- command: define SBC.uart "UART2"
- title: New SBC Session
steps:
- command: agentCfg PROGSBC %SBC.uart%
with:
- "%FIRMWARE.hex%"
- title: "Program EFM32 with J-Link Commander"
steps:
- command: uart %SBC.uart%
send: |
/opt/SEGGER/JLink/JLinkExe -device EFM32WG990F256; echo prog:$?:DONE
eoe 1
si 1
speed 4000
r
erase
loadfile %FIRMWARE.hex%
verify
r
q
extract: "prog:(\\d+):DONE"
extractKey: RETVAL
timeout: 2m
- command: eval "%RETVAL% == 0"
Tip
J-Link Commander interaction can be inspected in the UART2 logs in the Test Report.
References
Example PLTcloud Projects