Hi all,
I am trying to set up new test station for our product on Jenkins. My first step was enabling automatic binary loading from artefacts so step for this look like this
Display All
so basically I make new file program.jlink with sequence:
r
loadfile "our_tag.hex"
r
go
q
then I am trying to call JLink.exe with params listed. Problem is that JLink.exe never stops:
Display All
Unknown command then cycle till I kill it. If I put it right to powershell window it just execute itself exit.
any idea what I did wrong ?
Thanks in advance!
Joe
I am trying to set up new test station for our product on Jenkins. My first step was enabling automatic binary loading from artefacts so step for this look like this
Java Source Code
- stage("Download MCU"){
- when {
- expression { params.download_mcu == true }
- }
- steps {
- copyArtifacts filter: '**/*Release*.hex', projectName: "Pyrrha FW/develop", selector: specific("${params.mcu_build_number}")
- powershell """
- \$hex_path=Get-ChildItem *.hex -Name
- "r`r`nloadfile \$hex_path `r`nr`r`ngo `r`nq" > program.jlink
- echo "exit `r`n" | &'C:/Program Files (x86)/SEGGER/JLink_v670c/JLink.exe' -device STM32F777NI -speed 4000 -if SWD -autoconnect 1 -CommanderScript C:/data/jenkins/workspace/pyrrha-testing_'${BUILD_NUMBER}'/program.jlink
- """
- }
- }
so basically I make new file program.jlink with sequence:
r
loadfile "our_tag.hex"
r
go
q
then I am trying to call JLink.exe with params listed. Problem is that JLink.exe never stops:
Shell-Script
- Copied 1 artifact from "Pyrrha FW » develop" build number 170
- [Pipeline] powershell
- SEGGER J-Link Commander V6.70c (Compiled Apr 7 2020 16:26:04)
- DLL version V6.70c, compiled Apr 7 2020 16:25:12
- J-Link Command File read successfully.
- Processing script file...
- Unknown command. '?' for help.
- Script processing completed.
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link Ultra V4 compiled Apr 16 2020 17:18:49
- Hardware version: V4.00
- S/N: 504504689
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- VTref=3.036V
- Device "STM32F777NI" selected.
- Connecting to target via SWD
- Found SW-DP with ID 0x5BA02477
- Found SW-DP with ID 0x5BA02477
- DPIDR: 0x5BA02477
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x74770001)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xE00FD000
- CPUID register: 0x411FC270. Implementer code: 0x41 (ARM)
- Found Cortex-M7 r1p0, Little endian.
- FPUnit: 8 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ E00FD000
- ROMTbl[0][0]: E00FE000, CID: B105100D, PID: 000BB4C8 ROM Table
- ROMTbl[1] @ E00FE000
- ROMTbl[1][0]: E00FF000, CID: B105100D, PID: 000BB4C7 ROM Table
- ROMTbl[2] @ E00FF000
- ROMTbl[2][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
- ROMTbl[2][1]: E0001000, CID: B105E00D, PID: 000BB002 DWT
- ROMTbl[2][2]: E0002000, CID: B105E00D, PID: 000BB00E FPB-M7
- ROMTbl[2][3]: E0000000, CID: B105E00D, PID: 000BB001 ITM
- ROMTbl[1][1]: E0041000, CID: B105900D, PID: 001BB975 ETM-M7
- ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BB9A9 TPIU-M7
- Cache: Separate I- and D-cache.
- I-Cache L1: 16 KB, 256 Sets, 32 Bytes/Line, 2-Way
- D-Cache L1: 16 KB, 128 Sets, 32 Bytes/Line, 4-Way
- Cortex-M7 identified.
- J-Link>Unknown command. '?' for help.
- J-Link>Unknown command. '?' for help.
- J-Link>Unknown command. '?' for help.
- J-Link>Unknown command. '?' for help.
any idea what I did wrong ?
Thanks in advance!
Joe