Here is the simple code I am trying to test, but seems to make my ATmega2560 stop executing :
xbee = XBee();
The main XBee (coordinator) is working great (tested with X-CTU) and directly wired to VCC/Ground of the board, with TX to the RX1 of the board (for Serial1), and communication with another XBee (router) is ok (associated and receiving).
So with this code, a LED wired to pin 31 of the mega is correctly blinking until I power up the router... As soon as the coordinator starts receiving datas, the code stops executing, the LED is not blinking anymore...
Any idea why this is happening?