cancel
Showing results for 
Search instead for 
Did you mean: 

Run STM32 scripts to generate SFI file in GitLab CI/CD pipeline

mikel-m
Associate II

Hi,

I have executed the scripts to generate SFI on a Linux machine and I have successfully completed the process. Now, I want to run these scripts in a GitLab CI/CD pipeline to automate the process. However, when I try to execute the script, I get this error:
$ ./GenerateSFI_OEM_Dev.sh
qt.qpa.xcb: could not connect to display
Segmentation fault (core dumped)

Does anyone know how I can run these scripts in a GitLab CI/CD pipeline? For example, I want to execute this script:

#!/bin/sh
# Set to the default installation path of the Cube Programmer tool
# If you installed it in another location, please update path
tool_dir=~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32TrustedPackageCreator_CLI
key=../Keys/aeskey.bin
nonce=../Keys/nonce.bin
optbyte=$tool_dir/SFI_OB_CSV_FILES/SFI_OB_U5_2M.csv
binary=../Binary/OEM_Dev.bin
binary_base_add=0x08000000
sfi_out_file=../Binary/OEM_Dev.sfi
sudo $tool_dir -sfi -fir $binary $binary_base_add -devid 0x482 -k $key -n $nonce -ob $optbyte -v 1 --ramsize 0x55500 --token 0x80F0000 -hash 1 -o $sfi_out_file

 Best regards,

0 REPLIES 0