Build MPC5604P project, pop an error:Token 'equals' not expected

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

Build MPC5604P project, pop an error:Token 'equals' not expected

1,599 次查看
Wangerxi
Contributor II

Hi all,

I use CW11.1 new a MPC5604P project and build, it pop an error '### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected', Could you help me solve the error, thanks.

 

Er

0 项奖励
回复
3 回复数

1,555 次查看
Wangerxi
Contributor II

Hi Peter,

Thanks for you reply, the detailed error info as below:


**** Clean-only build of configuration RAM for project 5604P_Demo ****
Build complete for project 5604P_Demo

**** Build of configuration RAM for project 5604P_Demo ****

"D:\\Freescale\\CW MCU v11.1\\gnu\\bin\\mingw32-make" -j16 all
'Building file: ../Sources/Exceptions.c'
'Building file: ../Sources/IntcInterrupts.c'
'Building file: ../Sources/ivor_branch_table.c'
'Building file: ../Sources/main.c'
'Building file: ../Project_Settings/Startup_Code/MPC5604P_HWInit.c'
'Building file: ../Project_Settings/Startup_Code/MPC5604P_Startup.c'
'Building file: ../Project_Settings/Startup_Code/MPC5604P_init_ram.c'
'Building file: ../Project_Settings/Startup_Code/__ppc_eabi_init.c'
'Executing target #1 ../Sources/Exceptions.c'
'Executing target #2 ../Sources/IntcInterrupts.c'
'Executing target #3 ../Sources/ivor_branch_table.c'
'Executing target #4 ../Sources/main.c'
'Executing target #5 ../Project_Settings/Startup_Code/MPC5604P_HWInit.c'
'Executing target #6 ../Project_Settings/Startup_Code/MPC5604P_Startup.c'
'Executing target #7 ../Project_Settings/Startup_Code/MPC5604P_init_ram.c'
'Executing target #8 ../Project_Settings/Startup_Code/__ppc_eabi_init.c'
'Invoking: PowerPC Compiler'
'Invoking: PowerPC Compiler'
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Sources/Exceptions.args" -o "Sources/Exceptions_c.obj" "../Sources/Exceptions.c" -MD -gccdep
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Sources/IntcInterrupts.args" -o "Sources/IntcInterrupts_c.obj" "../Sources/IntcInterrupts.c" -MD -gccdep
'Invoking: PowerPC Compiler'
'Invoking: PowerPC Compiler'
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Sources/ivor_branch_table.args" -o "Sources/ivor_branch_table_c.obj" "../Sources/ivor_branch_table.c" -MD -gccdep
'Invoking: PowerPC Compiler'
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Sources/main.args" -o "Sources/main_c.obj" "../Sources/main.c" -MD -gccdep
'Invoking: PowerPC Compiler'
'Invoking: PowerPC Compiler'
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Project_Settings/Startup_Code/MPC5604P_HWInit.args" -o "Project_Settings/Startup_Code/MPC5604P_HWInit_c.obj" "../Project_Settings/Startup_Code/MPC5604P_HWInit.c" -MD -gccdep
'Invoking: PowerPC Compiler'
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Project_Settings/Startup_Code/MPC5604P_Startup.args" -o "Project_Settings/Startup_Code/MPC5604P_Startup_c.obj" "../Project_Settings/Startup_Code/MPC5604P_Startup.c" -MD -gccdep
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Project_Settings/Startup_Code/MPC5604P_init_ram.args" -o "Project_Settings/Startup_Code/MPC5604P_init_ram_c.obj" "../Project_Settings/Startup_Code/MPC5604P_init_ram.c" -MD -gccdep
"D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc" @@"Project_Settings/Startup_Code/__ppc_eabi_init.args" -o "Project_Settings/Startup_Code/__ppc_eabi_init_c.obj" "../Project_Settings/Startup_Code/__ppc_eabi_init.c" -MD -gccdep
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
### D:/Freescale/CW MCU v11.1/MCU/PA_Tools/Command_Line_Tools/mwcceppc Usage Error:
# Token 'equals' not expected
# Token 'equals' not expected

Errors caused tool to abort.

Errors caused tool to abort.

Errors caused tool to abort.

Errors caused tool to abort.

Errors caused tool to abort.

Errors caused tool to abort.
mingw32-make: *** [Project_Settings/Startup_Code/MPC5604P_init_ram_c.obj] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Sources/Exceptions_c.obj] Error 1
mingw32-make: *** [Project_Settings/Startup_Code/MPC5604P_HWInit_c.obj] Error 1

Errors caused tool to abort.

Errors caused tool to abort.
mingw32-make: *** [Project_Settings/Startup_Code/MPC5604P_Startup_c.obj] Error 1
mingw32-make: *** [Sources/main_c.obj] Error 1
mingw32-make: *** [Project_Settings/Startup_Code/__ppc_eabi_init_c.obj] Error 1
mingw32-make: *** [Sources/ivor_branch_table_c.obj] Error 1
mingw32-make: *** [Sources/IntcInterrupts_c.obj] Error 1

 

Best regards

0 项奖励
回复

1,513 次查看
stanish
NXP Employee
NXP Employee

Hello,

Could you possibly start with disabling parallel compilation. This will help to identify which specific source file that is causing the error:

stanish_0-1653473111686.png

Please sent us build listing after this change.

Also this error might  be caused by an additional character in project paths:

https://community.nxp.com/t5/CodeWarrior-for-MCU/CODEWARRIOR-10-2-with-MQX-4-2-Error-gt-Token-equals...

 

hope it helps.

Stan

 

 

0 项奖励
回复

1,568 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

could you post a screenshot of the error?

Best regards,

Peter

0 项奖励
回复