Hello i am new to this programming software, so can anyone tell me whats wrong with this code?
#include<stdio.> void main() { printf("Hello World"); while(1); }
What tools are you using? By that, I mean are you using the Keil tools for the 8051 or are you using the Keil tools for the 251, or are you using the Keil tools for the C16x, or are you using the Keil tools for ARM devices.
You see, the answer to your question depends a little bit on which tool chain you are using. The reason is that accessing the on-chip serial port is different for all of these toolchains. Furthermore, it may be different depending on the device you are using. So, knowing that in addition may help us help you.
One question I have is have you tried the "Hello World" examples that are provided, tested, and known to work?
Jon