I recently obtained a Controllino Mini to be used in a small industrial project. While checking it out I also wanted to test the built-in RTC capabilities. In doing so I toyed around with the available commands from the supplied library. After uploading another sketch it seems I have bricked the Controllino, since I cannot upload anything else :
avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
and the reset LED is permanently lid. When looking at the pinout diagram of the Controllino Mini I saw that there was a small remark near the top stating
Not proper handling of the RTC/INT output can cause permanent controllino reset , so I guess I somehow reached that state.
Since I am pretty new to the whole Arduino / Microcontroller scene I don't really know where to go from here.
Is it a viable idea to try and burn a new bootloader ?
Is there a simpler way to reset the state of the device?
What did I even do wrong ?
Any help is greatly appreciated !
Christian
Below is the sketch that got me into this mess:
#include <Controllino.h>
unsigned char day, weekday, month, year, hour, minute, sec;
#define analogInputPin A0
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(analogInputPin, INPUT);
Controllino_RTC_init(1);
Serial.print("Initalized RTC: ");
Controllino_SetTimeDate(1,6,4,2016,15,14,10);
}
void loop() {
Controllino_ReadTimeDate(&day,&weekday,&month,&year,&hour,&minute,&sec);
float voltage = 15*(analogRead(analogInputPin)/1023.0);
Serial.print(hour);
Serial.print(":");
Serial.print(minute);
Serial.print(":");
Serial.print(sec);
Serial.print(" : ");
Serial.println(voltage);
}