<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LPC55S69-EVK SEGGER JLink Flashing Problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929620#M37080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Sorry for the delayed response, I have been going over this and so far I've not been successful in getting a solid answer for this. Right now I was able to find a reported bug with the segger j-link and the lpc55s69. This report states that there is a secure bit being masked out when using the j-link and causes unexpected behavior while debugging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am waiting to get confirmation on this topic, to see if this is in fact a bug with the j-link or another cause.&lt;/P&gt;&lt;P&gt;Thanks in advance for your patience, I will update you as soon as I can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 03:44:32 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2019-10-02T03:44:32Z</dc:date>
    <item>
      <title>LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929615#M37075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN data-contrast="auto" style="color: windowtext; font-size: 11pt;"&gt;&lt;SPAN style="background-color: inherit;"&gt;I used &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;LPCScrypt&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt; to flash the newest SEGGER &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;JLink&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt; Firmware for NXP on the LPC55S69-EVK. Unfortunately, it seems that in certain projects something goes wrong and parts of the flash get overwritten (whilie the exact same project is working when flashed on a board with original Link2 debugger). I slightly modified an SDK example project that should demonstrate the &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;behaviour&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;. It consists of three binaries: The first secure binary just jumps to the second secure binary, the second binary configures &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;trustzone&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt; and then jumps to the non-secure application (these are the SDK examples, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;The binaries are located in the flash as following: &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;First Binary: 0x10000000 – 0x10010000&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Second Binary: &lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;0x10011000&lt;/SPAN&gt; – 0x10027c00&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Second Binary Veneer Table: 0x10072c00-0x28000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;Third binary: 0x28000-0x38000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN data-contrast="auto" style="color: windowtext; font-size: 11pt;"&gt;&lt;SPAN style="background-color: inherit;"&gt;All three projects have a launch script for the Link2 and for the &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;JLink&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;. When I use a Link2-Board, everything is working. However, when I use a LPC55S69-EVK with the &lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;JLink&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt; as debugging firmware, the first projects can be flashed and runs. The second binary is also flashed correct to location 0x1028000 but&amp;nbsp; overwrites the contents of the first binary from 0x10000000. When I read out the memory afterwards, the flash area of the first binary contains 0xFF and at one point (0x10007c00) the veneer table. According to the Memory Regions and Linker Script, the veneer table should be located at 0x10027c00 so it seems as if it is just shifted by exactly 0x20000. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: windowtext;"&gt;&lt;SPAN style="background-color: inherit; color: windowtext; font-size: 11pt;"&gt;From this state, it is not possible to recover, I.e. flashing the first binary again does not have any effect, the flash at 0x10000000 stays 0xFF. The only way to recover the board is then to mass erase the flash with jumper J10 connected. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:46:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929615#M37075</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2019-09-16T15:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929616#M37076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've gone ahead and tested the same example using both J-Link and CMSIS-DAP(which comes on originally on the link2 debugger).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the J-Link I've done the following steps:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;On the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;&lt;A href="https://www.segger.com/products/debug-probes/j-link/models/other-j-links/lpc-link-2/"&gt;Getting Started with LPC-Link 2&lt;/A&gt;&amp;nbsp;page it mentions that we have to manually update the binary on the following folders located in the PC:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To make sure that LPCscrypt uses the latest LPC-Link2 firmware, please replace the J-Link firmware images located in:&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 2px;"&gt;LPCScrypt_InstallDir\probe_firmware\LPCXpressoV2\ and&lt;/LI&gt;&lt;LI style="margin: 2px;"&gt;LPCScrypt_InstallDir\probe_firmware\LPCLink2\&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have downloaded the &lt;A href="https://www.segger.com/downloads/jlink/"&gt;NXP Link 2 Jlink OB Firmware&lt;/A&gt;&amp;nbsp;the second option that is the LPCXPresso On Board.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83002iB38A0D7AFC5316B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;Once I updated the binary from the LPCScrypt, I put the board in DFU mode and selected &lt;STRONG&gt;"program_JLINK".&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;I then deleted the debug sessions from the example and pressed the debug icon again. I compared the memory configuration from both debug sessions and it is resulting in the same configuration for the veneer table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;Can you please confirm if you have done the same steps to update with the Segger J-Link?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 21:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929616#M37076</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-09-18T21:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929617#M37077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I followed these steps. What do you mean by "compare memory configuration"? Were you able to flash all three binaries and do all of them work as expected? Because the first binary works fine for me, but when I flash the second binary, the problem occurs and the projects don't run anymore. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 13:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929617#M37077</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2019-09-19T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929618#M37078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I misunderstood your initial binaries for the original memory configuration from the examples directly downloaded from the SDK. Can you check the location of the second binary you are flashing it to in MCUXpresso using the GUI Flash Tool? When I tested yours with the configurations you provided I could see that the first two both were being flashed at the same base&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 19:07:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929618#M37078</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-09-23T19:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929619#M37079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange. I downloaded my zip-archive, imported it into the MCUXpresso IDE and checked the configuration in the project settings and the GUI flash tool. Both are correct (project 1 at 0x10000000 and project 2 at 0x10011000). I attached screenshots to demonstrate the behaviour from the project settings and the GUI flash tool. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 18:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929619#M37079</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2019-09-25T18:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929620#M37080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Sorry for the delayed response, I have been going over this and so far I've not been successful in getting a solid answer for this. Right now I was able to find a reported bug with the segger j-link and the lpc55s69. This report states that there is a secure bit being masked out when using the j-link and causes unexpected behavior while debugging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am waiting to get confirmation on this topic, to see if this is in fact a bug with the j-link or another cause.&lt;/P&gt;&lt;P&gt;Thanks in advance for your patience, I will update you as soon as I can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 03:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929620#M37080</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-02T03:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929621#M37081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Sorry for delayed response. I have new information on what may be gonig on here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please make sure that this checkbox is not selecteded.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91815iDCA70158B523A6CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And also this driver is chosen.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91875i6B10D9B45C3F755D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please try this as with the testing with this the first binary is not getting erased.&lt;/P&gt;&lt;P&gt;Let me know if this works for you.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:59:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929621#M37081</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-16T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69-EVK SEGGER JLink Flashing Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929622#M37082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sabina, &lt;/P&gt;&lt;P&gt;unfortunately I don't recognize this GUI, which program is this? So far, I was trying to flash/debug with the newest version of the MCUXpresso IDE or flash directly with the JLinkCommander CLI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2019 15:44:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-EVK-SEGGER-JLink-Flashing-Problem/m-p/929622#M37082</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2019-10-19T15:44:53Z</dc:date>
    </item>
  </channel>
</rss>

