Skip to content

Won't upload data to Arduino Micro #2106

@ServerPlayerPro

Description

@ServerPlayerPro

Describe the problem

I am getting this error when trying to upload data to my Arduino Micro Board from the IDE version 2.1.0

Sketch uses 4894 bytes (17%) of program storage space. Maximum is 28672 bytes.
Global variables use 201 bytes (7%) of dynamic memory, leaving 2359 bytes for local variables. Maximum is 2560 bytes.
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

To reproduce

Arduino Micro connected through Micro USB pushing from the portable version of the 2.1.0 IDE.

Code:

#include <Mouse.h>

const int upButton = 2;
const int downButton = 3;
const int leftButton = 4;
const int rightButton = 5;
const int mouseButtonL = 6;
const int fmouseButtonR = 7;

void setup() {  
  pinMode(upButton, INPUT);
  pinMode(downButton, INPUT);
  pinMode(leftButton, INPUT);
  pinMode(rightButton, INPUT);
  pinMode(mouseButtonL, INPUT);
  pinMode(fmouseButtonR, INPUT);

  Serial.begin(9600);
  Mouse.begin();
}

void loop() {
  if (Serial.available() > 0) {
    char inChar = Serial.read();

    switch (inChar) {
      case 'u':
        // move mouse up
        Mouse.move(0, -40);
        break;
      case 'd':
        // move mouse down
        Mouse.move(0, 40);
        break;
      case 'l':
        // move mouse left
        Mouse.move(-40, 0);
        break;
      case 'r':
        // move mouse right
        Mouse.move(40, 0);
        break;
      case 'm':
        // perform mouse left click
        Mouse.click(MOUSE_LEFT);
        break;
      case 'f':
        // perform mouse left click
        Mouse.click(MOUSE_RIGHT);
        break;
    }
  }
}

Expected behavior

Sketch uses 4894 bytes (17%) of program storage space. Maximum is 28672 bytes.
Global variables use 201 bytes (7%) of dynamic memory, leaving 2359 bytes for local variables. Maximum is 2560 bytes.
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

Arduino IDE version

2.1.0

Operating system

Windows

Operating system version

Windows 10 Home 22H2

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions