I just cant upload any sketch (VS code, Mac OS). I’ve tried normal upload and verbose, changing ports, reboots, rebuilds, terminal command lsof | grep etc… I still can upload sketches using Arduino IDE, so I don’t know whats the problem with platformio…
Thank you kindly for your answers!
> Executing task in folder geek-watches-display: platformio run --target upload <
Processing nanoatmega328 (platform: atmelavr; board: nanoatmega328; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/nanoatmega328.html
PLATFORM: Atmel AVR > Arduino Nano ATmega328
HARDWARE: ATMEGA328P 16MHz 2KB RAM (30KB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 25 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ShiftDisplay> 3.6.1
Checking size .pioenvs/nanoatmega328/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [= ] 6.7% (used 137 bytes from 2048 bytes)
PROGRAM: [= ] 7.5% (used 2310 bytes from 30720 bytes)
Configuring upload protocol...
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port...
Auto-detected: /dev/cu.usbserial-1420
*** [upload] could not open port /dev/cu.usbserial-1420: [Errno 16] Resource busy: '/dev/cu.usbserial-1420'
=============================================================================================== [ERROR] Took 0.82 seconds ===============================================================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.