CONTROLLINO MEGA – Timeout communicating with programmer

Hi,

I've been using my CONTROLLINO MEGA since long time ago, but today I uploaded a sketch and now the board is not working. Everytime I try to uploud a sketch, ARDUINO IDE remains in "uploading.." mode and after a while this message appears:

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

I have selected the correct board on the correct COM port (I've been using the board for months with no problem).

The sketch that I uploaded before this problem is:

SoftwareSerial serie(CONTROLLINO_D12, CONTROLLINO_D13);
void setup() {
Serial.begin(9600);
serie.begin(9600);
}
void loop() {
serie.listen();
Serial.println("Data from port one:");
while (serie.available() > 0) {
char inByte = serie.read();
Serial.write(inByte);
}
Serial.println();
}

Any Idea??
Thank you!!

I'have read this topic: Controllino Mini PLC not uploading

But dont know how to apply the solution on my CONTROLLINO MEGA

From atmega328 - Did I Brick my Controllino? - Arduino Stack Exchange the procedure appears to be

  1. Open the device and disconnect (remove) connection board for approx. 30 seconds from the control board – RTC is disconnected from power (gold cap disconnected) and because of that there is reset of all RTC registers.
  2. Plug the connection board back in to the control board. Now we need to rewrite the SW inside the Controllino which caused wrong RTC setting.
  3. Open the Controllino example RTC sketch in Arduino IDE and prepare it to upload (function Controllino_RTC_init(0); shall reset all registers inside the RTC).
  4. Pres and hold reset button on the Controllino device.
  5. Connect the USB Cable (still hold the reset button, SW inside the Controllino doesn’t start)
  6. Click for upload the sketch in Aruduino IDE and wait for „uploading“ message on debug line, than immediately release the reset button and uploading shall be finished (=> hold the reset button during the compiling phase)
  7. If not successful, repeat the procedure

Where are you stuck ?

When you get the uploading problem sorted out then we should discuss why you are using SoftwareSerial on a board with 4 hardware serial interfaces

1 Like

Thank you for answering!
What does means this?:

  1. Open the device and disconnect (remove) connection board for approx. 30 seconds from the control board – RTC is disconnected from power (gold cap disconnected) and because of that there is reset of all RTC registers.

When you get the uploading problem sorted out then we should discuss why you are using SoftwareSerial on a board with 4 hardware serial interfaces

I know but I was having a small problem and I wanted to try some other thing to check the serial coms.

Thank you very much!!

To me that sounds like the suggestion is to physically open the device and remove the board

1 Like

Especifically, which of this you mean by the board??

Thank you!

I have no idea as I don't have the device

Does the top board unplug from the one below perhaps ?

Does the top board unplug from the one below perhaps ?

Could be... I can see where both parts are plugged, but If I try to unplug them I get a considerable resistence, and I don't want to break it. :sweat_smile:

Considering what it costs I am not surprised

Time to seek help from the manufacturers perhaps ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.