Problems building MCSPTR2AK396 example application

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

Problems building MCSPTR2AK396 example application

Jump to solution
1,623 Views
Henrik-Wires
Contributor IV

I am trying to rebuild the MCSPTR2AK396 example application, but cannot quite get Design Studio to cooperate with me.

The issue I am having is that when I open the .mex file for the main (boot) core I get a popup flash of some kind and then it immediately opens a browser window but without directing it to a page. Looks like some error occurs, but the message popup immediately disappears. No messages at all shown in the log.

Further, if I select to "Update code" then all drivers are removed from the project.

Any hints on what I am missing?

The installed software stack is almost the same as the same as stated as tested in the release notes for the example app

Design Studio 3.6.3 (3.6.1 stated)
S32K3xx Development Package 3.6.3 (3.6.0 stated)
S32K3 Real-Time Drivers AUTOSAR R21-11 Version 5.0.0 (same as stated)
AMMCLIB 1.1.41 (1.1.39 stated, but is not available)
S32K3 FreeMASTER Serial Communication Driver 1.4.2 (same as stated)
S32K3 ETPU SW 4.7 2.0.0 Version 2.0.0  (2.0.0 CD04 stated)

What I have noticed is that the path to AMMCLIB is hardcoded in the project include & library paths. And there is also RTD references hardcoded to the 5.0.0 release.

0 Kudos
Reply
1 Solution
1,578 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

I have installed the SW according with the MCSPTR2AK396_ReleaseNotes.txt:

The Development Kit application was built and tested using the following IDE, Drivers and Tools:
=====================================================================================
- Examples based on the RTD low level API:
- S32 Design Studio for S32 Platform Version 3.6.1
- S32K3xx development package version 3.6.0
- S32K39X Real-Time Drivers AUTOSAR R21-11 Version 5.0.0 (exclude SGEN)
- S32K3 ETPU SW 4.7 2.0.0 CD04 Version 2.0.0
- S32K3 FreeMASTER Serial Communication Driver Version 1.4.2
- FreeMASTER 3.2.4.5

And project builds successfully:

_Leo__0-1758655160473.png

Also using AMMCLib v1.1.39:

_Leo__1-1758655188050.png

Please share an screenshot of your Installation details (in Help tab), to check.

View solution in original post

0 Kudos
Reply
6 Replies
1,505 Views
Henrik-Wires
Contributor IV

Finally got it working. I apparently had a somewhat newer ETPU version installed.

S32K3_ETPU_SW_4.7_2.0.0_D2509

instead of

S32K3_ETPU_SW_4.7_2.0.0_CD04_D2502

And this caused a lot of problems.

0 Kudos
Reply
1,601 Views
Henrik-Wires
Contributor IV

Found the error log. And there is two errors reported when reloading the .mex

 

 

[DATA] Error resolving: (($configSet.PwmGeneral.PwmDutycycleUpdatedEndperiod.getValue() == true) || ($configSet.PwmGeneral.PwmPeriodUpdatedEndperiod.getValue() == true)), Value of: $configSet.PwmGeneral.PwmDutycycleUpdatedEndperiod not found



 

 and

An error has occurred. See error log for more details.

PeripheralExpressionException[

Description: Could not retrieve resource setting for arguments `MotorControl` and `Channel.List` of the function: getResource

Function: getResource(valid, valid)

Contexts:

ExpressionContext[ child_context = ChildContext[

$this = Etpu_Resolver_Ip.ResolverConfiguration.0.ResolverInstanceContainer.ResolverChanNumExcID

component = Etpu_Resolver_Ip

$instance = Etpu_Resolver_Ip

$group = BOARD_InitPeripherals]]


ExpressionContext[ child_context = ChildContext[

$this = Etpu_Resolver_Ip.ResolverConfiguration.0.ResolverInstanceContainer.ResolverChanNumExcID

component = Etpu_Resolver_Ip

$instance = Etpu_Resolver_Ip

$group = BOARD_InitPeripherals]]


ExpressionContext[ child_context = ChildContext[

$this = Etpu_Resolver_Ip.ResolverConfiguration.0.ResolverInstanceContainer.ResolverChanNumExcID

component = Etpu_Resolver_Ip

$instance = Etpu_Resolver_Ip

$group = BOARD_InitPeripherals]]

]



0 Kudos
Reply
1,592 Views
Henrik-Wires
Contributor IV
Downgraded to 3.6.1 and the problem remains. The above two errors, and whenever I generate code almost all drivers are removed from the project.
0 Kudos
Reply
1,579 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

I have installed the SW according with the MCSPTR2AK396_ReleaseNotes.txt:

The Development Kit application was built and tested using the following IDE, Drivers and Tools:
=====================================================================================
- Examples based on the RTD low level API:
- S32 Design Studio for S32 Platform Version 3.6.1
- S32K3xx development package version 3.6.0
- S32K39X Real-Time Drivers AUTOSAR R21-11 Version 5.0.0 (exclude SGEN)
- S32K3 ETPU SW 4.7 2.0.0 CD04 Version 2.0.0
- S32K3 FreeMASTER Serial Communication Driver Version 1.4.2
- FreeMASTER 3.2.4.5

And project builds successfully:

_Leo__0-1758655160473.png

Also using AMMCLib v1.1.39:

_Leo__1-1758655188050.png

Please share an screenshot of your Installation details (in Help tab), to check.

0 Kudos
Reply
1,515 Views
Henrik-Wires
Contributor IV
I can not find AMMCLIB 1.1.39 available for download.

And Design Studio refuses to not upgrade the platform packages when installing the RTD 5.0.0 package.
0 Kudos
Reply
1,516 Views
Henrik-Wires
Contributor IV
I can build the application as-is if I only import the project and correct AMMCLIB paths in the project settings to refer to 1.1.41 instead of 1.1.39.

The issues arise if I open the main mex file.
/MCSPTR2AK396_PMSM_FOC_3Sh_SwRes_ll_M7_0_0/MCSPTR2AK396_PMSM_FOC_3Sh_SwRes_ll_M7_0_0.mex
0 Kudos
Reply