About hello example in KeilC

The hello sample example in keil C can use printf to output message in serial port window#1. But, I had tried to modify my project to do the same job, it's failed.
I had check option of target to be the same as hello.
Compile ok.
What's wrong?

More questions in this forum