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
573 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
549 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
550 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