Error messages appears when start building S32G3 M7 core BootLoader

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Error messages appears when start building S32G3 M7 core BootLoader

跳至解决方案
1,842 次查看
lihongjun
Contributor III

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.

 

0 项奖励
回复
1 解答
1,833 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

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.

在原帖中查看解决方案

3 回复数
1,440 次查看
KJNK
Contributor II

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

 

标记 (2)
0 项奖励
回复
1,834 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

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.

1,823 次查看
lihongjun
Contributor III

Building succeed after I set the variable as you said and undo some project config steps as AN13750 says.

The binaries have been generated in the bin folder.

Thank you very much. 

0 项奖励
回复