Strange Error on Arduino Mega 2560

When I try uploading any sketch to my board I get this error:

Using Port                    : /dev/cu.usbmodem142201
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
-avrdude: ser_open(): can't open device "/dev/cu.usbmodem142201": Resource busy
-ioctl("TIOCMGET"): Inappropriate ioctl for device
-ioctl("TIOCMGET"): Inappropriate ioctl for device

This error only appeared after I tried using cvzone and trying to send data from python over to Arduino for a project I'm working on. Before that my board worked perfectly fine. I've shut up down and restarted my laptop, closed all other windows and apps running other than Arduino IDE. I tried using the example blink sketch to over ride my previous sketches. I grounded the RX pin to reset the boards memory. I tried everything and nothing seems to work. Any help would be appreciated. Thank you.

The message indicates that some other process already has the serial port open so the uploader cannot connect to your MEGA. Perhaps the "cvzone" has a background process that is connecting to the MEGA whenever it appears.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.