Building errors

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

Building errors

1,820 Views
mgomez
Contributor II

I have try to build the HVBMS-RD-Bring-up-example_S32DS but I got some errors, does anyone know how to fix this?

11:34:13 **** Incremental Build of configuration Debug_FLASH for project HVBMS-RD_Bring-up_example_S32DS ****
make -j12 all
Building file: ../src/Bjb.c
Building file: ../src/Cmu.c
Building file: ../src/Common.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/Bjb.args" -MMD -MP -MF"src/Cmu.d" -MT"src/Cmu.o" -o "src/Cmu.o" "../src/Cmu.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/Bjb.args" -MMD -MP -MF"src/Common.d" -MT"src/Common.o" -o "src/Common.o" "../src/Common.c"
arm-none-eabi-gcc "@src/Bjb.args" -MMD -MP -MF"src/Bjb.d" -MT"src/Bjb.o" -o "src/Bjb.o" "../src/Bjb.c"
Building file: ../src/main.c
Building file: ../generate/src/Flexio_Uart_Ip_VS_0_PBcfg.c
Invoking: Standard S32DS C Compiler
Building file: ../generate/src/Lcu_Ip_Cfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/Bjb.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/CDD_Bcc_772c_Cfg.args" -MMD -MP -MF"generate/src/Flexio_Uart_Ip_VS_0_PBcfg.d" -MT"generate/src/Flexio_Uart_Ip_VS_0_PBcfg.o" -o "generate/src/Flexio_Uart_Ip_VS_0_PBcfg.o" "../generate/src/Flexio_Uart_Ip_VS_0_PBcfg.c"
arm-none-eabi-gcc "@generate/src/CDD_Bcc_772c_Cfg.args" -MMD -MP -MF"generate/src/Lcu_Ip_Cfg.d" -MT"generate/src/Lcu_Ip_Cfg.o" -o "generate/src/Lcu_Ip_Cfg.o" "../generate/src/Lcu_Ip_Cfg.c"
Building file: ../generate/src/Lcu_Ip_VS_0_PBcfg.c
Building file: ../generate/src/Lpspi_Ip_VS_0_PBcfg.c
In file included from C:/Users/mgomez/workspaceS32DS.3.4/HVBMS-RD_Bring-up_example_S32DS/generate/include/Flexio_Uart_Ip_VS_0_PBcfg.h:48,
from C:/Users/mgomez/workspaceS32DS.3.4/HVBMS-RD_Bring-up_example_S32DS/generate/include/Flexio_Uart_Ip_Cfg.h:49,
from ../generate/src/Flexio_Uart_Ip_VS_0_PBcfg.c:43:
../RTD/include/Flexio_Uart_Ip_Types.h:74:6: error: #error "Software Version Numbers of Flexio_Uart_Ip_Defines.h and Flexio_Uart_Ip_Types.h are different"
74 | #error "Software Version Numbers of Flexio_Uart_Ip_Defines.h and Flexio_Uart_Ip_Types.h are different"
| ^~~~~
In file included from C:/Users/mgomez/workspaceS32DS.3.4/HVBMS-RD_Bring-up_example_S32DS/generate/include/Flexio_Uart_Ip_Cfg.h:49,
from ../generate/src/Flexio_Uart_Ip_VS_0_PBcfg.c:43:
C:/Users/mgomez/workspaceS32DS.3.4/HVBMS-RD_Bring-up_example_S32DS/generate/include/Flexio_Uart_Ip_VS_0_PBcfg.h:77:6: error: #error "Software Version Numbers of Flexio_Uart_Ip_VS_0_PBcfg.h and Flexio_Uart_Ip_Types.h are different"
77 | #error "Software Version Numbers of Flexio_Uart_Ip_VS_0_PBcfg.h and Flexio_Uart_Ip_Types.h are different"
Invoking: Standard S32DS C Compiler
| ^~~~~
arm-none-eabi-gcc "@generate/src/CDD_Bcc_772c_Cfg.args" -MMD -MP -MF"generate/src/Lcu_Ip_VS_0_PBcfg.d" -MT"generate/src/Lcu_Ip_VS_0_PBcfg.o" -o "generate/src/Lcu_Ip_VS_0_PBcfg.o" "../generate/src/Lcu_Ip_VS_0_PBcfg.c"
Invoking: Standard S32DS C Compiler
make: *** [generate/src/subdir.mk:194: generate/src/Flexio_Uart_Ip_VS_0_PBcfg.o] Error 1
arm-none-eabi-gcc "@generate/src/CDD_Bcc_772c_Cfg.args" -MMD -MP -MF"generate/src/Lpspi_Ip_VS_0_PBcfg.d" -MT"generate/src/Lpspi_Ip_VS_0_PBcfg.o" -o "generate/src/Lpspi_Ip_VS_0_PBcfg.o" "../generate/src/Lpspi_Ip_VS_0_PBcfg.c"
make: *** Waiting for unfinished jobs....
Finished building: ../generate/src/Lcu_Ip_Cfg.c

Finished building: ../generate/src/Lcu_Ip_VS_0_PBcfg.c

In file included from ../src/Bjb.c:27:
../RTD/include/CDD_Bcc_772c_SL.h:49:2: warning: #warning is a GCC extension
49 | #warning "This is a DEMO version of Bcc_772c_SL and should not be used in production."
| ^~~~~~~
../RTD/include/CDD_Bcc_772c_SL.h:49:2: warning: #warning "This is a DEMO version of Bcc_772c_SL and should not be used in production." [-Wcpp]
In file included from ../src/Cmu.c:27:
../RTD/include/CDD_Bcc_775a_SL.h:48:2: warning: #warning is a GCC extension
48 | #warning "This is a DEMO version of Bcc_775a_SL and should not be used in production."
| ^~~~~~~
../RTD/include/CDD_Bcc_775a_SL.h:48:2: warning: #warning "This is a DEMO version of Bcc_775a_SL and should not be used in production." [-Wcpp]
../src/Bjb.c:28:10: fatal error: CDD_Bms_common.h: No such file or directory
28 | #include "CDD_Bms_common.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
../src/Cmu.c:28: fatal error: CDD_Bms_common.h: No such file or directory
28 | #include "CDD_Bms_common.h"
|
compilation terminated.
make: *** [src/subdir.mk:29: src/Cmu.o] Error 1
make: *** [src/subdir.mk:29: src/Bjb.o] Error 1
Finished building: ../generate/src/Lpspi_Ip_VS_0_PBcfg.c

In file included from ../src/main.c:27:
../RTD/include/CDD_Bcc_775a_SL.h:48:2: warning: #warning is a GCC extension
48 | #warning "This is a DEMO version of Bcc_775a_SL and should not be used in production."
| ^~~~~~~
../RTD/include/CDD_Bcc_775a_SL.h:48:2: warning: #warning "This is a DEMO version of Bcc_775a_SL and should not be used in production." [-Wcpp]
In file included from ../src/Common.c:31:
C:/Users/mgomez/workspaceS32DS.3.4/HVBMS-RD_Bring-up_example_S32DS/include/Common.h:127: error: unknown type name 'Bms_TDType'
127 | void Td_Wait(const Bms_TDType* MessageTD);
|
In file included from ../src/Common.c:33:
C:/NXP/S32DS.3.4/S32DS/software/FreeMASTER_S32K3_v3.0/src/common/FreeMaster.h:35: warning: "FMSTR_PLATFORM_CORTEX_M" is not defined, evaluates to 0 [-Wundef]
35 | #if FMSTR_PLATFORM_CORTEX_M
|
In file included from ../src/Common.c:33:
C:/NXP/S32DS.3.4/S32DS/software/FreeMASTER_S32K3_v3.0/src/common/FreeMaster.h:39: warning: "FMSTR_PLATFORM_S12Z" is not defined, evaluates to 0 [-Wundef]
39 | #elif FMSTR_PLATFORM_S12Z
|
../src/Common.c:110: error: unknown type name 'Bms_TDType'
110 | void Td_Wait(const Bms_TDType* MessageTD)
|
../src/Common.c: In function 'Td_Wait':
../src/Common.c:112: error: request for member 'PhyTD' in something not a structure or union
112 | volatile Phy_TStatusInfoType *p_TDStatus = (volatile Phy_TStatusInfoType *)(uint32)&MessageTD->PhyTD->Status;
|
../src/Common.c: In function 'Led_Update':
../src/Common.c:158: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
158 | dtticounter--;
|
make: *** [src/subdir.mk:29: src/Common.o] Error 1
In file included from ../RTD/include/Port.h:50,
from ../src/main.c:34:
C:/Users/mgomez/workspaceS32DS.3.4/HVBMS-RD_Bring-up_example_S32DS/generate/include/Port_Cfg.h:50: fatal error: Siul2_Port_Ip_Cfg.h: No such file or directory
50 | #include "Siul2_Port_Ip_Cfg.h"
|
compilation terminated.
make: *** [src/subdir.mk:29: src/main.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

11:34:16 Build Failed. 14 errors, 8 warnings. (took 3s.50ms)

 

Thank you !!!

Tags (1)
0 Kudos
Reply
1 Reply

1,788 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Maitane,

First of all, please make sure you have all the packages installed in the right order, presented in section 5.1.1 of the HVBMS Installation Guide. This is really important, even some colleagues faced similar problems when they did not follow the order. 

Capture (1).JPG

There can be multiple reasons for the failure, here is a list:

1. Installation order from the HVBMS installation guide was not followed, BMS SDK was installed first then RTD.
2. Generation timeout of S32DS in order to fix this issue see section : 5.1.1.8.3.1 form the HVBMS installation guide.

In case of difficulties in the code generation using S32 Configuration due to computer speed, it is possible to remove the timeout in the C:\NXP\S32DS.3.4\eclipse\s32ds.ini file by adding the following line: -Dcom.nxp.swtools.codegenscript.timeout=-1.

After adding this in .ini file please restart S32DS and create a new workspace where a fresh import has to be tried.

I hope it helps!

Best regards,

Tomas

PS: The HVBMS Installation Guide is classified as a Secure File requiring an NDA and can be downloaded from the following website:

https://www.nxp.com/design/designs/hvbms-reference-design-bundle-using-etpl:RD-HVBMSCTBUN

Capture 1.JPG

0 Kudos
Reply