Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Dear Champs,
I'm trying to compile example from PRU-ICSS-HSR-PRP-DAN_01.00.02.00 package. I've generated the project as it is described in the User Guide (with all the packages installed as mentioned in the Release Notes), but when I compile the project, I get the following errors (I get these same errors with PRP project as well):
###################################
'Building file: C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a9 -mtune=cortex-a9 -march=armv7-a -marm -mfloat-abi=hard -mfpu=neon -Dam4379 -DSOC_AM437x -Dcore0 -DPTP_TESTING -DBUILD_HSR_H -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/protocols/hsr_prp/projects/hsr_app_AM437x_arm" -I"C:/ti/pdk_am437x_1_0_7/packages" -I"C:/ti/pdk_am437x_1_0_7/packages/ti/starterware/include/am43xx" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00" -I"C:/ti/ndk_2_25_01_11" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/protocols/hsr_prp/include" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/protocols/snmp/include" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/third_party/protocols/snmp/include" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/third_party/protocols/ptp/ptpd/dep" -I"C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/protocols/hsr_prp/firmware/hsr" -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-2 -gstrict-dwarf -Wall -mno-unaligned-access -MMD -MP -MF"hsr_prp_menu.d" -MT"hsr_prp_menu.o" -o"hsr_prp_menu.o" @"configPkg/compiler.opt" "C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c"
subdir_rules.mk:23: recipe for target 'hsr_prp_menu.o' failed
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c: In function 'printPTPStatus':
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c:285:5: warning: implicit declaration of function 'TimeSync_isEnabled' [-Wimplicit-function-declaration]
if(!TimeSync_isEnabled(timeSyncHandle))
^
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c: In function 'txHSRPRPTestFrame':
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c:701:21: error: 'START_OF_UDP_HEADER' undeclared (first use in this function)
hsrPrpTestFrame[START_OF_UDP_HEADER + 2] = seq_num;
^
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c:701:21: note: each undeclared identifier is reported only once for each function it appears in
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c: In function 'parseAndCheckHSRPRPTestFrame':
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c:748:19: error: 'START_OF_UDP_HEADER' undeclared (first use in this function)
if((tempFrame[START_OF_UDP_HEADER] == 0xAB)
^
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c: In function 'readAndAssignIPAddress':
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/hsr_prp_menu.c:799:30: error: 'START_OF_IP_ADDRESS' undeclared (first use in this function)
memcpy(hsrPrpTestFrame + START_OF_IP_ADDRESS, &ipAddr, 4);
^
gmake: *** [hsr_prp_menu.o] Error 1
...
hsr_app_snmp/subdir_rules.mk:9: recipe for target 'hsr_app_snmp/mib_impl.o' failed
C:/ti/PRU-ICSS-HSR-PRP-DAN_01.00.02.00/examples/hsr_prp/snmp/mib_impl.c:37:26: error: 'NUMBER_OF_PORTS' undeclared here (not in a function)
struct ifEntry_mib ifp[NUMBER_OF_PORTS];
....
#######################################
Could you please advise how to resolve the issue?HSR
BR,
Ilya