I am having trouble with my Arduino Mega with getting the program to start when the Arduino is plugged into a computer via USB. All that happens is the LED turns on and stays on. The device does not initialize, and only when I press the reset button does it begin the setup. How can I make the Arduino start the program when it is first plugged into the computer?
EDIT: my code
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("test");
}
very simple, which is why i don't understand why this is happening