How to enable VARIANT-PRE-COMPILE for certain peripherals?

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

How to enable VARIANT-PRE-COMPILE for certain peripherals?

Jump to solution
307 Views
durga_choudhury
Contributor IV

(Sorry, this is a duplicate post. My original post appears completely blank and the 'robot verification' fails moments after I verified it. Not sure why it is even needed when I need a 2 factor authenticator to even log in)

 

Our product is static in nature and we only care about the PRE_COMPILE variant. However, it seems that certain peripherals only allow POST_BUILD variant; please see the screen shot below.

durga_choudhury_0-1760715966071.png

 

Also, for certain other peripherals, even when the PRE_COMPILE variant is selected, POST_BUILD variant code is generated anyway and this code is actually used in the RTD examples to initialize the peripheral.

 

Why can't a static configuration be used, especially when that is what the user wants?

 

Tags (2)
0 Kudos
Reply
1 Solution
251 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @durga_choudhury,

For Config Time Support, please implement the MCAL layer of the drivers:

Snag_fb6a81c.png

Some low-level interface drivers do not support variant handling, as this is an AUTOSAR specification, and LLD are not compliant.

Best regards,
Julián

View solution in original post

0 Kudos
Reply
1 Reply
252 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @durga_choudhury,

For Config Time Support, please implement the MCAL layer of the drivers:

Snag_fb6a81c.png

Some low-level interface drivers do not support variant handling, as this is an AUTOSAR specification, and LLD are not compliant.

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2188412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20enable%20VARIANT-PRE-COMPILE%20for%20certain%20peripherals%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2188412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E(Sorry%2C%20this%20is%20a%20duplicate%20post.%20My%20original%20post%20appears%20completely%20blank%20and%20the%20'robot%20verification'%20fails%20moments%20after%20I%20verified%20it.%20Not%20sure%20why%20it%20is%20even%20needed%20when%20I%20need%20a%202%20factor%20authenticator%20to%20even%20log%20in)%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EOur%20product%20is%20static%20in%20nature%20and%20we%20only%20care%20about%20the%20PRE_COMPILE%20variant.%20However%2C%20it%20seems%20that%20certain%20peripherals%20only%20allow%20POST_BUILD%20variant%3B%20please%20see%20the%20screen%20shot%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22durga_choudhury_0-1760715966071.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22durga_choudhury_0-1760715966071.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361456i2345C6E6CECED38C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22durga_choudhury_0-1760715966071.png%22%20alt%3D%22durga_choudhury_0-1760715966071.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAlso%2C%20for%20certain%20other%20peripherals%2C%20even%20when%20the%20PRE_COMPILE%20variant%20is%20selected%2C%20POST_BUILD%20variant%20code%20is%20generated%20anyway%20and%20this%20code%20is%20actually%20used%20in%20the%20RTD%20examples%20to%20initialize%20the%20peripheral.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhy%20can't%20a%20static%20configuration%20be%20used%2C%20especially%20when%20that%20is%20what%20the%20user%20wants%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189301%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20enable%20VARIANT-PRE-COMPILE%20for%20certain%20peripherals%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189301%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250000%22%20target%3D%22_blank%22%3E%40durga_choudhury%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EFor%20Config%20Time%20Support%2C%20please%20implement%20the%20MCAL%20layer%20of%20the%20drivers%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snag_fb6a81c.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snag_fb6a81c.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361677i6F1B971DB64774BE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Snag_fb6a81c.png%22%20alt%3D%22Snag_fb6a81c.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESome%20low-level%20interface%20drivers%20do%20not%20support%20variant%20handling%2C%20as%20this%20is%20an%20AUTOSAR%20specification%2C%20and%20LLD%20are%20not%20compliant.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E