<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Debugging the Raspberry Pi Pico on Windows 10</title><link>/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><description>IntroductionSetting up an IDE for C++ development on the Raspberry Pi Pico is covered in the Getting Started with Raspberry Pi Pico guide. The guide is not surprisingly focused on using a Raspberry Pi as your development machine, although it does cov</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Mon, 26 Dec 2022 07:31:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>dougw</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Some good tips here...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Mon, 12 Dec 2022 12:14:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>garfius</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Just compiled updated version of &lt;a title="picoprobe.uf2" href="https://drive.google.com/file/d/1LMwI9eNDvpcAAhyrHMnxh9dJWsr_ZTBP/view?usp=share_link" rel="noopener noreferrer" target="_blank"&gt;picoprobe.uf2&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Sun, 18 Sep 2022 12:12:29 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I got this to work!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2 comments:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;there&amp;#39;s a typo:&amp;nbsp;cortex-debg.openocdPath should be&amp;nbsp;cortex-&lt;strong&gt;debug&lt;/strong&gt;.openocdPath&lt;/li&gt;
&lt;li&gt;I had to add this entry in launch.json, because the toolkit and debugger couldn&amp;#39;t find objdump&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;objdumpPath&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;arm-none-eabi-objdump&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Wed, 25 May 2022 18:56:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>gautombose</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This version of openocd does not work with Windows10 32 bit version.&lt;/p&gt;
&lt;p&gt;Is it possible to have a version of openocd compiled for 32bit windows 10 please.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Thu, 05 Aug 2021 07:35:32 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>Fred27</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve just taken another look at the Pico after months of not touching it. Unfortunately my installation seems to have broken itself whilst unattended, so I&amp;#39;m working through things again.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;OK - I &lt;em&gt;may&lt;/em&gt; have upgraded to Windows 11 beta in the meantime, but everything else still works!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Thu, 05 Aug 2021 04:44:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>sdt</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Fred,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great tutorial - Got up to the part where VSCode was being configured... It seems to want to work, but I&amp;#39;m getting the following message when I actually try to debug:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Failed to launch OpenOCD GDB Server: Timeout&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The output console looks normal:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;Open On-Chip Debugger 0.10.0+dev-g14c0d0d-dirty (2021-01-27-15:43)&lt;/p&gt;&lt;p&gt;Licensed under GNU GPL v2&lt;/p&gt;&lt;p&gt;For bug reports, read&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://openocd.org/doc/doxygen/bugs.html" rel="nofollow ugc noopener" target="_blank"&gt;http://openocd.org/doc/doxygen/bugs.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Info : only one transport option; autoselect &amp;#39;swd&amp;#39;&lt;/p&gt;&lt;p&gt;Warn : Transport &amp;quot;swd&amp;quot; was already selected&lt;/p&gt;&lt;p&gt;adapter speed: 5000 kHz&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Info : Hardware thread awareness created&lt;/p&gt;&lt;p&gt;Info : Hardware thread awareness created&lt;/p&gt;&lt;p&gt;Info : RP2040 Flash Bank Command&lt;/p&gt;&lt;p&gt;Info : Listening on port 50001 for tcl connections&lt;/p&gt;&lt;p&gt;Info : Listening on port 50002 for telnet connections&lt;/p&gt;&lt;p&gt;Info : clock speed 5000 kHz&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Debug Console displays the following message:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;Please check OUTPUT tab (Adapter Output) for output from C:\VSARM\sdk\pico\openocd_picoprobe\openocd.exe&lt;/p&gt;&lt;p&gt;Launching server: &amp;quot;C:\VSARM\sdk\pico\openocd_picoprobe\openocd.exe&amp;quot; &amp;quot;-c&amp;quot; &amp;quot;gdb_port 50000&amp;quot; &amp;quot;-c&amp;quot; &amp;quot;tcl_port 50001&amp;quot; &amp;quot;-c&amp;quot; &amp;quot;telnet_port 50002&amp;quot; &amp;quot;-s&amp;quot; &amp;quot;C:/VSARM/sdk/pico/openocd_picoprobe/tcl/&amp;quot; &amp;quot;-f&amp;quot; &amp;quot;interface/picoprobe.cfg&amp;quot; &amp;quot;-f&amp;quot; &amp;quot;target/rp2040.cfg&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The 2 .json files were modified as per your examples (obviously with the paths changed), and running openocd and the debugger manually in command prompts works fine.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Have you seen this error message and do you have any idea what the problem might be?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;p&gt;Steve&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Thu, 04 Mar 2021 13:18:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>maxpowerr</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good article. But unfortunately I cannot find the Raspberry Pico on sale.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Thu, 04 Mar 2021 00:09:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>phil.newman</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks for the guide. It was super useful and easy to follow - I was up and running in no time.&lt;/p&gt;&lt;p&gt;A couple notes/questions:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Even after adding the nmake env variable i can&amp;#39;t build from a &amp;#39;normal&amp;#39; vs code instance. I get build errors such as: &amp;quot;&lt;em&gt;fatal error C1083: Cannot open include file: &amp;#39;cstdio&amp;#39;: No such file or directory&lt;/em&gt;&amp;quot; and &amp;quot;&lt;em&gt;NMAKE : fatal error U1077: &amp;#39;C:\PROGRA~2\MIB055~1\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\Hostx86\x86\cl.exe&lt;/em&gt;&amp;#39; : return code &amp;#39;0x2&amp;#39;&amp;quot;. I&amp;#39;ve not spent much time investigating however, and it&amp;#39;s only a minor inconvenience.&lt;/li&gt;&lt;li&gt;Were you able to get stdout (printf) redirected to the vs code console? I still have to run putty to see my friendly debug lines.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again for article.&lt;/p&gt;&lt;p&gt;Phil&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Tue, 16 Feb 2021 12:41:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>mengrie</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Fred,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thx to your extended research I got my Pico Debugging setup almost working. Based on the Pico C/C++ documention I was not abled to get everything working. Escpailly the OpenOCD stuff. &lt;br /&gt;Based on this your writing above, I got to the point where I can build all but when openocd starts like this&lt;/p&gt;&lt;p&gt;Launching server: &amp;quot;H:\Electronica\MicroControllers\Pico\OpenOCD&amp;quot; &amp;quot;-c&amp;quot; &amp;quot;gdb_port 50000&amp;quot; &amp;quot;-s&amp;quot; &amp;quot;H:\Electronica\MicroControllers\Pico\OpenOCD\tcl&amp;quot; &amp;quot;-f&amp;quot; &amp;quot;/interface/picoprobe.cfg&amp;quot; &amp;quot;-f&amp;quot; &amp;quot;/target/rp2040.cfg&amp;quot;, I get an error telling me &amp;quot;Failed to launch OpenOCD GDB server: Error: spawn&amp;nbsp;&amp;nbsp; H:\Electronica\MicroControllers\Pico\OpenOCD ENOENT. I checked double-checked and recheched all but found no discrepancy against your settings. &lt;br /&gt;Did you can across this one? If yes, any clue where I need to look or make changes?&lt;br /&gt;Note: running arm-none-eabi-gdb test.elf from the VSC Dev command prompt in the directory where test.elf resides does work and give me this output &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;H:\Electronica\MicroControllers\Pico\Projects\C\test\build&amp;gt;arm-none-eabi-gdb test.elf&lt;/p&gt;&lt;p&gt;D:\Portable\gcc-arm\bin\arm-none-eabi-gdb.exe: warning: Couldn&amp;#39;t determine a path for the index cache directory.&lt;/p&gt;&lt;p&gt;GNU gdb (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.1.90.20201028-git&lt;/p&gt;&lt;p&gt;Copyright (C) 2020 Free Software Foundation, Inc.&lt;/p&gt;&lt;p&gt;&lt;span&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://gnu.org/licenses/gpl.html" rel="nofollow ugc noopener" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/a&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;This is free software: you are free to change and redistribute it.&lt;/p&gt;&lt;p&gt;There is NO WARRANTY, to the extent permitted by law.&lt;/p&gt;&lt;p&gt;Type &amp;quot;show copying&amp;quot; and &amp;quot;show warranty&amp;quot; for details.&lt;/p&gt;&lt;p&gt;This GDB was configured as &amp;quot;--host=i686-w64-mingw32 --target=arm-none-eabi&amp;quot;.&lt;/p&gt;&lt;p&gt;Type &amp;quot;show configuration&amp;quot; for configuration details.&lt;/p&gt;&lt;p&gt;For bug reporting instructions, please see:&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="https://www.gnu.org/software/gdb/bugs/" rel="nofollow ugc noopener" target="_blank"&gt;https://www.gnu.org/software/gdb/bugs/&lt;/a&gt;&lt;span&gt;&amp;gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Find the GDB manual and other documentation resources online at:&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.gnu.org/software/gdb/documentation/" rel="nofollow ugc noopener" target="_blank"&gt;http://www.gnu.org/software/gdb/documentation/&lt;/a&gt;&lt;span&gt;&amp;gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For help, type &amp;quot;help&amp;quot;.&lt;/p&gt;&lt;p&gt;Type &amp;quot;apropos word&amp;quot; to search for commands related to &amp;quot;word&amp;quot;...&lt;/p&gt;&lt;p&gt;Reading symbols from test.elf...&lt;/p&gt;&lt;p&gt;(gdb)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thx in advance for whatever suggestion to get this solved abd running&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Mon, 15 Feb 2021 02:05:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>majbthrd</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;&lt;span&gt;Fred, FYI: if you had used pico-debug ( &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://github.com/majbthrd/pico-debug/" rel="nofollow ugc noopener" target="_blank"&gt;https://github.com/majbthrd/pico-debug/&lt;/a&gt;&lt;span&gt; ), you would not have needed multiple pico boards.&amp;nbsp; Providing you are not developing RP2040 code that uses USB, you can use the same OpenOCD + Visual Studio tools that you describe in your tutorial, but do away with needing multiple RP2040, picoprobe, jumpers, etc., etc.&amp;nbsp; As soon as the RP2040 was announced, I saw an opportunity for the RP2040 to debug itself, and pico-debug was the result.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Looking over your tutorial, the simplifications would be:&lt;/p&gt;&lt;p style="text-indent:-.25in;"&gt;1) no need to use Zadig (CMSIS-DAP is HID, which doesn&amp;#39;t require special drivers)&lt;/p&gt;&lt;p style="text-indent:-.25in;"&gt;2) the newer openocd and pico-sdk linked in the pico-debug &amp;quot;howto&amp;quot; subdirectory are needed&lt;/p&gt;&lt;p style="text-indent:-.25in;"&gt;3) the openocd invocation earlier in the tutorial would instead be: openocd -f interface/cmsis-dap.cfg -c &amp;quot;transport select swd&amp;quot; -c &amp;quot;adapter speed 4000&amp;quot; -f target/rp2040-core0.cfg&lt;/p&gt;&lt;p style="text-indent:-.25in;"&gt;4) in launch.json, replace:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &amp;quot;configFiles&amp;quot;: [&lt;/p&gt;&lt;p&gt; &amp;quot;/interface/picoprobe.cfg&amp;quot;,&lt;/p&gt;&lt;p&gt; &amp;quot;/target/rp2040.cfg&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;with:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &amp;quot;configFiles&amp;quot;: [&lt;/p&gt;&lt;p&gt; &amp;quot;interface/cmsis-dap.cfg&amp;quot;,&lt;/p&gt;&lt;p&gt; &amp;quot;target/rp2040-core0.cfg&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/p&gt;&lt;p&gt; &amp;quot;openOCDLaunchCommands&amp;quot;: [&lt;/p&gt;&lt;p&gt; &amp;quot;transport select swd&amp;quot;,&lt;/p&gt;&lt;p&gt; &amp;quot;adapter speed 4000&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Mon, 08 Feb 2021 23:56:20 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Fred,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Very useful post! This is extremely helpful to get people out of holes when everything is going wrong in code : ) Also, great info on how to do the reset.. it seems like almost a mandatory mod for anyone wanting to do lots of development/experimentation with the Pico.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For anyone unfamiliar with GDB, It&amp;#39;s definitely worth spending time exploring it, because although it can seem scary/obscure at first,&amp;nbsp; it can really save the day when all is going haywire. It&amp;#39;s good to get the familiarity with how the stack trace works, having debug symbols within the built code, even learning to compare the memory with assembler output etc.. Although it&amp;#39;s good to eventually have higher-level debug like console in a more stable system, sometimes GDB is essential.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;A few times things got so desperate I&amp;#39;d deliberately fill memory with known stuff and then see if content got overwritten when it shouldn&amp;#39;t have. A variant of that is an orthodox method too - some systems deliberately surround variables with magic bytes, so that if they get trampled, then it can be detected..&lt;/p&gt;&lt;p&gt;Having GDB also opens up some interesting possibilities, like having the code writing debug to RAM.. like a simplified version of printf almost, for the times where very high speed logging is needed, perhaps to a circular buffer, to be readable in the event of (say) a crash where you want to see the previous few seconds or milliseconds of history, to examine where it all went wrong. Some of these are just ideas for an &amp;#39;extreme situation&amp;#39; way out! : )&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Sun, 07 Feb 2021 22:10:01 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>ralphjy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks for the great tutorial.&amp;nbsp; Can&amp;#39;t wait to try this stuff out.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Just got my Picos off the reel &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-b252d5f8-0118-4fe7-a98e-c5d7551e5eaf/5023.contentimage_5F00_938.png:16:16]&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/215x350/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-b252d5f8-0118-4fe7-a98e-c5d7551e5eaf/1033.contentimage_5F00_207448.jpg:215:350]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Sun, 07 Feb 2021 21:56:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>neilk</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great tutorial, Fred.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Despite what I said before, I did understand most of it!! However, it will be a while before I try and implement it!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Neil&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Sun, 07 Feb 2021 20:51:13 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>feiticeir0</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Excellent tutorial. &lt;/p&gt;&lt;p&gt;Although I don&amp;#39;t use Windows (but use Visual Studio Code), I thing what you did will help a lot of people and who knows, someday I might use it&amp;nbsp; ! &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-b252d5f8-0118-4fe7-a98e-c5d7551e5eaf/contentimage_5F00_2516.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the Raspberry Pi Pico on Windows 10</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10</link><pubDate>Sun, 07 Feb 2021 20:20:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b252d5f8-0118-4fe7-a98e-c5d7551e5eaf</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very useful post.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10825&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>