Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello
I have the following situation. I want to measure the time between some loop iterations on my AM3359.
So I decided to use the onboard timers.
Having a look in the "SYS/BIOS (TI-RTOS Kernel) v6.46 User's Guide" I found the "Timer Module" and some Sample Code.
I added the Header file:
#include <packages\ti\sysbios\timers\dmtimer\Timer.h>
And some sample code:
Timer_stop(timerHandle); Timer_setPeriodMicroSecs(4000); Timer_start(timerHandle);
During build I got the following error: #error xdc_target_types_ must be defined to name a target_specific header containing definitions of xdc_Int8,xdc_Int16
Referring to a post (https://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/227107/798893?tisearch=e2e-sitesearch&keymatch=std.h xdc_target_types__#798893) I found the hint to add some preprocessor directives.
But, I am not sure what the right "target_name" I have to use for the AM3359 on ICEV2 board.
Additionally I get some build errors ...
**** Build of configuration Debug for project HelloWorld **** "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 'Building file: ../hello.c' 'Invoking: GNU Compiler' "C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -Dam3359 -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -I"C:/ti/xdctools_3_32_01_22_core" -I"C:/ti/xdctools_3_32_01_22_core/packages" -I"C:/ti/bios_6_46_04_53" -I"C:/ti/bios_6_46_04_53/packages" -Xpreprocessor "xdc_target_types__=ti/targets/std.h" -Xpreprocessor "xdc_target_name__=C64P" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="rdimon.specs" -MMD -MP -MF"hello.d" -MT"hello.o" -o"hello.o" "../hello.c" subdir_rules.mk:7: recipe for target 'hello.o' failed cc1.exe: fatal error: xdc_target_types__=ti/targets/std.h: No such file or directory compilation terminated. gmake: *** [hello.o] Error 1 'Building file: ../startup_ARMCA8.S' 'Invoking: GNU Compiler' "C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -Dam3359 -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -I"C:/ti/xdctools_3_32_01_22_core" -I"C:/ti/xdctools_3_32_01_22_core/packages" -I"C:/ti/bios_6_46_04_53" -I"C:/ti/bios_6_46_04_53/packages" -Xpreprocessor "xdc_target_types__=ti/targets/std.h" -Xpreprocessor "xdc_target_name__=C64P" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="rdimon.specs" -MMD -MP -MF"startup_ARMCA8.d" -MT"startup_ARMCA8.o" -o"startup_ARMCA8.o" "../startup_ARMCA8.S" subdir_rules.mk:14: recipe for target 'startup_ARMCA8.o' failed cc1.exe: error: too many filenames given. Type cc1.exe --help for usage cc1.exe: fatal error: xdc_target_types__=ti/targets/std.h: No such file or directory compilation terminated. gmake: *** [startup_ARMCA8.o] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
Maybe somebody can give me another hint to solve my problem or maybe there is somewhere a finished timer example for the AM335x on ICEV2.
Toolchain: CCS 6.2 / GNU v4.9.3 / SYS/BIOS 6.46.4.53 / XDC 3.32.1.22