<?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>NRF52840 Donlge - JLink Programming</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66961/nrf52840-donlge---jlink-programming</link><description>Hi 
 I have a coupe of dongles working on a project. While validating the board, i notice a strange behavior: I have the dongles in factory reset (MBR at start, the Bootloader at the end of flash), and i took a backup of this so i can restore dongles</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Oct 2020 10:28:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66961/nrf52840-donlge---jlink-programming" /><item><title>RE: NRF52840 Donlge - JLink Programming</title><link>https://devzone.nordicsemi.com/thread/276821?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 10:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d312ec2-cff9-476a-80cd-c5689ea01a82</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the slow response. I compared the hex-files to the dummy.hex file. It looks like&amp;nbsp;the eclipse read-back is identical in the relevant areas, while the nrfconnect readback has a lot of single bits set in addition in most lines. This is not what I see when I readback the flash of a nRF52840 device after writing a hex-file with nRF Connect Programmer application, it is reading back the same hex-file as I programmed.&lt;/p&gt;
&lt;p&gt;Did you test this on the same dongle, or on two different dongles? It sounds strange that the one programmed with nRF Connect is working, while the one programmed from JFlash is not working, if the one flashed with nRF Connect does not contain the same hex-file that you flashed.&lt;/p&gt;
&lt;p&gt;Could it be that you have somehow erased/overwritten the bootloader, which is causing the application to not run on the Dongle flashed using JFlash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Donlge - JLink Programming</title><link>https://devzone.nordicsemi.com/thread/275962?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 13:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cd14c6e-6fed-4743-bd70-f186b06c707c</guid><dc:creator>jibba</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;Is this ticket still in process or do you need more information ?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Donlge - JLink Programming</title><link>https://devzone.nordicsemi.com/thread/274288?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 11:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce67d24c-8e38-4d78-8785-183406ff7290</guid><dc:creator>jibba</dc:creator><description>&lt;p&gt;Ok. Here is the hexfile i flashed (&lt;a href="https://we.tl/t-VuXnDaqxy8"&gt;https://we.tl/t-VuXnDaqxy8&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;mbed.h&amp;quot;

int main()
{
    DigitalOut led1(P0_6,  1);
    DigitalOut led2(P0_8,  1);
    DigitalOut led3(P1_9,  1);
    DigitalOut led4(P0_12, 1);

    while (true)
    {
        led1.write(0);
        ThisThread::sleep_for(10);
        led1.write(1);
        ThisThread::sleep_for(10);

        led2.write(0);
        ThisThread::sleep_for(10);
        led2.write(1);
        ThisThread::sleep_for(10);

        led3.write(0);
        ThisThread::sleep_for(10);
        led3.write(1);
        ThisThread::sleep_for(10);

        led4.write(0);
        ThisThread::sleep_for(10);
        led4.write(1);
        ThisThread::sleep_for(10);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MBED_APP_START 0x1000
#define MBED_APP_SIZE 0xDB000
#define MBED_RAM_START 0x20000008
#define MBED_RAM_SIZE 0x3FFF8
#define MBED_BOOT_STACK_SIZE 0x800
#define MBED_RAM0_START MBED_RAM_START
#define MBED_RAM0_SIZE  0x100

#define MBED_CRASH_REPORT_RAM_START (MBED_RAM0_START + MBED_RAM0_SIZE)
#define MBED_CRASH_REPORT_RAM_SIZE  0x100

#define MBED_RAM1_START (MBED_CRASH_REPORT_RAM_START + MBED_CRASH_REPORT_RAM_SIZE)
#define MBED_RAM1_SIZE  (MBED_RAM_SIZE - (MBED_RAM0_SIZE + MBED_CRASH_REPORT_RAM_SIZE))

MEMORY
{
  FLASH (rx)     : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
  RAM_NVIC (rwx) : ORIGIN = MBED_RAM0_START, LENGTH = MBED_RAM0_SIZE
  RAM_CRASH_DATA (rwx) : ORIGIN = MBED_CRASH_REPORT_RAM_START, LENGTH = MBED_CRASH_REPORT_RAM_SIZE
  RAM (rwx)      : ORIGIN = MBED_RAM1_START, LENGTH = MBED_RAM1_SIZE
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Donlge - JLink Programming</title><link>https://devzone.nordicsemi.com/thread/274275?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 11:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e23bfb39-db6a-4704-8271-2cbf41550623</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nRF Connect Programmer should not program anything else than the content of the provided hex-files. It looks like the difference is located right above the MBR, which is the softdevice region if a softdevice is used by the application. If the programmed hex-file was programmed with only a sectorerase and the dongles contained different softdevice version, this could explain the difference in the readback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you post the hex-file you flashed? It should indicate the start address of the data that will be written to flash during programming.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>