Building MicroPython for Pico W #9627
-
Hello, I'm able to successfully build the MicroPython firmware for the original (non-W) Pico, using the zip/tar source files here: However, what's the procedure to build it for the Pico W? It fails, because there is no PICO_W folder in rp2/boards Since that didn't work, I tried this:
It fails, again because there's no rp2/boards/PICO_W in the v1.19.1 tagged code. If I try to build the head, it fails because there's no pico-sdk and tinyusb etc., whereas if I build from the zip/tar file mentioned earlier, it all just works. I don't know precisely what to do here. I have tried dumping the pico-sdk into the micropython/lib folder, but again there were errors (pasted below). What's the easiest way to build v1.19.1 MicroPython for the Pico W? Anyone have a working set of commands I should type? Many thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Instead of using the tarball it's better to clone the repository with |
Beta Was this translation helpful? Give feedback.
-
@shabaz123 The Pico W did not exist at the time of the v1.19.1. That's why the board directory doesn't exist. You'll need to use a later revision (i.e. the current head of the master branch) |
Beta Was this translation helpful? Give feedback.
-
You may have missed the step_
in the MicroPyhton directory. That will add all required submodules in the right version. No need to install them separately. And yes, better stay in the master branch and the most recent state. |
Beta Was this translation helpful? Give feedback.
-
Why so complicated? I use If the current working directory is micropython, then you can also use make from there:
Then ports/rp2/build-PICO_W is created. There you can find the firmware.uf2 |
Beta Was this translation helpful? Give feedback.
-
Thank you, @robert-hh , @jimmo and @sosi-deadeye ! Thanks!
|
Beta Was this translation helpful? Give feedback.
Why so complicated? I use
make -j 16 BOARD=PICO_W
inside the port directory of rp2 and esp32.Sometimes
make submodules
is required, to get the new dependencies.If the current working directory is micropython, then you can also use make from there:
Then ports/rp2/build-PICO_W is created. There you can find the firmware.uf2