how to use PFE function in S32G

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

how to use PFE function in S32G

ソリューションへジャンプ
1,378件の閲覧回数
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,354件の閲覧回数
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,355件の閲覧回数
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%3ES32G%E3%81%A7%E3%81%AEPFE%E6%A9%9F%E8%83%BD%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1871801%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3ES32G-VNP-RDB3%20(s32g399a)%3C%2FSTRONG%3E%20%E3%81%A7PFE%E6%A9%9F%E8%83%BD%E3%82%92%E9%96%8B%E7%99%BA%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%81%9D%E3%81%97%E3%81%A6%20%3CSTRONG%3E%E3%80%81Tresos%3C%2FSTRONG%3E%20%E3%81%AF%2029.0.0%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E3%81%97%E3%81%A6%3CSTRONG%3E%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%A6%E3%81%BF%3C%2FSTRONG%3E%E3%81%9F%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81%3CSTRONG%3EPFE_Driver_1_2_0%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%3C%2FSTRONG%3E%E3%81%AB%3CSTRONG%3EMasterProject_RDB3%3C%2FSTRONG%3E%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%8C%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9Fexample_application%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%81%AB%E3%81%82%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%BE%E3%81%9A%E3%80%81Tresos%E3%81%A7PFE%E9%96%A2%E9%80%A3%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%92%E8%A1%8C%E3%81%84%E3%80%81%E7%94%9F%E6%88%90%E3%81%95%E3%82%8C%E3%81%9F%E3%83%98%E3%83%83%E3%83%80%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%20%3CSTRONG%3ES32G%20Studio%3C%2FSTRONG%3E%E3%81%AE%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AB%E6%8C%BF%E5%85%A5%E3%81%97%E3%80%81PFE_Driver_1_2_0%E3%81%A7%E6%8F%90%E4%BE%9B%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%82%BD%E3%83%BC%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%A8%E4%BA%88%E6%B8%AC%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%3CSTRONG%3E%20MasterProject_RDB3%3C%2FSTRONG%3E%20%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92Tresos%E3%81%A7%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%AB%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%20%3CSTRONG%3E%E6%AC%A1%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3E%E3%83%8E%E3%83%BC%E3%83%89%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)%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'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency')))%20%2B%20(%20num%3Ai(contains(node%3Afallback(..%2FGptHwIp%2C'STM')%2C'STM')))*%20(noderef%3Avalue(concat(noderef%3Aref(noderef%EF%BC%88value%EF%BC%89concat%EF%BC%88noderef%EF%BC%89ref%EF%BC%89REF(node%EF%BC%89%E3%83%95%E3%82%A9%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%EF%BC%89%E3%80%82%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(%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%EF%BC%85value%EF%BC%88concat%EF%BC%89noderef%EF%BC%85ref%EF%BC%89%2FGptChannelClkSrcRef%2C%20.))%2C'%2FGptClockReference')))%2C%20'%2FMcuClockReferencePointFrequency'))%20))%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(%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%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)%22%20%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%3A%20%E6%9C%AA%E5%AE%9A%E7%BE%A9%E3%81%AE%E9%96%A2%E6%95%B0%3A%20noderef%3Aref%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E3%81%A9%E3%81%AA%E3%81%9F%E3%81%8B%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E7%9F%A5%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E6%96%B9%E3%81%8C%E3%81%84%E3%82%89%E3%81%A3%E3%81%97%E3%82%83%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%82%89%E3%80%81%E5%8A%A9%E3%81%91%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84...%E3%80%82%E5%8A%A9%E3%81%91%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84...%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E