Forum >Cant upload code to DFRduino Mega
Cant upload code to DFRduino Mega

I have an DFRduino Mega also i have a dfrobot mega shield on it ([url=http://www.dfrobot.com/index.php?route=product/product&product_id=339]http://www.dfrobot.com/index.php?route=product/product&product_id=339[/url]) which support xbees chips... I put it in the xbee adafruit sells ([url=http://www.adafruit.com/products/128]http://www.adafruit.com/products/128[/url]). But im having a problem uploading code..
When the xbee is connected to my shield i get error messages saying that it cant load code cuz the programmer is not responding... If i remove the xbee i can upload code just fine. If i put it back up it works perfectly i just cant upload code while it is in it..
Is there a way to load code (using reg usb cable and reg arduino IDE) while the xbees is in???
When the xbee is connected to my shield i get error messages saying that it cant load code cuz the programmer is not responding... If i remove the xbee i can upload code just fine. If i put it back up it works perfectly i just cant upload code while it is in it..
Is there a way to load code (using reg usb cable and reg arduino IDE) while the xbees is in???
2012-04-16 19:02:26 Hi SuperMiguel,
That behaviour is normal. While the Xbee is connected it is occupying the Rx/Tx pins for Serial0 which is the same serial port the USB uses to program the MEGA. So it will not allow you to program it. You need to remove the Xbee in order to program it.
There is 2 options get some [url=https://www.dfrobot.com/index.php?route=product/product&filter_name=wireless%20programming&product_id=398]WPMs[/url] or get the new [url=https://www.dfrobot.com/index.php?route=product/product&path=35_39&product_id=560]MEGA Expansion shield[/url]
With the new shield you have 3 xbee slots, and this will allow you to choose which Serial port the Xbee uses, which will free up Serial0 for USB programming.
Hector
That behaviour is normal. While the Xbee is connected it is occupying the Rx/Tx pins for Serial0 which is the same serial port the USB uses to program the MEGA. So it will not allow you to program it. You need to remove the Xbee in order to program it.
There is 2 options get some [url=https://www.dfrobot.com/index.php?route=product/product&filter_name=wireless%20programming&product_id=398]WPMs[/url] or get the new [url=https://www.dfrobot.com/index.php?route=product/product&path=35_39&product_id=560]MEGA Expansion shield[/url]
With the new shield you have 3 xbee slots, and this will allow you to choose which Serial port the Xbee uses, which will free up Serial0 for USB programming.
