S32K1 LINSTACK .mex file error

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

S32K1 LINSTACK .mex file error

761件の閲覧回数
tkubincova
NXP Employee
NXP Employee

Hello,

I wanted to try out the LIN STACK example for S32K144, but when I try to open the .mex configuration file, this error shows up

 Screenshot (90).png

I think the issue might be somewhere in the configuration file, because some MCAL components (Dio, EcuM and Gpt) are missing in the Peripherals Tool, even though they are configured in the file. Middleware tab is empty as well (even though it is populated in the .mex file). I'd be very grateful if anybody could help me fix this issue.

 

Tereza

タグ(1)
0 件の賞賛
返信
4 返答(返信)

740件の閲覧回数
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @tkubincova,

Could you confirm the versions for the LIN STACK package are correct? From release notes:

S32K1 platform:
 - S32 Design Studio for S32 Platform 3.5
 - S32K1_S32M24X Real-Time Drivers ASR 4.4 & R21-11 Version 2.0.0

It is strongly recommended that the following compilers/versions are used:
- NXP GCC 10.2.0 20200723
- GHS Green Hills MULTI 7.1.6d COMPILER 2020.1.4

Also, please share the error log when clicking "Details > >".

Best regards,
Julián

0 件の賞賛
返信

727件の閲覧回数
tkubincova
NXP Employee
NXP Employee

Hello,

I am indeed using S32DS v3.5 with the following packages:

S32K1_S32M24X Real-Time Drivers Version 2.0.0 AUTOSAR 4.4 R21-1

S32K1 Real-Time Drivers Version 2.0.0 AUTOSAR 4.4  R21-11

S32K1_S32M24X LINSTACK AUTOSAR 4.4 Version 1.0.2

S32K1 LINSTACK AUTOSAR 4.4 Version 1.0.2

and I am also using NXP GCC 10.2:

Screenshot (92).png

clicking the details just shows the same message again:

Screenshot (93).png

here's the error log output if it will help:

!ENTRY com.nxp.swtools.sharedconfiguration 4 2 2024-06-11 09:42:19.569
!MESSAGE Problems occurred when invoking code from plug-in: "com.nxp.swtools.sharedconfiguration".
!STACK 0
java.lang.IllegalArgumentException: Unknown escape character "L" on position 5
	at com.nxp.swtools.common.utils.text.UtilsText.unescapeCharacters(UtilsText.java:460)
	at com.nxp.swtools.common.utils.text.UtilsText.unescapeCharacters(UtilsText.java:476)
	at com.nxp.swtools.resourcetables.model.config.ScalarUtils.decodeFromStorageFormat(ScalarUtils.java:572)
	at com.nxp.swtools.resourcetables.model.config.ScalarConfig.<init>(ScalarConfig.java:461)
	at com.nxp.swtools.resourcetables.model.config.SettingConfigFactory.createSettingConfig(SettingConfigFactory.java:104)
	at com.nxp.swtools.resourcetables.model.config.StructConfig.<init>(StructConfig.java:263)
	at com.nxp.swtools.periphs.model.config.StructConfig.<init>(StructConfig.java:30)
	at com.nxp.swtools.periphs.model.config.PeriphsSettingConfigFactory.createStructConfig(PeriphsSettingConfigFactory.java:34)
	at com.nxp.swtools.resourcetables.model.config.SettingConfigFactory.createSettingConfig(SettingConfigFactory.java:80)
	at com.nxp.swtools.resourcetables.model.config.StructConfig.<init>(StructConfig.java:263)
	at com.nxp.swtools.periphs.model.config.StructConfig.<init>(StructConfig.java:30)
	at com.nxp.swtools.periphs.model.config.PeriphsSettingConfigFactory.createStructConfig(PeriphsSettingConfigFactory.java:34)
	at com.nxp.swtools.resourcetables.model.config.SettingConfigFactory.createSettingConfig(SettingConfigFactory.java:80)
	at com.nxp.swtools.resourcetables.model.config.ArrayConfig.<init>(ArrayConfig.java:315)
	at com.nxp.swtools.periphs.model.config.ArrayConfig.<init>(ArrayConfig.java:34)
	at com.nxp.swtools.periphs.model.config.PeriphsSettingConfigFactory.createArrayConfig(PeriphsSettingConfigFactory.java:50)
	at com.nxp.swtools.resourcetables.model.config.SettingConfigFactory.createSettingConfig(SettingConfigFactory.java:87)
	at com.nxp.swtools.resourcetables.model.config.StructConfig.<init>(StructConfig.java:263)
	at com.nxp.swtools.periphs.model.config.StructConfig.<init>(StructConfig.java:30)
	at com.nxp.swtools.periphs.model.config.PeriphsSettingConfigFactory.createStructConfig(PeriphsSettingConfigFactory.java:34)
	at com.nxp.swtools.resourcetables.model.config.SettingConfigFactory.createSettingConfig(SettingConfigFactory.java:80)
	at com.nxp.swtools.resourcetables.model.config.StructConfig.<init>(StructConfig.java:263)
	at com.nxp.swtools.periphs.model.config.StructConfig.<init>(StructConfig.java:30)
	at com.nxp.swtools.periphs.model.config.PeriphsSettingConfigFactory.createStructConfig(PeriphsSettingConfigFactory.java:34)
	at com.nxp.swtools.resourcetables.model.config.SettingConfigFactory.createSettingConfig(SettingConfigFactory.java:80)
	at com.nxp.swtools.periphs.model.config.ConfigSetConfig.lambda$2(ConfigSetConfig.java:168)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at com.nxp.swtools.periphs.model.config.ConfigSetConfig.<init>(ConfigSetConfig.java:162)
	at com.nxp.swtools.periphs.model.config.ComponentInstanceConfig.<init>(ComponentInstanceConfig.java:581)
	at com.nxp.swtools.periphs.model.config.FunctionalGroup.lambda$1(FunctionalGroup.java:149)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at com.nxp.swtools.periphs.model.config.FunctionalGroup.<init>(FunctionalGroup.java:146)
	at com.nxp.swtools.periphs.model.config.PeriphsProfile.lambda$1(PeriphsProfile.java:213)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at com.nxp.swtools.periphs.model.config.PeriphsProfile.<init>(PeriphsProfile.java:213)
	at com.nxp.swtools.periphs.controller.Controller.loadProfileFromSharedConfig(Controller.java:548)
	at com.nxp.swtools.periphs.controller.Controller.reloadFromSharedConfig(Controller.java:421)
	at com.nxp.swtools.periphs.controller.Controller$1.configurationReloaded(Controller.java:182)
	at com.nxp.swtools.provider.configuration.impl.SharedConfiguration.lambda$2(SharedConfiguration.java:295)
	at com.nxp.swtools.provider.configuration.impl.SharedConfiguration$1.run(SharedConfiguration.java:345)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at com.nxp.swtools.provider.configuration.impl.SharedConfiguration.safeRun(SharedConfiguration.java:339)
	at com.nxp.swtools.provider.configuration.impl.SharedConfiguration.fireReloadEvent(SharedConfiguration.java:295)
	at com.nxp.swtools.provider.configuration.impl.SharedConfiguration.copyFrom(SharedConfiguration.java:225)
	at com.nxp.swtools.provider.configuration.SharedConfigurationFactory.applyNewConfig(SharedConfigurationFactory.java:188)
	at com.nxp.swtools.utils.ConfigurationUtils.lambda$4(ConfigurationUtils.java:402)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

 

Regards

Tereza

0 件の賞賛
返信

711件の閲覧回数
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @tkubincova,

Does your installation path include any symbols or spaces? Is this issue just apparent with the LIN example, or are the other examples from the RTD affected as well?

Could you try reinstalling S32DS? This seems like an issue with the installation and Config Tools.

Best regards,
Julián

0 件の賞賛
返信

687件の閲覧回数
tkubincova
NXP Employee
NXP Employee

Hello,

I tried checking everything but there do not seem to be any spaces or special symbols included in any of paths. This issue happens only with the LIN example, every other RTD example works fine.

I also tried reinstalling S32DS and the packages but the issue with the LIN example still persists.

UPDATE: I tried manually removing the linstack_config instance from the .mex file and then opening it and the error disappears and the other components are displayed correctly, if the example works in your case, could you please send me the .mex file so that I could try comparing if there's any difference? I have no idea what else could be causing this issue

ANOTHER UPDATE:

I found the culprit

Screenshot (97).png

This reverse backslash was causing the issue.

Regards,

Tereza