how to use PFE function in S32G

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

how to use PFE function in S32G

Jump to solution
1,376 Views
Youngsoo_do
Contributor III

We are developing PFE function in S32G-VNP-RDB3 (s32g399a).
And Tresos is using 29.0.0.

When I downloaded and checked PFE_Driver_1_2_0, I found a MasterProject_RDB3 example file in the example_application folder.

We predict that we will first complete the PFE-related settings in Tresos, insert the generated header file into the project in S32G Studio, and use it with the source code provided in PFE_Driver_1_2_0.

However, when compiling the MasterProject_RDB3 example file in Tresos, the following error occurs.

 

Invalid XPath-expression for Attribute "RANGE" of node "/AUTOSAR/TOP-LEVEL-PACKAGES/Gpt/ELEMENTS/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelC...": (1806) The XPath-expression "(num:i( contains(node:fallback(../GptHwIp,'PIT'),'PIT') = 'true') * noderef:value(concat(noderef:ref(noderef:value(concat(noderef:ref(node:fallback(../GptChannelClkSrcRef, .)), '/GptClockReference'))), '/McuClockReferencePointFrequency'))) + ( num:i(contains(node:fallback(../GptHwIp,'STM'),'STM'))* (noderef:value(concat(noderef:ref(noderef:value(concat(noderef:ref(node:fallback(../GptChannelClkSrcRef, .)), '/GptClockReference'))), '/McuClockReferencePointFrequency')) div (num:i(not(contains(node:fallback(../GptHwIp,'STM'),'STM'))) + node:fallback(../../../GptStm/*[contains(text:split(node:current()/../GptModuleRef, '/')[5], node:fallback(./@name, 1))]/GptStmPrescaler,1))) ) + ( num:i(contains(node:fallback(../GptHwIp,'FTM'),'FTM'))* (noderef:value(concat(noderef:ref(noderef:value(concat(noderef:ref(node:fallback(../GptChannelClkSrcRef, .)), '/GptClockReference'))), '/McuClockReferencePointFrequency')) div (num:i(not(contains(node:fallback(../GptHwIp,'FTM'),'FTM'))) + node:fallback(../../../GptFtm/*[contains(text:split(node:current()/../GptModuleRef, '/')[5], node:fallback(./@name, 1))]/GptFtmPrescaler,1))) ) + ( num:i(contains(node:fallback(../GptHwIp,'RTC'),'RTC') = true()) * ( ( (num:i(node:fallback(../../../GptRtc/*/GptRtcChannelClkSrc,'RTC_IP_CLOCK_SOURCE_0') = 'RTC_IP_CLOCK_SOURCE_0')) * noderef:value(concat(noderef:ref(noderef:value(concat(noderef:ref(node:fallback(../GptChannelClkSrcRef, .)), '/GptClockReference'))), '/McuClockReferencePointFrequency')) ) + ( (num:i(node:fallback(../../../GptRtc/*/GptRtcChannelClkSrc,'RTC_IP_CLOCK_SOURCE_0') = 'RTC_IP_CLOCK_SOURCE_1')) * num:i(16000000) ) + ( (num:i(node:fallback(../../../GptRtc/*/GptRtcChannelClkSrc,'RTC_IP_CLOCK_SOURCE_0') = 'RTC_IP_CLOCK_SOURCE_2')) * num:i(128000) ) + ( (num:i(node:fallback(../../../GptRtc/*/GptRtcChannelClkSrc,'RTC_IP_CLOCK_SOURCE_0') = 'RTC_IP_CLOCK_SOURCE_3')) * num:i(32000) ) ) div ( num:i( (num:i(node:when((node:fallback(../../../GptRtc/*/DivBy32,'true') = 'true'),num:i(32),num:i(1)) * node:when((node:fallback(../../../GptRtc/*/DivBy512,'true') = 'true'),num:i(512),num:i(1)))) + (num:i(contains(node:fallback(../GptHwIp,'PIT'),'PIT') = true())) + (num:i(contains(node:fallback(../GptHwIp,'STM'),'STM') = true())) + (num:i(contains(node:fallback(../GptHwIp,'FTM'),'FTM') = true())) ) ) ) " caused an error: Undefined function: noderef:ref

If anyone knows how to use it, please help me.... Please help...

 

Tags (3)
0 Kudos
Reply
1 Solution
1,352 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Youngsoo_do

Thanks for the questions

I suggest building the examples according to the release notes and the readme.txt from PFE-DRV_S32G_M7_MCAL_1.2.0 packages.

Note that in order to build the project, you’d better work with the packages/tools installed and check for the compatibility.

chenyin_h_0-1716548775324.png

Hope it helps.

 

Best Regards

Chenyin

View solution in original post

1 Reply
1,353 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Youngsoo_do

Thanks for the questions

I suggest building the examples according to the release notes and the readme.txt from PFE-DRV_S32G_M7_MCAL_1.2.0 packages.

Note that in order to build the project, you’d better work with the packages/tools installed and check for the compatibility.

chenyin_h_0-1716548775324.png

Hope it helps.

 

Best Regards

Chenyin

%3CLINGO-SUB%20id%3D%22lingo-sub-1871801%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ehow%20to%20use%20PFE%20function%20in%20S32G%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1871801%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20are%20developing%20PFE%20function%20in%20%3CSTRONG%3ES32G-VNP-RDB3%20(s32g399a).%3C%2FSTRONG%3E%3CBR%20%2F%3EAnd%20%3CSTRONG%3ETresos%3C%2FSTRONG%3E%20is%20using%2029.0.0.%3C%2FP%3E%3CP%3EWhen%20I%20downloaded%20and%20checked%20%3CSTRONG%3EPFE_Driver_1_2_0%3C%2FSTRONG%3E%2C%20I%20found%20a%20%3CSTRONG%3EMasterProject_RDB3%3C%2FSTRONG%3E%20example%20file%20in%20the%20%3CSTRONG%3Eexample_application%20folder%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EWe%20predict%20that%20we%20will%20first%20complete%20the%20PFE-related%20settings%20in%20Tresos%2C%20insert%20the%20generated%20header%20file%20into%20the%20project%20in%20%3CSTRONG%3ES32G%20Studio%3C%2FSTRONG%3E%2C%20and%20use%20it%20with%20the%20source%20code%20provided%20in%20PFE_Driver_1_2_0.%3C%2FP%3E%3CP%3EHowever%2C%20when%20compiling%20the%3CSTRONG%3E%20MasterProject_RDB3%3C%2FSTRONG%3E%20example%20file%20in%20Tresos%2C%20%3CSTRONG%3Ethe%20following%20error%20occurs.%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EInvalid%20XPath-expression%20for%20Attribute%20%22RANGE%22%20of%20node%20%22%3C%2FSTRONG%3E%3CA%20href%3D%22datamodel%3A%2F%2FMasterProject_RDB3%2F%3F%2FAUTOSAR%2FTOP-LEVEL-PACKAGES%2FGpt%2FELEMENTS%2FGpt%2FGptChannelConfigSet%2FGptChannelConfiguration%2FGptChannelConfiguration_1%2FGptChannelTickFrequency%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%2FAUTOSAR%2FTOP-LEVEL-PACKAGES%2FGpt%2FELEMENTS%2FGpt%2FGptChannelConfigSet%2FGptChannelConfiguration%2FGptChannelConfiguration_1%2FGptChannelTickFrequency%3C%2FA%3E%22%3A%20(1806)%20The%20XPath-expression%20%22(num%3Ai(%20contains(node%3Afallback(..%2FGptHwIp%2C'PIT')%2C'PIT')%20%3D%20'true')%20*%20noderef%3Avalue(concat(noderef%3Aref(noderef%3Avalue(concat(noderef%3Aref(node%3Afallback(..%2FGptChannelClkSrcRef%2C%20.))%2C%20'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency')))%20%2B%20(%20num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'STM')%2C'STM'))*%20(noderef%3Avalue(concat(noderef%3Aref(noderef%3Avalue(concat(noderef%3Aref(node%3Afallback(..%2FGptChannelClkSrcRef%2C%20.))%2C%20'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency'))%20div%20(num%3Ai(not(contains(node%3Afallback(..%2FGptHwIp%2C'STM')%2C'STM')))%20%2B%20node%3Afallback(..%2F..%2F..%2FGptStm%2F*%5Bcontains(text%3Asplit(node%3Acurrent()%2F..%2FGptModuleRef%2C%20'%2F')%5B5%5D%2C%20node%3Afallback(.%2F%40name%2C%201))%5D%2FGptStmPrescaler%2C1)))%20)%20%2B%20(%20num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'FTM')%2C'FTM'))*%20(noderef%3Avalue(concat(noderef%3Aref(noderef%3Avalue(concat(noderef%3Aref(node%3Afallback(..%2FGptChannelClkSrcRef%2C%20.))%2C%20'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency'))%20div%20(num%3Ai(not(contains(node%3Afallback(..%2FGptHwIp%2C'FTM')%2C'FTM')))%20%2B%20node%3Afallback(..%2F..%2F..%2FGptFtm%2F*%5Bcontains(text%3Asplit(node%3Acurrent()%2F..%2FGptModuleRef%2C%20'%2F')%5B5%5D%2C%20node%3Afallback(.%2F%40name%2C%201))%5D%2FGptFtmPrescaler%2C1)))%20)%20%2B%20(%20num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'RTC')%2C'RTC')%20%3D%20true())%20*%20(%20(%20(num%3Ai(node%3Afallback(..%2F..%2F..%2FGptRtc%2F*%2FGptRtcChannelClkSrc%2C'RTC_IP_CLOCK_SOURCE_0')%20%3D%20'RTC_IP_CLOCK_SOURCE_0'))%20*%20noderef%3Avalue(concat(noderef%3Aref(noderef%3Avalue(concat(noderef%3Aref(node%3Afallback(..%2FGptChannelClkSrcRef%2C%20.))%2C%20'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency'))%20)%20%2B%20(%20(num%3Ai(node%3Afallback(..%2F..%2F..%2FGptRtc%2F*%2FGptRtcChannelClkSrc%2C'RTC_IP_CLOCK_SOURCE_0')%20%3D%20'RTC_IP_CLOCK_SOURCE_1'))%20*%20num%3Ai(16000000)%20)%20%2B%20(%20(num%3Ai(node%3Afallback(..%2F..%2F..%2FGptRtc%2F*%2FGptRtcChannelClkSrc%2C'RTC_IP_CLOCK_SOURCE_0')%20%3D%20'RTC_IP_CLOCK_SOURCE_2'))%20*%20num%3Ai(128000)%20)%20%2B%20(%20(num%3Ai(node%3Afallback(..%2F..%2F..%2FGptRtc%2F*%2FGptRtcChannelClkSrc%2C'RTC_IP_CLOCK_SOURCE_0')%20%3D%20'RTC_IP_CLOCK_SOURCE_3'))%20*%20num%3Ai(32000)%20)%20)%20div%20(%20num%3Ai(%20(num%3Ai(node%3Awhen((node%3Afallback(..%2F..%2F..%2FGptRtc%2F*%2FDivBy32%2C'true')%20%3D%20'true')%2Cnum%3Ai(32)%2Cnum%3Ai(1))%20*%20node%3Awhen((node%3Afallback(..%2F..%2F..%2FGptRtc%2F*%2FDivBy512%2C'true')%20%3D%20'true')%2Cnum%3Ai(512)%2Cnum%3Ai(1))))%20%2B%20(num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'PIT')%2C'PIT')%20%3D%20true()))%20%2B%20(num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'STM')%2C'STM')%20%3D%20true()))%20%2B%20(num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'FTM')%2C'FTM')%20%3D%20true()))%20)%20)%20)%20%22%20caused%20an%20error%3A%20Undefined%20function%3A%20noderef%3Aref%3C%2FP%3E%3CP%3E%3CSTRONG%3EIf%20anyone%20knows%20how%20to%20use%20it%2C%20please%20help%20me....%20Please%20help...%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1874584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20how%20to%20use%20PFE%20function%20in%20S32G%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1874584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20%40%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210937%22%20target%3D%22_blank%22%3EYoungsoo_do%3C%2FA%3E%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20questions%3C%2FP%3E%0A%3CP%3EI%20suggest%20building%20the%20examples%20according%20to%20the%20release%20notes%20and%20the%20readme.txt%20from%20PFE-DRV_S32G_M7_MCAL_1.2.0%20packages.%3C%2FP%3E%0A%3CP%3ENote%20that%20in%20order%20to%20build%20the%20project%2C%20you%E2%80%99d%20better%20work%20with%20the%20packages%2Ftools%20installed%20and%20check%20for%20the%20compatibility.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenyin_h_0-1716548775324.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenyin_h_0-1716548775324.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280715iAED601C03DA0DA5B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenyin_h_0-1716548775324.png%22%20alt%3D%22chenyin_h_0-1716548775324.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20it%20helps.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E