Difference between revisions of "Flashing firmware on the Pi Pico"
Jump to navigation
Jump to search
Tinker0436 (talk | contribs) (Created page with "Very rudimentary for now - check https://www.youtube.com/watch?v=_bImqD-pQSA") |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Very rudimentary for now - check https://www.youtube.com/watch?v=_bImqD-pQSA | Very rudimentary for now - check https://www.youtube.com/watch?v=_bImqD-pQSA | ||
== How to flash the pi pico from the raspberry pi using openocd == | |||
'''''Directly copied from a discord conversation''''' | |||
use the <code>.bin</code> file if flashing via openocd or the <code>.uf2</code> file for flashing via usb mass storage | |||
bridge the jumpers like on the right picture (you can leave them like this during normal operation, the idea is that instead of the jumpers you can use an external debugger on those pins as well) | |||
[[File:Bridge-these-Jumpers-for-flashing-Pico-via-SWD and OCD.jpg|thumb]] | |||
on your raspi do<syntaxhighlight lang="shell"> | |||
cd open_mower_ros/utils/scripts/ | |||
sudo ./upload_firmware.sh /path/to/your/firmware.bin</syntaxhighlight> | |||
{| class="wikitable" | |||
|+Neopixel color | |||
|red | |||
|during boot | |||
|- | |||
|orange - red flashing | |||
|emergency mode and ros is disconnected | |||
|- | |||
|green - red flashing | |||
|emergency mode and ros is connected | |||
|- | |||
|steady green | |||
|ros is connected and no emergency mode is detected | |||
(all voltages are OK, wheels aren't lifted, emergency button is not pressed) | |||
|} |
Latest revision as of 12:34, 5 August 2022
Very rudimentary for now - check https://www.youtube.com/watch?v=_bImqD-pQSA
How to flash the pi pico from the raspberry pi using openocd
Directly copied from a discord conversation
use the .bin
file if flashing via openocd or the .uf2
file for flashing via usb mass storage
bridge the jumpers like on the right picture (you can leave them like this during normal operation, the idea is that instead of the jumpers you can use an external debugger on those pins as well)
on your raspi do
cd open_mower_ros/utils/scripts/
sudo ./upload_firmware.sh /path/to/your/firmware.bin
red | during boot |
orange - red flashing | emergency mode and ros is disconnected |
green - red flashing | emergency mode and ros is connected |
steady green | ros is connected and no emergency mode is detected
(all voltages are OK, wheels aren't lifted, emergency button is not pressed) |