'Error "avrdude: stk500_recv(): programmer is not responding" (macOS Monterey)

Recently, I started a project using an Arduino Uno. I am using the Arduino IDE on macOS v12.2 (Monterey). The IDE was compiling and uploading to the Arduino fine; however, recently it still compiles, but keeps sending me the "programmer is not responding error" when uploading.

Below is my code and the steps I have taken to debug so far.

void setup() {
  Serial.begin(1000);
  delay(50);
}

void loop() {
  Serial.print("Hello, World!");
  delay(500);
}
  • First, I tried unplugging, replugging, and resetting my board.
  • I also made sure that the correct port and board were selected in the IDE.
  • Furthermore, I deleted the IDE completely and reinstalled it.
  • Lastly, I switched out the board and wire for other ones and the error still remained.

None of these seem to be the issue as I tested the same program and board on a Windows laptop and it uploaded fine. Additionally, the RX light flashes every couple of seconds and the L light is constantly on, showing proper connectivity. This leads me to believe that there is something wrong with the macOS and Arduino IDE specifically.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source