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();
}
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.
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.
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).
Pres and hold reset button on the Controllino device.
Connect the USB Cable (still hold the reset button, SW inside the Controllino doesn’t start)
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)
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
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.