Serial Port Not Working

dlhethern:
Hi All,

Bought an Arduino AT Mega2560 and am using visual studio code with PlatformIO. I set up a simple program to turn on LED lights. When I went to upload code it couldnt talk to the development board. The error message was

, looking for upload port...
Error: Please specify upload_port for environment or use global --upload-port option.
For some development platforms it can be a USB flash drive (i.e. /media//)

then i spent approximately 2 solid days trying to trouble shoot it. Didnt have any luck. I tried modifying the platformio.ini file to specify upload port.

I have a Lenovo Ideapad with 2 USB ports.

Thanks

I suspect that you might be better of on a platformio forum; possibly https://community.platformio.org/