Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PlatformIO upload_port issues I don\'t know what the problem is, I was able to u

ID: 2249805 • Letter: P

Question

PlatformIO upload_port issues

I don't know what the problem is, I was able to upload the code before today but now it seems to have problems. Does anyone know how I can solve this?

Compiling .pioenvsmegaatmega2560FrameworkArduino ew.o Compiling .pioenvsmegaatmega2560FrameworkArduino wiring.(o Compiling .pioenvsmegaatmega2560FrameworkArduinowiring analog.o Compiling .pioenvsmegaatmega2560 FrameworkArduinowiring digital.o Compiling .pioenvsmegaatmega2560FrameworkArduinowiring pulse.o Compiling .pioenvsmegaatmega2560FrameworkArduinowiring shift.o Compiling .pioenvsmegaatmega2560libSoftwareSerialSoftwareSerial.o Archiving .pioenvsmegaatmega2560libFrameworkArduino.a Archiving .pioenvsmegaatmega2560liblibSoftwareSerial.a Linking .pioenvsmegaatmega2560 irmware.elf Checking program size text 2570 Building .pioenvsmegaatmega2560 irmware.hex 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/user/device name>) data bss dec hex filename 56 161 2787 ae3 .pioenvsmegaatmega2560 irmware.elf [upload] Explicit exit, status 1 ERROR] Took 25.51 seconds

Explanation / Answer

Please try to fix with the following

one by one ..

1. Please add to platformio.ini (because it looks like your kit only supports uploading over STlink)

=> Adding upload_protocol = stlink to platform.ini  will solve you issue i guess .

(https://github.com/platformio/platformio-core/commit/1a305f2dd7000e856eaba31d55c70c49ffd66c4c)

It worked for me, but I used STM32F411 board with stlink. I'm not sure about yours..

2. Try by setting the below one.

Set upload_port = *:/NODE_F401RE. Replace * with the disk letter

3. Try to close, and open Atom.

You check can also check with your "Serial monitor”

There's a chance where your usb-rs adapter is not seen by the system. It depends on the model you are using, try with the compatible one now once.

HomeBridge don't have MQTT broker, You must instal it extra.

Better use with FT232 (If for MAC-OS)

4.

The stlink protocol is set by default only for the disco_* boards where the mbed disk is used for nucleo_*.

In this case, you need to manually force the upload_protocol.

5. For some development platforms it can be a USB flash drive (i.e. /media//)

If you don't have the right port, you won't be able to flash it. It depends on OS you are using alos, make sure you are flashing through the arduino IDE- because that's probably the best option if you don't know how you're doing.

Try using these, your problem must be fixed with any of the above tips for sure..

Many thanks

Have a nice day