Dear NXP,
I have imported the Bootloader_S32G3XX_ASR_4.4_M7 example project into my EB tresos 27.1, configured boot sources & cores, and generated the project code successfully.
And I edited the configuration.bat file and set variables as follows:
SET TRESOS_DIR=C:/EB/tresos
SET MAKE_DIR=C:/cygwin64
SET PATH=%PATH%;%MAKE_DIR%/bin
SET GHS_DIR=
SET GCC_DIR=C:/NXP/S32DS.3.5/S32DS/build_tools/gcc_v9.2
SET TOOLCHAIN=gcc
SET CORE=m7
SET SRC_PATH_DRIVERS=C:/EB/tresos/plugins
SET SDHC_STACK_PATH=C:/NXP/S32DS.3.5/S32DS/software/PlatformSDK_S32XX_4_0_0/stacks/sdhc
SET SRC_PATH_SAF=C:/EB/tresos/plugins
SET TRESOS_WORKSPACE_DIR=C:/EB/tresos/workspace
SET HSE_FIRMWARE_DIR=C:/NXP/HSE_FW_S32G3_0_2_16_1
All other batch and make files keep unchanged.
After I run launch.bat, error messages appeared as:
C:\NXP\Integration_Reference_Examples_S32G3_2023_02\code\framework\realtime\swc\bootloader\platforms\S32G3XX\build>launch.bat
cat: 'C:/EB/tresos/workspace/../.prefs/pref_general.xdm': No such file or directory
/cygdrive/c/NXP/Integration_Reference_Examples_S32G3_2023_02/code/framework/realtime/build/generic/drivers_version_checker.mak:78: The following workspace preferences file was detected: C:/EB/tresos/workspace/../.prefs/pref_general.xdm
/cygdrive/c/NXP/Integration_Reference_Examples_S32G3_2023_02/code/framework/realtime/build/generic/drivers_version_checker.mak:80: Drivers package version: TS_T40D11M40I0R0
/cygdrive/c/NXP/Integration_Reference_Examples_S32G3_2023_02/code/framework/realtime/build/generic/drivers_version_checker.mak:81: Make sure to reference the corect RTD plugins or regenerate the workspace
/cygdrive/c/NXP/Integration_Reference_Examples_S32G3_2023_02/code/framework/realtime/build/generic/drivers_version_checker.mak:83: *** Stopping.. Stop.
File C:\EB\tresos\workspace\Bootloader_S32G3XX_ASR_4.4_M7\.prefs\pref_general.xdm does exist.
Please tell me how to clear these error message and continue building.
Thank you.
已解决! 转到解答。
Hi,
There seems to be a problem with the "TRESOS_WORKSPACE_DIR" variable. We see that it is not that well explained on how to set it. The correct way should be the following:
"SET TRESOS_WORKSPACE_DIR=C:/EB/tresos/workspace/Bootloader_S32G3XX_ASR_4.4_M7/output"
With this modification, the script should be able to continue.
Please, let us know.
I have imported the Bootloader_S32G3XX_ASR_4.4_M7 example project into my EB tresos 27.1, configured boot sources & cores, and generated the project code successfully.
And I edited the configuration.bat file and set variables as follows:
SET TRESOS_DIR=C:\EB\tresos\
SET MAKE_DIR=C:\cygwin64
SET GHS_DIR=
SET GCC_DIR=C:\NXP\S32DS.3.5\S32DS\build_tools\gcc_v9.2
SET TOOLCHAIN=gcc
SET CORE=m7
SET SRC_PATH_DRIVERS=C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32XX_2022_03\SW32_RTD_4_4_3_0_2_D2203
SET SDHC_STACK_PATH=C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32XX_2022_03\stacks\sdhc
SET SRC_PATH_SAF=C:\EB\tresos\plugins
SET TRESOS_WORKSPACE_DIR=C:\EB\tresos\workspace\Bootloader_S32G3XX_ASR_4.4_M7\output
SET HSE_FIRMWARE_DIR=C:\NXP\HSE_FW_S32G3_0_2_16_1
After I run launch.bat, error messages appeared as:
C:\NXP\Integration_Reference_Examples_S32G3_2023_02\code\framework\realtime\swc\bootloader\platforms\S32G3XX\build>launch.bat
'cygpath' is not recognized as an internal or external command,
operable program or batch file.
INFO: Could not find files for the given pattern(s).
/cygdrive/c/NXP/Integration_Reference_Examples_S32G3_2023_02/code/framework/realtime/build/generic/drivers_version_checker.mak:86: cat was not found in path. Version checking feature will not be available.
make/validation.mak:32: *** HSE_FIRMWARE_DIR variable is not configured correctly or does not exist.. Stop.
How to solve this error of HSE_FIRMWARE_DIR
Hi,
There seems to be a problem with the "TRESOS_WORKSPACE_DIR" variable. We see that it is not that well explained on how to set it. The correct way should be the following:
"SET TRESOS_WORKSPACE_DIR=C:/EB/tresos/workspace/Bootloader_S32G3XX_ASR_4.4_M7/output"
With this modification, the script should be able to continue.
Please, let us know.