{"id":242,"date":"2024-08-26T04:37:55","date_gmt":"2024-08-26T04:37:55","guid":{"rendered":"https:\/\/lance.conryclan.com\/home\/?p=242"},"modified":"2024-08-26T04:38:23","modified_gmt":"2024-08-26T04:38:23","slug":"changing-the-pipico-boot-mode-from-powershell","status":"publish","type":"post","link":"https:\/\/lance.conryclan.com\/home\/changing-the-pipico-boot-mode-from-powershell\/","title":{"rendered":"Changing the PiPico boot mode from PowerShell"},"content":{"rendered":"\n<p>To put the Pi Pico into programming mode, you need to open a connection to it at its magic number port speed.  This set of commands allows me to set the mode and upload an .ino file.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Note that the standard magic number is 1200 baud, but in this instance, I&#8217;m using 300 baud after making a change to the Arduino library.<\/p>\n\n\n\n<p>First we need to define the port, with the connection speed:<\/p>\n\n\n\n<p><code class=\"\" data-line=\"\">$port300= new-Object System.IO.Ports.SerialPort COM11,300,None,8,one;<\/code><\/p>\n\n\n\n<p>Now, whenever we want to write a new file to the Pico, we issue the following command:<\/p>\n\n\n\n<p><code class=\"\" data-line=\"\">taskkill -f -im kitty.exe; Start-Sleep -Seconds 0.25; $port300.Close(); $port300.Open(); arduino-cli compile --upload --fqbn rp2040:rp2040:rpipico --port UF2_Board .\\k3ng_keyer.ino &amp;&amp; kitty -serial COM11 115200<\/code><\/p>\n\n\n\n<p>That&#8217;s it.<\/p>\n\n\n\n<p>Lance<\/p>\n\n\n\n<p>August &#8217;24<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To put the Pi Pico into programming mode, you need to open a connection to it at its magic number port speed. This set of commands allows me to set the mode and upload an .ino file.<\/p>\n","protected":false},"author":1,"featured_media":243,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development"],"_links":{"self":[{"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":1,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/posts\/242\/revisions\/244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/media\/243"}],"wp:attachment":[{"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lance.conryclan.com\/home\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}