[Solved] WiFly RN-XV+Arduino MEGA 2560 upload error

Hello,

I want to use the RN_XV module to control some relays and send data taken from a sensor.

This is my Hardware:

When I have everything connected and I try to upload a sketch I receive the following error:

avrdude: stk500v2_ReceiveMessage(): timeout

if I disconnected only the RN-XV I can upload any sketch.

Someone help me??

I have also tried to connect the RN-XV directly to arduino (3.3V, GND, RX, TX pin) using the WiFlyHQ libraries https://github.com/harlequin-tech/WiFlyHQ/downloads and I receive the same error.

The last attempt was to connect the RN-XV with Arduino not from Serial Hardware but from digital pins using SoftwareSerial.h.
The result was that from the serial hardware, used as a debugger, I received the following message.

setPrompt failed

Thanks All XD

When I have everything connected

How is it connected?

I have also tried to connect the RN-XV directly to arduino (3.3V, GND, RX, TX pin) using the WiFlyHQ libraries https://github.com/harlequin-tech/WiFlyHQ/downloads and I receive the same error.

Because the sketch gets uploaded through the RX and TX pins, and the WiFly thing is interfering.

The last attempt was to connect the RN-XV with Arduino not from Serial Hardware but from digital pins using SoftwareSerial.h.

You have 4 hardware serial ports. Pick another one, not a software serial port (which can not be done on all pins on the Mega).

The result was that from the serial hardware, used as a debugger, I received the following message.

Without seeing your code, no comment.

Thanks for your answer :slight_smile:

I changed the hardware serial port, and now it seems to work with the code examples of the library wiflyHQ.h. I had already tried to do this but it's probably something wrong in the connections. :~ :~

thanks again for your time!