FNET TCP/IP Stack Compiling Error for S32 Design Studio

cancel
Showing results for 
Search instead for 
Did you mean: 

FNET TCP/IP Stack Compiling Error for S32 Design Studio

Jump to solution
386 Views
lukezhang
Contributor III

Hello all,

I've met a compiling error that my code couldn't compiled. Can anyone explain it? It seems it try to run assembler to a normal c file.

Compiling log:


Building file: ../src/fnet_stack/port/cpu/common/fnet_fec.c
Building file: ../src/fnet_stack/port/cpu/fnet_cpu.c
Executing target #36 ../src/fnet_stack/port/cpu/fnet_cpu.c
Executing target #35 ../src/fnet_stack/port/cpu/common/fnet_fec.c
Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
Executing target #37 ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/common/fnet_fec.args" -MMD -MP -MF"src/fnet_stack/port/cpu/common/fnet_fec.d" -MT"src/fnet_stack/port/cpu/common/fnet_fec.o" -c -o "src/fnet_stack/port/cpu/common/fnet_fec.o" "../src/fnet_stack/port/cpu/common/fnet_fec.c"
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/fnet_cpu.args" -MMD -MP -MF"src/fnet_stack/port/cpu/fnet_cpu.d" -MT"src/fnet_stack/port/cpu/fnet_cpu.o" -c -o "src/fnet_stack/port/cpu/fnet_cpu.o" "../src/fnet_stack/port/cpu/fnet_cpu.c"
Finished building: ../src/xt_util.c
Invoking: Standard S32DS C Compiler
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf.args" -MMD -MP -MF"src/fnet_stack/port/cpu/mcf/fnet_mcf.d" -MT"src/fnet_stack/port/cpu/mcf/fnet_mcf.o" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf.c"

Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.c
Executing target #38 ../src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.c
Invoking: Standard S32DS C Compiler
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.args" -MMD -MP -MF"src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.d" -MT"src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.o" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.c"
Finished building: ../src/fnet_stack/port/cpu/fnet_cpu.c
Finished building: ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c


Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_checksum.s
Finished building: ../src/fnet_stack/port/cpu/common/fnet_fec.c
Executing target #39 ../src/fnet_stack/port/cpu/mcf/fnet_mcf_checksum.s
Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.c
Finished building: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_cache.c

Executing target #40 ../src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.c

Invoking: Standard S32DS Assembler
Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.c
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf_checksum.args" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf_checksum.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf_checksum.s"
Invoking: Standard S32DS C Compiler
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.args" -MMD -MP -MF"src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.d" -MT"src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.o" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.c"
Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_isr.s
Executing target #41 ../src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.c
Invoking: Standard S32DS C Compiler
Executing target #42 ../src/fnet_stack/port/cpu/mcf/fnet_mcf_isr.s
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.args" -MMD -MP -MF"src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.d" -MT"src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.o" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf_flash.c"
Invoking: Standard S32DS Assembler
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h: Assembler messages:
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:56: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:57: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:58: Error: unrecognized opcode: `typedef'
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf_isr.args" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf_isr.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf_isr.s"
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:60: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:61: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:62: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:64: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:65: Error: unrecognized opcode: `typedef'
../src/fnet_stack/port/cpu/mcf/../../../port/compiler/../../port/cpu/../../port/cpu/mpc/../../../port/cpu/mpc/fnet_mpc.h:66: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/size_t.h:22: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/wchar_t.h:41: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/wchar_t.h:54: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/wchar_t.h:59: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/wchar_t.h:60: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/wchar_t.h:70: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/ewl_lib_ext1.h:19: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/ewl_rsize_t.h:24: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/cstddef:48: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/va_list.h:15: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:26: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:27: Error: junk at end of line, first unrecognized character is `{'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:28: Error: unrecognized opcode: `__closed_file,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:29: Error: unrecognized opcode: `__disk_file,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:30: Error: unrecognized opcode: `__console_file,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:31: Error: unrecognized opcode: `__unavailable_file'
Finished building: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_eth.c
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:32: Error: junk at end of line, first unrecognized character is `}'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:34: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:35: Error: junk at end of line, first unrecognized character is `{'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:36: Error: unrecognized opcode: `__must_exist,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:37: Error: unrecognized opcode: `__create_if_necessary,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:38: Error: unrecognized opcode: `__create_or_truncate'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:39: Error: junk at end of line, first unrecognized character is `}'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:42: Error: unrecognized opcode: `typedef'

E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:43: Error: junk at end of line, first unrecognized character is `{'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:44: Error: unrecognized opcode: `__unoriented,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:45: Error: unrecognized opcode: `__char_oriented,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:46: Error: unrecognized opcode: `__wide_oriented'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:47: Error: junk at end of line, first unrecognized character is `}'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:50: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:51: Error: junk at end of line, first unrecognized character is `{'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:52: Error: junk at end of line, first unrecognized character is `,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:53: Error: junk at end of line, first unrecognized character is `,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:54: Error: junk at end of line, first unrecognized character is `,'
Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.c
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:56: Error: junk at end of line, first unrecognized character is `}'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:58: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:59: Error: junk at end of line, first unrecognized character is `{'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:60: Error: unrecognized opcode: `unsigned'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:61: Error: unrecognized opcode: `unsigned'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:62: Error: unrecognized opcode: `unsigned'
Executing target #43 ../src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.c
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:63: Error: unrecognized opcode: `unsigned'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:66: Error: unrecognized opcode: `unsigned'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:69: Error: unrecognized opcode: `unsigned'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:70: Error: junk at end of line, first unrecognized character is `}'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:72: Error: unrecognized opcode: `typedef'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:73: Error: junk at end of line, first unrecognized character is `{'
Invoking: Standard S32DS C Compiler
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:74: Error: unrecognized opcode: `__neutral,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:75: Error: unrecognized opcode: `__writing,'
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.args" -MMD -MP -MF"src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.d" -MT"src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.o" -c -o "src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.o" "../src/fnet_stack/port/cpu/mcf/fnet_mcf_isr_inst.c"
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:76: Error: unrecognized opcode: `__reading,'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:77: Error: unrecognized opcode: `__rereading'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:78: Error: junk at end of line, first unrecognized character is `}'
E:/S32_Design_Studio/S32DS/e200_ewl2/EWL_C/include/file_struc.h:80: Error: unrecognized opcode: `typedef'

Regards,

Luke

Labels (1)
0 Kudos
1 Solution
276 Views
stanish
NXP Employee
NXP Employee

Hi Luke,

Seems you are trying to build FNET stack using S32DS.

Which MCU are you targeting? (MPC5744P?)

According to you build console log (see the snippet below) I suspect you are compiling wrong source code (ColdFire - mcf):

Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
Executing target #37 ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/common/fnet_fec.args" -MMD -MP -

FNET contains some low level routines written in assembler so this is probably the reason why you are getting these errors.

I'd recommend you to add the relevant source code into your project and build it again.

Hope it helps.

Stan

View solution in original post

2 Replies
276 Views
lukezhang
Contributor III

Hi Stan,

Thank for your reply. Yeah you're right the mcf is not my processor and I forget remove those code, so the compiler is compiling those assembly as well. After I removed it, the problem fixed. Thank you.

Regards,

Luke

0 Kudos
277 Views
stanish
NXP Employee
NXP Employee

Hi Luke,

Seems you are trying to build FNET stack using S32DS.

Which MCU are you targeting? (MPC5744P?)

According to you build console log (see the snippet below) I suspect you are compiling wrong source code (ColdFire - mcf):

Building file: ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
Executing target #37 ../src/fnet_stack/port/cpu/mcf/fnet_mcf.c
powerpc-eabivle-gcc "@src/fnet_stack/port/cpu/common/fnet_fec.args" -MMD -MP -

FNET contains some low level routines written in assembler so this is probably the reason why you are getting these errors.

I'd recommend you to add the relevant source code into your project and build it again.

Hope it helps.

Stan

View solution in original post