<?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>Keil run button doesn&amp;#39;t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76956/keil-run-button-doesn-t-work</link><description>Hi, 
 
 We have a custom board with nRF52840 based ISP1807 and developed the fw to some point. For some reason we tried to run the same fw on the nRF52840 DK rather our custom board to make sure of something. However when we try to debug on DK the Keil</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jul 2021 15:08:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76956/keil-run-button-doesn-t-work" /><item><title>RE: Keil run button doesn't work</title><link>https://devzone.nordicsemi.com/thread/318279?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 15:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4953cc-c54b-4c7c-91a3-5f66217e8bf2</guid><dc:creator>Den</dc:creator><description>&lt;p&gt;I think it was because of the softdevice version. I was trying with version 6.1.0. Version 7.0.1 has solved the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help anyways.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil run button doesn't work</title><link>https://devzone.nordicsemi.com/thread/318276?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 14:41:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f833136-5a65-4cde-ab3f-490252b3abc5</guid><dc:creator>Den</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;After establishing the connection with JLink, &amp;quot;erase&amp;quot; command performs a full chip erase. Am I right? That&amp;#39;s what I do. Then I enter the loadfile command with the location of the softdevice hex file.&amp;nbsp;Both commands are verified once they are executed.&lt;/p&gt;
&lt;p&gt;Am I missing anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil run button doesn't work</title><link>https://devzone.nordicsemi.com/thread/318235?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 13:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a467d78-4b1e-48eb-b318-34118967e6d1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Denin"]However in this case it&amp;#39;s just and application that is supposed to work on every nRF52840. What could be reason for CRC mismatch?[/quote]
&lt;p&gt;If you don not have a bootloader in the board, then that is not relevant. Except if you did at some point and still has a MBR (or full SoftDevice), and did not do a full chip erase. In that case, the UICR could still hold a bootloader start address so that the MBR would branch to where the bootloader used to be.&lt;/p&gt;
[quote user="Denin"]Moreover I am able to upload and run some of the provided examples but my own code.[/quote]
&lt;p&gt;Then it is tempting to think that either your cod/app has the wrong start address, or it depends on either a MBR or SoftDevice and you forgot to flash it. If it is missing, then execution will stop before it ever reaches your code, and so there is nothing for Keil to continue from when debugging (execution never reached the part you are debugging).&lt;/p&gt;
[quote user="Denin"]If you still think that it is the indeed the cause, will the suggested solution in the old thread solve my problem? Does it have any risks of making the mcu unusable? I could not manage to solve it last time, but if you suggest so I give it another try.[/quote]
&lt;p&gt;Not the details itself. The point is that it looks like execution never reaches the app you are debugging. This could be caused by several reasons as described earlier in this post. And how to solve it depends on what causes the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil run button doesn't work</title><link>https://devzone.nordicsemi.com/thread/318231?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 12:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd53354-4551-46e1-9c18-10e9b448130a</guid><dc:creator>Den</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for your quick response.&lt;/p&gt;
&lt;p&gt;In the older the thread I was trying to debug the Dongle with an external debugger. I do not remember the details of doing so but I remember playing with the bootloader, DFU etc. (could not solve it at that time). I was not able to upload any applications as far as I remember.&lt;/p&gt;
&lt;p&gt;However in this case it&amp;#39;s just and application that is supposed to work on every nRF52840. What could be reason for CRC mismatch? I did not change anything with the bootloaders. Moreover I am able to upload and run some of the provided examples but my own code.&lt;/p&gt;
&lt;p&gt;If you still think that it is the indeed the cause, will the suggested solution in the old thread solve my problem? Does it have any risks of making the mcu unusable? I could not manage to solve it last time, but if you suggest so I give it another try.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil run button doesn't work</title><link>https://devzone.nordicsemi.com/thread/318191?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 12:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c6051a1-2338-4d0c-9d85-4e47e79fc8e4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Den,&lt;/p&gt;
&lt;p&gt;This will happen if execution has not reached the file you are debugging. For instance if you are using a bootloader and that does not start the application for some reason, like a CRC mismatch which you will get if you have not programmed a valid settings page or modified the bootloader to to skip the CRC check. I suspect this was also the issue in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50655/keil-debug-disabled-greyed-out-run-button"&gt;your old thread with a similar topic&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>