We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I would like to debug a piece of source code based on 8052 microcontroller, the code is following:
MAIN: MOV T2CON, #02h MOV tl2, #0FBh MOV th2, #0FFh MOV RLDL, #0FBh MOV RLDH, #0FFh MOV IE, #0A0h SETB TR2 HERE: LJMP HERE ORG 002BH CPL P1.0 RET END
The device I choose is "Analog device ->ADE7169F16". As I know, it is based on 8052 microcontroller and it contains 3 timers/counters. But when I compile it, it appears error message as follow: Build target 'Target 1' assembling 8052.asm... 8052.asm(1): error A45: UNDEFINED SYMBOL (PASS-2) 8052.asm(2): error A45: UNDEFINED SYMBOL (PASS-2) 8052.asm(3): error A45: UNDEFINED SYMBOL (PASS-2) 8052.asm(4): error A45: UNDEFINED SYMBOL (PASS-2) 8052.asm(5): error A45: UNDEFINED SYMBOL (PASS-2) 8052.asm(7): error A45: UNDEFINED SYMBOL (PASS-2) Target not created
Who can help me ? Thanks in advance!
wwang
These are assmebler errors - they are nothing to do with simulation or debugging!
You need to get your project to build cleanly (ie, without errors or warnings) before you can simulate or denug it.
"8052.asm(7): error A45: UNDEFINED SYMBOL (PASS-2)"
Does the message not tell you which symbol it considers to be undefined? Have you checked the rest of your code - have you provided a definition for the symbol in question?
There is no ADE7169F16 listed here: http://www.keil.com/dd/chips/analogdevices/8051.htm Are you sure it's supported?
Just because it's not on the list doesn't mean it can't be used; it just means that you have to do the work yourself - like providing the SFR definitions...