<?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 debug disabled/greyed out run button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50655/keil-debug-disabled-greyed-out-run-button</link><description>Hi, 
 I am trying to debug on nRF52840 dongle using JLink debugger and Keil uVision V5.18.0 
 What I have been through is here: https://devzone.nordicsemi.com/f/nordic-q-a/50579/nrf52840-dongle-dfu-bootloader-and-reset-problem 
 I am now able to flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Aug 2019 14:42:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50655/keil-debug-disabled-greyed-out-run-button" /><item><title>RE: Keil debug disabled/greyed out run button</title><link>https://devzone.nordicsemi.com/thread/202877?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 14:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9650701-bce7-483e-98f8-254555e7fa1a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Denin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the bootloader will calculate the CRC of the application in flash and compare it to the CRC value stored on the bootloader settings page. This check will fail as the bootloader settings page will be blank.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you need to generate a bootloader settings file using nrfutil, see&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil#settings"&gt;https://github.com/NordicSemiconductor/pc-nrfutil#settings&lt;/a&gt;, and then flash the settings file to the nrf52840 after flashing the botoloader&amp;nbsp;using&amp;nbsp;nrfjprog using --sectorerase. This will ensure that the new settings page overwrites the default one which is flashed when you flash the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil debug disabled/greyed out run button</title><link>https://devzone.nordicsemi.com/thread/202600?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 11:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:181f82fe-6b77-4a34-84c6-f48cdba8a201</guid><dc:creator>Den</dc:creator><description>&lt;p&gt;I am sorry for the consecutive posts, however I want to give details as much as I can.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have just visually confirmed what I have said using nrf connect. This is what I did;&lt;/p&gt;
&lt;p&gt;nfrjprog --family nrf52 --eraseall (done correctly)&lt;/p&gt;
&lt;p&gt;nrfjprog --family nrf52 --program &amp;quot;bootloader.hex location&amp;quot; --verify (it has been verified)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nfrjprog --family nrf52 --reset (DFU light did not blink)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I then pressed the reset button on the board and the led started blinking. I plugged it in to usb and checked the device memory layout. Bootloader and the MBR are there as expected&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog --family nrf52 --program &amp;quot;blinky.hex location&amp;quot; --verify (it has been verified)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nfrjprog --family nrf52 --reset (only DFU red led blinks no other blinkies&lt;/span&gt;&lt;span&gt;). It got into the DFU mode directly and detected by nrf connect. When I selected the device, the memory layout did not change at all. The blinky application was not there. Again there were only Bootloader and the MBR.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After all these, I loaded the blinky application using Keil IDE. It said the application is running, however it was not. I pressed the reset button again check the memory layout, the blinky application was not there again. I tried to debug, the run button was&amp;nbsp;disabled&amp;nbsp;as before.&lt;/p&gt;
&lt;p&gt;One last thing I did; I flashed the blinky application using nrf connect, checked the memory content and it was fine. After making sure that blinky is in there, I tried to debug again and it worked! I was able to start and stop and use break points.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the problem is that, Keil and nrfjprog cannot load the applications into the device via the debugger and this way of debugging is not helping much as you can guess.&lt;/p&gt;
&lt;p&gt;How can I overcome this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil debug disabled/greyed out run button</title><link>https://devzone.nordicsemi.com/thread/202570?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 10:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc4681c7-4e9a-4567-aace-e239bc58c69a</guid><dc:creator>Den</dc:creator><description>&lt;p&gt;I am still working on it and wanted to add one more thing;&lt;/p&gt;
&lt;p&gt;I noticed that I cannot flash applications in to it with nrfjprog. I tried to flash the blinky example with --verify. It says verified however the application does not work after reset command or physically powering it down and up again. Whatever is left in it works however not the newly flashed application.&lt;/p&gt;
&lt;p&gt;So it can flash the bootloader but not application. The only way I have to flash the applications is nrf connect.&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>