[Bootloader] Common build errors

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

[Bootloader] Common build errors

2,441 Views
nxf45013
NXP Employee
NXP Employee

In this thread, the most common bootloader build errors are described. These errors do not refer to functional errors, but to actual faults generated by wrong configurations in the build files or the user environment. 

The output of the launch.bat command refers to the latest 2020.05 release for S32G2XX.

The format of this FAQ thread is as follows: 

Command  

ERROR

Fix/ root cause

Error 1. 

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

      The system cannot find the path specified.

Make directory is not configured correctly

 

Error 2.

/bin/sh: C:/ghs/comp_2019141/ccthumb.exe: No such file or directory

make: *** [makefile:343: Bootloader.o] Error 127

Compiler directory is not correctly set.

 

Error 3. 

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

C:/EB/tresos/26.0.0/plugins/Bootloader_TS_T40D11M10I0R0/src/swc/Bootloader.c", line 28: fatal error #2330:

          cannot open source file "CDD_Mcl.h"

  #include "CDD_Mcl.h"

SRC_PATH_MCAL is not configured correctly. If this variable is not set, the build will look for the MCAL plugins in <tresos_instalation_directory>/plugins. If the plugins are not there, please update the path.

 

Error 4. 

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

make: *** No rule to make target 'Bootloader.o', needed by 'bin_bootloader/Bootloader.elf'.  Stop.

SRC_PATH_IF is not configured correctly. If this variable is not set, the build will look for the MCAL plugins in <tresos_instalation_directory>/plugins. If the plugins are not there, please update the path.

 

Error 5

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

"C:/EB/tresos/26.0.0/plugins/Bootloader_TS_T40D11M10I0R0/src/swc/BootloaderSpecific.c", line 39: fatal error #2330:

          cannot open source file "usdhc_fatfs_impl.h"

  #include "usdhc_fatfs_impl.h"

SRC_PATH_SDK is not configured correctly. Update the path for the environment variable.

 

Error 6

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

makefile:84: *** Device name (DERIVATIVE) is empty.  Stop.

Tresos workspace directory is not set correctly. Typically, this shall be <tresos_instalation_dir>/workspace/<project_name>/output

 

Error 7.

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

"C:/EB/tresos/26.0.0/plugins/SysDal_TS_T40D11M10I0R0/src/sdk_clocks.c", line 31: fatal error #2330:

          cannot open source file "clock.h"

  #include "clock.h"

                    ^

SDHC has been removed as a boot source but SysDal Non Autosar Peripherals have not been disabled. Go to SysDal plugin and tick the Sysdal Enable Non Autosar peripherals and regenerate the code.

 

Error 8.

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

C:/EB/tresos/26.0.0/workspace_test_release/Bootloader_S32G2XX_ASR_4.4_M7/output/src/SysDal_Cfg.c", line 55: fatal error #2330:

          cannot open source file "CryptoDal.h"

  #include "CryptoDal.h"

                        ^

Authentication has been disabled, however, the initialization sequence has not been updated. Go to Sysdal plugin, and update the initialization sequence by removing the CryptoDal_Init entry from the list.

Error 9

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

"C:/EB/tresos/26.0.0/workspace_test_release/Bootloader_S32G2XX_ASR_4.4_M7/output/include/ComDal_Drv_Cfg.h", line 47: fatal error #2330:

          cannot open source file "Can.h"

      #include "Can.h"

                      ^

Boot trigger has been removed, however, ComDal, Can, and Gpt plugins and have not been disabled. If any of the plugins are disabled, remove the <tresos_instalation_dir>/workspace/<project_name>/output/src directory and regenerate the workspace.

 

 

Error 10

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat CORE=a53 bootloader

[asarm64] (error #2067) C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build\bin_bootloader\ComDal_Can.s 229: unknown instruction

  cpsid i

--^

 

[asarm64] (error #2067) C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build\bin_bootloader\ComDal_Can.s 251: unknown instruction

  cpsie i

--^

Build is set for A53 cores but Mcal.h and PlatformTypes.h files have not been updated. Check the documentation on how to build for A53 cores.

Error 11: 

C:\EB\tresos\26.0.0\plugins\Bootloader_TS_T40D11M10I0R0\build>launch.bat

In file included from C:/EB/tresos/26.0.0/plugins/Bootloader_TS_T40D11M10I0R0/src/swc/BootloaderSpecific.c:37:

C:/EB/tresos/26.0.0/plugins/SysDal_TS_T40D11M10I0R0/include/PlatformInterface.h:40:37: error: expected identifier before numeric constant

   40 | #define CLOCK_NAME_COUNT            0xA6

      |                                     ^~~~

C:/NXP/S32_SDK_EAR_0.8.0/platform/devices/S32G274A/include/S32G274A_features.h:268:5: note: in expansion of macro 'CLOCK_NAME_COUNT'

  268 |     CLOCK_NAME_COUNT      = 0x99U

Check the errata attached to the installer. SDK version was updated to BETA 0.9.0

Labels (1)
1 Reply

980 Views
yellapu_anishkh
Contributor IV

Hi,

I am getting similar error as Error  8. I have disabled secure boot as shown below, post which got below error.

Ref: Integration_Reference_Examples_S32G3_2023_02

yellapu_anishkh_1-1690455111529.png

 

yellapu_anishkh_0-1690455061280.png

Could you please help me to resolve the same.

0 Kudos