Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5055

SDK • Re: PICO : Can't update firmware uf2 by drag and drog

$
0
0
Make sure an upload port is specified. From what I understand it is something like this:
I would like to, but I don't know which port to use, you can see in my previous post my device manager windows, and nothing is showing up as a PICO com port.
Try running VSC/PIO as administrator.
No change. But if I put my pico in Bootloader mode first, I can upload my .uf2 by clicking on upload, but only once, it the same situation afterward
Not sure where the notion of SWD upload came form
I'm not sure what you mean by SWD, but I'm using a pico maker and VCS platform.io to compile and upload, and my .ini looks like this :

Code:

[env:pico]platform = raspberrypiboard = picoframework = arduino
And the code is a simple blinking LED on Pin 19.

Code:

#include "Arduino.h"void setup() {  // Declare la broche sur laquelle la LED est    // reliee comme une sortie  pinMode(p19, OUTPUT);}  void loop() {  // Passer le sortie à l'état HAUT pour allumer la LED  digitalWrite(p19, HIGH);      // Attendre 1 seconde, pendant ce temps la LED reste allumee  delay(1000);      // Passer le sortie à l'état BAS pour eteindre la LED  digitalWrite(p19, LOW);        // Attendre 1 seconde, pendant ce temps la LED reste donc éteinte  delay(1000);}
I used this guide for setting up, but it's in french (nobody is perfect) :
https://tutoduino.fr/visual-studio-platformio-pico/
Two possibilities for no COM4; whatever was previously loaded into the Pico doesn't expose itself as a USB serial device, or something is preventing that being seen - Maybe Zadiq ?

I didn't think Zadiq was necessary for Windows 10 so wouldn't expect it to be needed for Windows 11, but I may be wrong.
On my previous install, I had to use zadig, but I can't remember precisely at which step it was necessary.
But could you confirm that a pico plugged on a windows (10 or 11) show a usb to serial com port on device manager.
Or is there somewhere in the code something that needs to be set to have access to this interface?
But being unable to get code uploaded and running via drag and drop is a bigger issue - If that doesn't work I can't imagine PlatformIO or 'picotool' will do any better.
This is fixed now, my problem now is that I can't upload from my IDE.
I should start another topic, but now that you are here... :oops:

Statistics: Posted by Krivers — Thu Feb 08, 2024 10:08 am



Viewing all articles
Browse latest Browse all 5055

Trending Articles