maxgerhardt / platform-raspberrypi

Raspberry Pi: development platform for PlatformIO
Apache License 2.0
94 stars 46 forks source link

Issues with Auto port selection #33

Open PabloOyarzo opened 1 year ago

PabloOyarzo commented 1 year ago

I tried it once and it worked, and while trying to run some examples of adafruit dual host usb it broke again.

I tried transfer the .elf file once to see if it was gonna work after that automatically but it didn't and also tried to create the project fresh new and it didnt work either.

platform.ini [env:pico] platform = https://github.com/maxgerhardt/platform-raspberrypi.git board = pico framework = arduino board_build.core = earlephilhower board_build.filesystem_size = 0.5m upload_protocol = mbed

Screenshot_189

Any guidance?

maxgerhardt commented 1 year ago

Mhh when you set upload_protocol = mbed you need to set upload_port = F:\ or whatever the upload bootloader disk will show up as.

PabloOyarzo commented 1 year ago

It worked if I inserted the pico with the BOOT SEL button pressed. Its not forcing reset so i dont have to do that manual process each time.

image

PabloOyarzo commented 1 year ago

Picotool did managed to reset the connection but failed to upload the file

image

maxgerhardt commented 1 year ago

If it fails in picotool, then you don't hve the right drivers installed with Zadig. Please checkout https://github.com/platformio/platform-raspberrypi/issues/2#issuecomment-828586398 and use either libusb or WinUSB drivers.

PabloOyarzo commented 1 year ago

Ok that worked beautifly! For those that didnt understand the comment posted up there! Plug in the pico with the BOOT SEL button pressed and use the Zadig tool to install the lib 32 driver on the RPI PICO Interface 1. After that you should be good!

On another note, whats the diference between using picotool and mbed @maxgerhardt ?