Hi, I am having trouble generating code with S32 Configuration Tools based on a .mex file per the command line instructions in S32DS help. I’m assuming this takes the place of using the “update” function found in the pin and peripheral update “ConfigTool” in the S32DS IDE, correct?
So, for testing, I created a simple S32K344 “MyProject” project configured with two GPIO pins and three peripherals (osif_1, Siul2_Dio and Siul2_Port) and with clocks configured with default parameters. The mex file was generated through the S32DS IDE using the “ConfigTool” and “update” function prior to running the command so I could test the Eclipse configuration command line execution.
Following the S32DS help command line example, running in a Windows 11 command window with administrative privileges, I used:
C:\NXP\S32DS.3.4\eclipse\eclipsec.exe -nosplash -application com.nxp.swtools.framework.application --launcher.ini C:\NXP\S32DS.3.4\eclipse\eclipse.ini -HeadlessTool Clocks -Load C:\workspace\MyProject.mex -ExportSrc C:\workspace\OutputFiles
But when I run the command, I receive the following output:
Jun 14, 2022 12:30:35 PM com.nxp.swtools.framework.Application unzipDefaultData
INFO: Zip file with default offline data does not exist. Trying to unzip:'C:\NXP\S32DS.3.4\eclipse\mcu_data\offline_data.zip'
Jun 14, 2022 12:30:36 PM com.nxp.swtools.utils.ConfigurationUtils logAndShowError
SEVERE: Corrupted file or not MEX format C:\workspace\MyProject.mex
java.io.FileNotFoundException: C:\workspace\MyProject.mex (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at com.nxp.swtools.utils.ConfigurationUtils.lambda$4(ConfigurationUtils.java:357)
at com.nxp.swtools.utils.ConfigurationUtils.openConfiguration(ConfigurationUtils.java:467)
at com.nxp.swtools.framework.Application.loadConfigFromCMD(Application.java:1057)
at com.nxp.swtools.framework.Application.start(Application.java:524)
at com.nxp.swtools.framework.Application.start(Application.java:441)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Jun 14, 2022 12:30:36 PM com.nxp.swtools.framework.Application verifyToolEnabled
WARNING: Trying to run headless Clocks tool that is not present in the current configuration.
Jun 14, 2022 12:30:36 PM com.nxp.swtools.clocks.wizards.exportWizard.ExportClocksSourcesWizard getGeneratedSources
WARNING: Source generation not possible for empty profile:MCU is not selected
Can I not use an already generated mex file from a S32DS IDE project? If not, does the mex file need to be generated from the command line tool only? Note that I would eventually like to use this in a Continuously Integrated (CI) environment.
Any help would be appreciated. Thanks!