Compiling error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling error

601 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by theasus on Sat Jun 25 03:17:41 MST 2011
When   I tried to compile  main.c file which is located at   "AN10960 DALI slave using the LPC1112  " , It gave some errors;

My compiler is Keil uVision 4.21.

dali_drv.c(212): error:  #20: identifier "SystemFrequency" is undefined

ballast.c(137): error:  #136: struct "<unnamed>" has no field "SYSTICKCLKDIV"

ballast.c(138): error:  #20: identifier "SystemFrequency" is undefined

ballast.c(141): error:  #136: struct "<unnamed>" has no field "JTAG_TDO_PIO1_1"

flash.c(49): error:  #20: identifier "SystemFrequency" is undefined

Could you propose anything?I have read this application note But I couldn't understand why did original application note codes give errors?
0 Kudos
2 Replies

424 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Tue Jun 28 04:24:17 MST 2011
Hello theasus,

[COLOR=#1f497d][FONT=Calibri]The compiler errors find their origin in the newer version of the compiler,[/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri] their header (LPC11xx.h) and startup file (system_LPC11xx.c).[/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri] [/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri] [/FONT][/COLOR]
[FONT=Courier New]dali_drv.c(212): error:  #20: identifier "SystemFrequency" is undefined[/FONT]
[FONT=Courier New] [/FONT]
[FONT=Courier New]ballast.c(137): error:  #136: struct "<unnamed>" has no field "SYSTICKCLKDIV"[/FONT]
[FONT=Courier New] [/FONT]
[FONT=Courier New]ballast.c(141): error:  #136: struct "<unnamed>" has no field "JTAG_TDO_PIO1_1"[/FONT]
[FONT=Courier New] [/FONT]
[COLOR=#1f497d][FONT=Calibri] [/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri]How to solve the problem:[/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri] [/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri][FONT=Calibri]1.[/FONT]       [/FONT][/COLOR][COLOR=#1f497d][FONT=Calibri]Change in “[/FONT][/COLOR][FONT=Courier New]SystemFrequency”[/FONT][COLOR=#1f497d][FONT=Calibri] in “SystemCoreClock”[/FONT][/COLOR]
[COLOR=#1f497d][FONT=Calibri][FONT=Calibri]2.[/FONT]       [/FONT][/COLOR][COLOR=#1f497d][FONT=Calibri]Delete the line met [/FONT][/COLOR][FONT=Courier New]SYSTICKCLKDIV[/FONT][COLOR=#1f497d][/COLOR]
[COLOR=#1f497d][FONT=Calibri][FONT=Calibri]3.[/FONT]       [/FONT][/COLOR][COLOR=#1f497d][FONT=Calibri]Change [/FONT][/COLOR][FONT=Courier New]"JTAG_TDO_PIO1_1" [/FONT][COLOR=#1f497d][FONT=Calibri]in  “[/FONT][/COLOR][FONT=Courier New]R_PIO1_1”[/FONT][COLOR=#1f497d][/COLOR]
[COLOR=#1f497d][FONT=Calibri] [/FONT][/COLOR]
0 Kudos

424 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Sat Jun 25 05:07:31 MST 2011

Quote: theasus
When   I tried to compile  main.c file which is located at   "AN10960 DALI slave using the LPC1112  " , It gave some errors;

My compiler is Keil uVision 4.21.


In that case, I would suggest that a better place to look for help might be the Keil forums, rather than the LPCXPresso ones!

http://www.keil.com/forum/


Quote:


dali_drv.c(212): error:  #20: identifier "SystemFrequency" is undefined

ballast.c(137): error:  #136: struct "<unnamed>" has no field "SYSTICKCLKDIV"

ballast.c(138): error:  #20: identifier "SystemFrequency" is undefined

ballast.c(141): error:  #136: struct "<unnamed>" has no field "JTAG_TDO_PIO1_1"

flash.c(49): error:  #20: identifier "SystemFrequency" is undefined

Could you propose anything?I have read this application note But I couldn't understand why did original application note codes give errors?

I've not looked at this apps note, but these errors appear to be related to definitions from CMSIS. Probably means that you are failing to include the CMSIS code/headers in your build.

HTH!
0 Kudos