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.
Hello everyone, I just installed A51 keil and have made a small test program and get build errors. I'm sure i have not configured the settings properly so please help me out.
My device which i have selected is 'generic 8052'. @ 12MHz My program:
#include <reg52.h>
sbit switch_pin P1^2;
sbit led_pin P1^3;
void main(void) { bit x;
switch_pin = 1;
while(1) { x = switch_pin; //read led_pin = x; //write } } Errors: led.c(13): error:c202:'switch_pin': undefined identifier led.c(14): error:c202:'led_pin': undefined identifier
Edit: Also how do i get it to show warning messages. It just shows: "0 errors,2 warnings"
What are these warnings?On what line do they occur..etc