how to use PFE function in S32G

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to use PFE function in S32G

跳至解决方案
1,384 次查看
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...

 

标记 (3)
0 项奖励
回复
1 解答
1,360 次查看
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

在原帖中查看解决方案

1 回复
1,361 次查看
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%3E%E5%A6%82%E4%BD%95%E5%9C%A8S32G%E4%B8%AD%E4%BD%BF%E7%94%A8PFE%E5%8A%9F%E8%83%BD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1871801%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E4%BB%AC%E6%AD%A3%E5%9C%A8%3CSTRONG%3ES32G-VNP-RDB3%20(s32g399a)%20%E4%B8%AD%E5%BC%80%E5%8F%91%20PFE%20%E5%8A%9F%E8%83%BD%E3%80%82%3C%2FSTRONG%3E%3CBR%20%2F%3E%E8%80%8C%3CSTRONG%3ETresos%3C%2FSTRONG%3E%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%2029.0.0%E3%80%82%3C%2FP%3E%3CP%3E%E5%BD%93%E6%88%91%E4%B8%8B%E8%BD%BD%E5%B9%B6%E6%A3%80%E6%9F%A5%3CSTRONG%3EPFE_Driver_1_2_0%3C%2FSTRONG%3E%E6%97%B6%EF%BC%8C%E6%88%91%E5%9C%A8%3CSTRONG%3Eexample_application%20%E6%96%87%E4%BB%B6%E5%A4%B9%3C%2FSTRONG%3E%E4%B8%AD%E5%8F%91%E7%8E%B0%E4%BA%86%E4%B8%80%E4%B8%AA%3CSTRONG%3EMasterProject_RDB3%3C%2FSTRONG%3E%E7%A4%BA%E4%BE%8B%E6%96%87%E4%BB%B6%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E4%BB%AC%E9%A2%84%E8%AE%A1%E9%A6%96%E5%85%88%E5%9C%A8Tresos%E4%B8%AD%E5%AE%8C%E6%88%90PFE%E7%9B%B8%E5%85%B3%E7%9A%84%E8%AE%BE%E7%BD%AE%EF%BC%8C%E5%B0%86%E7%94%9F%E6%88%90%E7%9A%84%E5%A4%B4%E6%96%87%E4%BB%B6%E6%8F%92%E5%85%A5%E5%88%B0%3CSTRONG%3ES32G%20Studio%3C%2FSTRONG%3E%E4%B8%AD%E7%9A%84%E9%A1%B9%E7%9B%AE%E4%B8%AD%EF%BC%8C%E5%B9%B6%E9%85%8D%E5%90%88PFE_Driver_1_2_0%E4%B8%AD%E6%8F%90%E4%BE%9B%E7%9A%84%E6%BA%90%E4%BB%A3%E7%A0%81%E4%BD%BF%E7%94%A8%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%86%E6%98%AF%E5%9C%A8Tresos%E4%B8%AD%E7%BC%96%E8%AF%91%3CSTRONG%3EMasterProject_RDB3%3C%2FSTRONG%3E%E7%A4%BA%E4%BE%8B%E6%96%87%E4%BB%B6%E6%97%B6%3CSTRONG%3E%E5%87%BA%E7%8E%B0%E4%BB%A5%E4%B8%8B%E9%94%99%E8%AF%AF%E3%80%82%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3E%E8%8A%82%E7%82%B9%E2%80%9C%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%20%2FAUTOSAR%2FTOP-LEVEL-PACKAGES%2FGpt%2FELEMENTS%2FGpt%2FGptChannelConfigSet%2FGptChannelConfiguration%2FGptChannelConfiguration_1%2FGptChannelTickFrequency%3C%2FA%3E%20%E2%80%9D%20%E7%9A%84%E5%B1%9E%E6%80%A7%E2%80%9CRANGE%E2%80%9D%E7%9A%84%20XPath%20%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%97%A0%E6%95%88%3A%20(1806)%20XPath%20%E8%A1%A8%E8%BE%BE%E5%BC%8F%E2%80%9C(num%3Ai(contains(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'%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'%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%2C1))%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'%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%2C1))%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'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency'))%20)%20%2B%20%EF%BC%88%EF%BC%88num%EF%BC%9Ai%EF%BC%88%E8%8A%82%E7%82%B9%EF%BC%9Afallback%EF%BC%88..%2F..%2F..%2FGptRtc%2F*%2FGptRtcChannelClkSrc%EF%BC%8C'RTC_IP_CLOCK_SOURCE_0'%EF%BC%89%3D%20'RTC_IP_CLOCK_SOURCE_1'%EF%BC%89%EF%BC%89*%20num%EF%BC%9Ai%EF%BC%8816000000%EF%BC%89%EF%BC%89%2B%20%EF%BC%88%EF%BC%88num%EF%BC%9Ai%EF%BC%88%E8%8A%82%E7%82%B9%EF%BC%9Afallback%EF%BC%88..%2F..%2F..%2FGptRtc%2F*%2FGptRtcChannelClkSrc%EF%BC%8C'RTC_IP_CLOCK_SOURCE_0'%EF%BC%89%3D%20'RTC_IP_CLOCK_SOURCE_2'%EF%BC%89%EF%BC%89*%20num%EF%BC%9Ai%EF%BC%88128000%EF%BC%89%EF%BC%89%2B%20%EF%BC%88%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%20%E5%AF%BC%E8%87%B4%E9%94%99%E8%AF%AF%EF%BC%9A%E6%9C%AA%E5%AE%9A%E4%B9%89%E5%87%BD%E6%95%B0%EF%BC%9Anoderef%3Aref%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E5%A6%82%E6%9E%9C%E6%9C%89%E4%BA%BA%E7%9F%A5%E9%81%93%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%AE%83%EF%BC%8C%E8%AF%B7%E5%B8%AE%E5%8A%A9%E6%88%91......%E8%AF%B7%E5%B8%AE%E5%BF%99......%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E