S32DS Config variant

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS Config variant

2,313 Views
ofer-bahar-guardknox
Contributor IV

Appreciate if someone could explain the practical implications of selecting between VARIANT-POST-BUILD and VARIANT-PRE-COMPILE, how should I refer to it or behave in my code ?

As seen bellow in a sample project 

oferbaharguardknox_0-1688291257255.png

 

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

2,178 Views
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi, @ofer-bahar-guardknox , Very sorry for replying late. 

The VARIANT-POST-BUILD

Pre-compile and Post-build options

It is AUTOSAR specific option. 

https://www.autosar.org/fileadmin/standards/R4-3/CP/AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf

 

 Now, for the understanding POST build steps 

--------------------------------------------------------------- 

1. How to Select your project see the option for adding command at 

Please go to as screenshot below 

Properties -> Settings -> Build steps -> Post build-steps 

and write command at

command : 

Mehul_Patel_NXP_0-1691523827896.png

 

 



Now, you also need to understand that, command that you enter POST build steps check box, will be added to the makefile  which will be specifying the operations to perform POST building the .elf file 

So in the below two screenshots you can see that

1. echo command has been entered into command section, and then 

Mehul_Patel_NXP_1-1691523828019.png

 

 

2.  the echo command is put in the makefile

Mehul_Patel_NXP_2-1691523828043.png

 

You can also first try using echo command and printing the test message to be sure that it is working. 

Similarly, You can add the "Valid" command in the POST -build section for your requirement. 

 

Please let us know if you have any further question .

 

Thank you, Kind regards, 

 - Mehul Patel 

 

 

2,157 Views
ofer-bahar-guardknox
Contributor IV

Thanks Mehul

My question was referred to the S32DS project selection of variant post-build & variant pre-compiled as they appear in the S32CT selection of ConfigTimeSupport => config_variant and not the c/c++ project settings of pre & post build steps

Take this one as an example 

 oferbaharguardknox_0-1691565785463.png

The question is actually how does the above selection affect and should be used in the code

e.g., does pre-compiled is actually the initialization of the module as part of the RTD framework (I read it somewhere)? 

e.g., if post-build is selected, then how is the initialization work and how does the settings can be modified during run time?

Thanks

0 Kudos
Reply