xbee and arduino connection

Hi everybody,

I want to ask a question, I bought 2 xbee S1 pros,2 xbee shields and 2 arduino unos for my project, separately they are working correctly , first I upload empty code to arduino and I bond xbee and xbee shield and arduino each other,then I configure Xbees and their connection is correct but when I try to load my main arduino code to my arduino, I get following error message;

Arduino:1.8.1 (Windows 10), Kart:“Arduino/Genuino Uno”

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x1c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x1c

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

Then I take xbee off from the xbee shield and upload my main arduino code , it’s okay I can upload code. but this time when I plug the Xbee back , XCTU Program give an error and can’t find my Xbee again.I can’t solve this problem. Sorry for my english and thanks in advance.

That’s because the hardware (Adapter board) requires you to only let either the PC or the processor control the radio. Both can’t have access to it.