EB tresos under linux docker

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

EB tresos under linux docker

ソリューションへジャンプ
3,778件の閲覧回数
sobo
Contributor III

Hello,

I try to used EB tresos linux version in a docker for CI/CD with jenkins.

Doesn't anyone  already try it ?

I have trouble to run the script tresos_cmd.sh.

Error:

org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]

 

#tresos #docker 

タグ(1)
0 件の賞賛
返信
1 解決策
3,751件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

Unfortunately we haven't tried the same thing in our site (Usually we use EB Tresos on Windows environment). I'd suggest to ask Elektrobit for better support.

Best Regards,

Nam

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
3,746件の閲覧回数
sobo
Contributor III

hello,

thank you for your answer.

 

So what the best way to handle generated configuration file ?

exemple : 

1- Use EB tresos to configure and generate.

2- Copy the generate file in the project

3- Add it (generated file)  in sw configuration management

4- in CI/CD used file in the project

 

what we are trying to do : 

1- Use EB tresos to configure and generate file + config file(xdm)

2- Add only xdm file under SW configuration management

3- in CI/CD use tresos to generate file from xdm

0 件の賞賛
返信
3,737件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello @sobo,

There are multiple ways which can be used to handle the code generation:

1. Using the EB Tresos GUI.

2. Take advantage of tresos_cmd.bat:

2.1 by using legacy generate with input as .epc files or .arxml files:

call .\..\Tresos\bin\tresos_cmd.bat -Dtarget=CORTEXM -Dderivate=S32K3XX legacy generate .\a.arxml@asc:4.4.0 -o .\outputt -g Wdg_TS_T40D34M10I0R0

Detail can be found in  6.12.3. Commands for legacy code generation - Development users guide of EB Tresos Studio.

2.2. or using generate/autoconfigure with the whole project. It's required that you have a EB Tresos project already:

$(TRESOS_DIR)/bin/tresos_cmd.bat deleteProject $(TRESOS_PROJECT_NAME) || exit 0 2>&1
$(TRESOS_DIR)/bin/tresos_cmd.bat importProject $(call winpath, $(call my_abspath, ./TresosProject/$(TRESOS_PROJECT_NAME))) 2>&1
ifeq ($(VARIANT_NO),0)
$(TRESOS_DIR)/bin/tresos_cmd.bat generate $(TRESOS_PROJECT_NAME) 2>&1
else
$(TRESOS_DIR)/bin/tresos_cmd.bat autoconfigure $(TRESOS_PROJECT_NAME) GenerateAllVariants 2>&1
endif

(The above script is taken from a RTD example)

Our testing team has been using the 2.2 way to handle code generation in CI/CD. But it's verified under Windows environment.

Best Regards,

Nam

0 件の賞賛
返信
3,752件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

Unfortunately we haven't tried the same thing in our site (Usually we use EB Tresos on Windows environment). I'd suggest to ask Elektrobit for better support.

Best Regards,

Nam

0 件の賞賛
返信