UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 22535

9.1i EDK/RTOS - PPC405 Xilinx BSP code error: "ppc405Timer.c missing some includes at the beginning"

Description

When I build a VxWorks bootrom using the BSP provided by EDK, if the ppc405Timer.c is in the project file list, the following errors occur:

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 286: error (dcc:1525): iden

tifier SYS_CLK_RATE_MIN not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 286: error (dcc:1525): iden

tifier SYS_CLK_RATE_MAX not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 298: error (dcc:1525): iden

tifier sysTimerClkFreq not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 465: error (dcc:1525): iden

tifier AUX_CLK_RATE_MIN not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 465: error (dcc:1525): iden

tifier AUX_CLK_RATE_MAX not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 544: error (dcc:1525): iden

tifier _EXC_OFF_WD not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 662: error (dcc:1525): iden

tifier WDT_RATE_MIN not declared

"C:\Tornado2.2\target\config\bsp_ppc405_0\ppc405Timer.c", line 662: error (dcc:1525): iden

tifier WDT_RATE_MAX not declared

Solution

These undefined symbol errors and non-fatal warnings are caused by missing code in ppc4054Timer.c. Once the following lines are added, the code compiles without errors or warnings:

#include "sysLib.h" /*declares sysHwInit2()*/

#include "ppc405_0.h" /*declares undefined clock rate symbols*/

#include "arch/ppc/excPpcLib.h" /*delclares undefined _EXC_ vector*/

extern int sysTimerClkFreq; /*declaration of a global*/

AR# 22535
Date Created 09/04/2007
Last Updated 12/15/2012
Status Active
Type General Article