Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

DSP simulator in Code Composer Studio for Hercules Cortex-R4

$
0
0

I downloaded the Cortex-R4 CMSIS DSP library.

I also have the Code composer studio for Tiva series which has the Cortex R4 little endian functional simulator.

I imported the arm_sin_cos_example from the library, included the header files from the include folder in the library and the ti_math_Cortex_R4_l.lib, referred them in the linker and tried to compile and got lot of errors.

Questions:

1. Is it possible to run the examples in the simulator?

2. If so, what steps should I take to compile and run the programs in the simulator.

Thanks.

**** Build of configuration Debug for project R31 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

'Building file: ../arm_sin_cos_example_f32.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="arm_sin_cos_example_f32.pp"  "../arm_sin_cos_example_f32.c"

"C:\Users\prema2\workspace_v5_4\R31\Include\type_defs.h", line 47: error #20: identifier "__int64" is undefined

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 508: warning #225-D: function declared implicitly

>> Compilation failure

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 512: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 558: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 562: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4629: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4632: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4632: error #20: identifier "__packed" is undefined

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4632: error #18: expected a ")"

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4632: error #31: expression must have integral type

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4641: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4767: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4767: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 4878: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 5006: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 5009: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 5127: warning #225-D: function declared implicitly

"C:/Users/prema2/workspace_v5_4/R31/Include/arm_math.h", line 5130: warning #225-D: function declared implicitly

4 errors detected in the compilation of "../arm_sin_cos_example_f32.c".

gmake: *** [arm_sin_cos_example_f32.obj] Error 1

'Building file: ../TI/Source/dmm.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/dmm.pp" --obj_directory="TI/Source"  "../TI/Source/dmm.c"

>> Compilation failure

"../TI/Source/dmm.c", line 13: fatal error #5: could not open source file "dmm.h"

1 fatal error detected in the compilation of "../TI/Source/dmm.c".

Compilation terminated.

gmake: *** [TI/Source/dmm.obj] Error 1

'Building file: ../TI/Source/esm.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/esm.pp" --obj_directory="TI/Source"  "../TI/Source/esm.c"

"../TI/Source/esm.c", line 19: fatal error #5: could not open source file "esm.h"

1 fatal error detected in the compilation of "../TI/Source/esm.c".

Compilation terminated.

>> Compilation failure

gmake: *** [TI/Source/esm.obj] Error 1

'Building file: ../TI/Source/perf_monitor_r4.asm'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/perf_monitor_r4.pp" --obj_directory="TI/Source"  "../TI/Source/perf_monitor_r4.asm"

'Finished building: ../TI/Source/perf_monitor_r4.asm'

' '

'Building file: ../TI/Source/pinmux.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/pinmux.pp" --obj_directory="TI/Source"  "../TI/Source/pinmux.c"

"../TI/Source/pinmux.c", line 12: fatal error #5: could not open source file "pinmux.h"

1 fatal error detected in the compilation of "../TI/Source/pinmux.c".

Compilation terminated.

>> Compilation failure

gmake: *** [TI/Source/pinmux.obj] Error 1

'Building file: ../TI/Source/pom.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/pom.pp" --obj_directory="TI/Source"  "../TI/Source/pom.c"

"../TI/Source/pom.c", line 10: warning #97-D: a translation unit must contain at least one declaration

'Finished building: ../TI/Source/pom.c'

' '

'Building file: ../TI/Source/rti.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/rti.pp" --obj_directory="TI/Source"  "../TI/Source/rti.c"

"../TI/Source/rti.c", line 14: warning #97-D: a translation unit must contain at least one declaration

'Finished building: ../TI/Source/rti.c'

' '

'Building file: ../TI/Source/rtp.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/rtp.pp" --obj_directory="TI/Source"  "../TI/Source/rtp.c"

"../TI/Source/rtp.c", line 13: fatal error #5: could not open source file "rtp.h"

1 fatal error detected in the compilation of "../TI/Source/rtp.c".

Compilation terminated.

>> Compilation failure

gmake: *** [TI/Source/rtp.obj] Error 1

'Building file: ../TI/Source/sci.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sci.pp" --obj_directory="TI/Source"  "../TI/Source/sci.c"

"../TI/Source/sci.c", line 10: warning #97-D: a translation unit must contain at least one declaration

'Finished building: ../TI/Source/sci.c'

' '

'Building file: ../TI/Source/spi.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/spi.pp" --obj_directory="TI/Source"  "../TI/Source/spi.c"

"../TI/Source/spi.c", line 8: warning #97-D: a translation unit must contain at least one declaration

'Finished building: ../TI/Source/spi.c'

' '

'Building file: ../TI/Source/sys_core.asm'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_core.pp" --obj_directory="TI/Source"  "../TI/Source/sys_core.asm"

"../TI/Source/sys_core.asm", ERROR!   at line 66: [E0002] Instruction requires VFP support

fmdrr d0,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 67: [E0002] Instruction requires VFP support

        fmdrr d1,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 68: [E0002] Instruction requires VFP support

        fmdrr d2,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 69: [E0002] Instruction requires VFP support

        fmdrr d3,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 70: [E0002] Instruction requires VFP support

        fmdrr d4,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 71: [E0002] Instruction requires VFP support

        fmdrr d5,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 72: [E0002] Instruction requires VFP support

        fmdrr d6,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 73: [E0002] Instruction requires VFP support

        fmdrr d7,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 74: [E0002] Instruction requires VFP support

        fmdrr d8,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 75: [E0002] Instruction requires VFP support

        fmdrr d9,         r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 76: [E0002] Instruction requires VFP support

        fmdrr d10,        r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 77: [E0002] Instruction requires VFP support

        fmdrr d11,        r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 78: [E0002] Instruction requires VFP support

        fmdrr d12,        r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 79: [E0002] Instruction requires VFP support

        fmdrr d13,        r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 80: [E0002] Instruction requires VFP support

        fmdrr d14,        r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 81: [E0002] Instruction requires VFP support

        fmdrr d15,        r1,     r1

"../TI/Source/sys_core.asm", ERROR!   at line 139: [E0002] Instruction requires VFP or NEON support

        fmxr  fpexc,   r0

17 Assembly Errors, No Assembly Warnings

Errors in Source - Assembler Aborted

>> Compilation failure

gmake: *** [TI/Source/sys_core.obj] Error 1

'Building file: ../TI/Source/sys_intvecs.asm'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_intvecs.pp" --obj_directory="TI/Source"  "../TI/Source/sys_intvecs.asm"

'Finished building: ../TI/Source/sys_intvecs.asm'

' '

'Building file: ../TI/Source/sys_memory.asm'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_memory.pp" --obj_directory="TI/Source"  "../TI/Source/sys_memory.asm"

'Finished building: ../TI/Source/sys_memory.asm'

' '

'Building file: ../TI/Source/sys_mpu.asm'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_mpu.pp" --obj_directory="TI/Source"  "../TI/Source/sys_mpu.asm"

'Finished building: ../TI/Source/sys_mpu.asm'

' '

'Building file: ../TI/Source/sys_phantom.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_phantom.pp" --obj_directory="TI/Source"  "../TI/Source/sys_phantom.c"

'Finished building: ../TI/Source/sys_phantom.c'

' '

'Building file: ../TI/Source/sys_pmu.asm'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_pmu.pp" --obj_directory="TI/Source"  "../TI/Source/sys_pmu.asm"

'Finished building: ../TI/Source/sys_pmu.asm'

' '

'Building file: ../TI/Source/sys_startup.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/sys_startup.pp" --obj_directory="TI/Source"  "../TI/Source/sys_startup.c"

"../TI/Source/sys_startup.c", line 24: fatal error #5: could not open source file "sys_common.h"

1 fatal error detected in the compilation of "../TI/Source/sys_startup.c".

Compilation terminated.

>> Compilation failure

gmake: *** [TI/Source/sys_startup.obj] Error 1

'Building file: ../TI/Source/system.c'

'Invoking: ARM Compiler'

"C:/ti/ccsv5/tools/compiler/arm_5.0.6/bin/armcl" -mv7R4 --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.6/include" --include_path="C:/Users/prema2/workspace_v5_4/R31/Include" --diag_warning=225 --display_error_number --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="TI/Source/system.pp" --obj_directory="TI/Source"  "../TI/Source/system.c"

"../TI/Source/system.c", line 20: fatal error #5: could not open source file "system.h"

1 fatal error detected in the compilation of "../TI/Source/system.c".

Compilation terminated.

>> Compilation failure

gmake: *** [TI/Source/system.obj] Error 1

gmake: Target `all' not remade because of errors.

**** Build Finished ****

The error is given below

 

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles