Hello, i upload a code to arduino, and i had written a line to disable all interrupts, and now it cant be connected to the computer. Is there a way to fix this???
Please, post (here) the code you loaded and the error you receive between the code tag... </>
Have you pressed the reset button?
void setup() {
analogReadResolution(12);
Serial.begin(9600);
noInterrupts();
}
void loop() {
//Serial.println(DC(A6));
//delay(500);
Serial.println(pulseIn(3,LOW));
}
In arduino mkr zero i uploaded this code, there isnt a error, when i connect the arduino to the laptop there is a message that this device cant be recognized.
In the code i didnt enable ever interrupts, so it cant communicate with computer using usb.
Yes every time i push the button this programm starts again and i cant enable interrupts again.
The only boards that I think of where this would be an issue are boards with native USB.
If so, double tap reset should invoke the boot loader. You just need to get the timing right.
I'm now using a cell phone, I can provide more extensive instructions tomorrow if you don't come right.
OMG you saved me, thanks a lot!!! It works fine now.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.