I start uVision3 and clicked 'New uVision Project' from the Project Menu. A 'Create New Project' window appears. I enter the name of the project (LEDTest) and clicked save. Then a "Select device for Target 1' window appeared. I then double-clicked on Atmel and chose the AT89C55WD as the device and I clicked OK. Then a window saying 'Copy Standard 8051 Startup Code to Project Folder and Add File To Project' appeared and I clicked yes. As soon as I did that, the Project Window displayed. On the 'Target 1' folder are 3 red dots which I know means there's something wrong. I haven't even written code yet and I'm having problems. Does anyone knows how to correct this problem?
what makes you so sure there is something wrong? start writing your code, uVision is waiting!
Tamir, I wrote some simple code to make an LED blink on and off. I tried to build it but I get 2 errors that to me don't make any sense. Here are the code and the error messages.
01 d: clr p3.1 ;Turn on LED 02 acall Delay ;Half second delay 03 setb p3.1 ;Turn off LED 04 acall Delay ;Half second delay 05 sjmp d ;Start over 06 Delay: mov r1,#255 07 b: mov r2,#255 08 e: djnz r2,e 09 djnz r1,b 10 ret 11 end
Build target 'Target 1' assembling STARTUP.A51... assembling LEDTest.a... F:\LEDTest.a(7): error A8: ATTEMPT TO DEFINE AN ALREADY DEFINED LABEL F:\LEDTest.a(9): error A46: CODE-ADDRESS EXPECTED Target not created