<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cannot boot due to image validation problems when running &amp;quot;west debug&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120845/cannot-boot-due-to-image-validation-problems-when-running-west-debug</link><description>I boot AOK after I do a west flash --erase. But after that, when I try &amp;quot;west debug,&amp;quot; I run into this: 
 *** Booting nRF Connect SDK v2.9.0-2e7ce73f5faf *** *** Using Zephyr OS v3.7.99-1f8f3dc29142 *** Attempting to boot slot 0. Attempting to boot from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Apr 2025 15:21:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120845/cannot-boot-due-to-image-validation-problems-when-running-west-debug" /><item><title>RE: Cannot boot due to image validation problems when running "west debug"</title><link>https://devzone.nordicsemi.com/thread/532647?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 15:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84b0d45-98da-4cf0-bc68-6301eb87c100</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the feedback. I&amp;nbsp;provided a link to this thread in my bug report so the developers can see it. Regarding the attach option, maybe you&amp;#39;ve seen it already, but this is also possible to do via the extension through this button:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745421341777v1.png" /&gt;&amp;nbsp;&lt;/p&gt;
[quote userid="89447" url="~/f/nordic-q-a/120845/cannot-boot-due-to-image-validation-problems-when-running-west-debug/532614"]And what if I were debugging an application that crashed quickly after starting? In that case I guess I would have to add a sleep at the beginning of &amp;quot;main&amp;quot;.[/quote]
&lt;p&gt;Is it that it is not breaking on main()? I guess you could add a breakpoint for it with &amp;#39;b main&amp;#39; and then do a reset &amp;#39;mon reset 0&amp;#39;.&amp;nbsp;Disabling&amp;nbsp;CONFIG_RESET_ON_FATAL_ERROR in the project configuration&amp;nbsp;can also make it easier to catch a crash since it will prevent the device from potentially entering a boot loop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot boot due to image validation problems when running "west debug"</title><link>https://devzone.nordicsemi.com/thread/532614?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 13:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa39ceaa-d235-48f1-91eb-4e2d8847c278</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Vidar, I will throw my 2 cents, &amp;quot;simpleton&amp;quot; recommendation in for good, clear documentation for the &amp;quot;west attach&amp;quot; approach. I have been using that over the last couple of days, and very happy with it. And what if I were debugging an application that crashed quickly after starting? In that case I guess I would have to add a sleep at the beginning of &amp;quot;main&amp;quot;.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot boot due to image validation problems when running "west debug"</title><link>https://devzone.nordicsemi.com/thread/532490?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 06:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828395f1-c993-44bd-a8e9-2905f0dd4d59</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Burt,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry to hear that you had to spend time to figure out this problem.&amp;nbsp;I agree that this limitation needs to either be fixed or clearly documented. The issue is that the debugger loads the unsigned .elf file while only the .hex and .bin files are signed. I&amp;#39;ve raised a ticket in our internal bug tracker so the team can&amp;nbsp;figure out&amp;nbsp;the best way to address this. I will update this thread when I&amp;nbsp;know more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot boot due to image validation problems when running "west debug"</title><link>https://devzone.nordicsemi.com/thread/532213?ContentTypeID=1</link><pubDate>Mon, 21 Apr 2025 09:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8905aeb-5570-4cd7-980a-ceff572f1f89</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Okay, I found case 334803, where Vidar indicates that the trick is to use west attach to a board that has been flashed with the code to be debugged. And then I read about gdb&amp;#39;s monitor reset command. So the steps are west attach followed by break main followed by continue. That will put me at main(), which is what I am accustomed to. This is really nice. Please give me a time frame where I can expect to see this spelled out clearly in the documentation: a few good hints can save developers like myself lots of time. Some of us prefer to use command line tools until/unless we need an enhanced user experience available with VS Code. Well mostly enhanced--I can&amp;#39;t say that the required backtick ` before a gdb command is at all pleasurable.&lt;/p&gt;
&lt;p&gt;Burt Silverman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot boot due to image validation problems when running "west debug"</title><link>https://devzone.nordicsemi.com/thread/532191?ContentTypeID=1</link><pubDate>Sun, 20 Apr 2025 17:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:121e1b46-924e-4041-be08-bda8839cc21b</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;I am working on Linux. Also, back to the first case where I do not try anything with CONFIG_BOOT_VALIDATE_SLOT0=n, once the board gets stuck unable to find a bootable image, it is stuck that way with respect to a power on reset. I have to reflash the board to have it come up (without starting west debug, of course).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>