Hi everyone. I am trying to use an FTDI breakout board to connect to my custom made Arduino compatible board. I am using a new 16 inch macbook pro with USB-c ports, so I am using a dongle, in case that could be the problem.
Every time I try and upload a sketch I get the error: "can't open device "/dev/cu.usbserial-D306P6WW": Resource busy". When I check the /dev/ folder, both "/dev/cu.usbserial-D306P6WW" and "/dev/tty.usbserial-D306P6WW" show up, however in Arduino IDE I can only choose the "/dev/cu.usbserial-D306P6WW" option. I have installed FTDI VCP drivers, CH340 drivers and all kinds of other drivers to try and fix this issue. I have restarted countless times, and I have used a multitude of commands to check for programs hogging the usb port, but there is never a program. Plugging a harddrive into the same port causes no problems, so the port can't really be the problem. I am using a "FTDI FT231XS" board from Sparkfun.
Try this to make sure /dev/cu.usbserial-D306P6WW is really your FTDI breakout board:
Unplug your FTDI breakout board from your computer. Now open the Arduino IDE's Tools > Port menu (note that the ports list is only updated after you close and then re-open the Tools menu. Is /dev/cu.usbserial-D306P6WW still shown? If so, it's not the port of your FTDI breakout board.
pert:
Try this to make sure /dev/cu.usbserial-D306P6WW is really your FTDI breakout board:
Unplug your FTDI breakout board from your computer. Now open the Arduino IDE's Tools > Port menu (note that the ports list is only updated after you close and then re-open the Tools menu. Is /dev/cu.usbserial-D306P6WW still shown? If so, it's not the port of your FTDI breakout board.
When unplugging it dissapears from the ports selections in the Arduino IDE and the "/dev/" folder.
OK, then you know that's the right port. Unfortunately, I don't have any advice for you beyond what you already tried. Hopefully someone else here on the forum will be by to provide assistance.
Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting will result in a suspension from the forum.
In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.