Upload to DFRobot RoMeo BLE board fails

Continuing the discussion from 4WD pirate platform issues:

Hey quick question what do I do when it tells me this
Failed uploading: uploading error: exit status 1

Unplug the USB cable from the USB port, plug it in again and upload again.

I tried doing that but it still tells me the same thing

Verify your IDE shows (near the top/left) your board and port

I have it to the right port and board here is the full thing if it tells you anything

Sketch uses 4120 bytes (12%) of program storage space. Maximum is 32256 bytes.
Global variables use 236 bytes (11%) of dynamic memory, leaving 1812 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\.\COM4": Access is denied.

Failed uploading: uploading error: exit status 1

This is a job for @ptillisch (who will be around soon)

... and while you wait... close the IDE and reopen it... and maybe reboot your computer.

I think it is a good suggestion. @zackskolar give that a try and then let us know if you still get the error message when uploading after doing that.

It still doesn't work, and also, I was reading the error code and I saw that I was putting in more gigabits than it could take so I don't know if that is part of the problem.

OK, it was worth a try.

This error can occur when the port is open in another application. Only one application can have a serial port open at a time so Arduino IDE can't perform an upload under these conditions.

Check to see whether you have any applications running on your computer that might use the port. If they are, close them and then try the upload again.

If you aren't aware of any such application running on your computer, you can try the technique described in this Arduino Help Center article:

https://support.arduino.cc/hc/en-us/articles/4407830972050-Find-and-stop-process-blocking-a-port#windows

One application that might have the port open is Arduino IDE itself. Both the Serial Monitor and Serial Plotter features use the port. Arduino IDE is smart enough to automatically close the connection in the Serial Monitor and Serial Plotter so that it doesn't interfere with the upload. However, just in case that port juggling system is not working correctly, please try an upload after closing Serial Monitor and Serial Plotter if you have either open. You can close Serial Monitor by clicking the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window:

image

Close Serial Plotter by closing its dedicated window as you would do with any window.

It downloaded, thank you. Now the code is making the arduino go back, forth, and stop, and then again back and forth stop...

You are welcome. I'm glad it is working now.

Regards,
Per