<?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 Flash Erase from crt_emu_cm_redlink does not work in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298120#M45640</link>
    <description>&lt;P&gt;If you want to program bin file to target without IDE, I suggest you use FlashMagic. This is our recommended Flash programming tool.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.flashmagictool.com/" target="_blank"&gt;https://www.flashmagictool.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please test if FlashMagic can resolve your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an article, fyi&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Flash-Magic-Programing-LPC/ta-p/1152763" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Flash-Magic-Programing-LPC/ta-p/1152763&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 05:35:42 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2021-06-25T05:35:42Z</dc:date>
    <item>
      <title>LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1287571#M45295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Erasing the flash of my LPC55S69-EVK via the GUI flash tool works fine. However, I need this to be done on the command line. When I click "Preview Command" in the GUI flash tool and then use this command on the command line, however, it does not work reliably.&lt;/P&gt;&lt;P&gt;Sometimes it works, sometimes it does not:&lt;/P&gt;&lt;P&gt;Nc: Sending VECTRESET to run flash driver&lt;BR /&gt;Nc: AFTER driver startup timeout (302 5ms retries)&lt;BR /&gt;[...]&lt;BR /&gt;Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.&lt;BR /&gt;Ec: vendor chip initialization failed - Ef(34): Timed-out initializing flash.&lt;BR /&gt;Wc: failed to initialize flash driver LPC55xx_S.cfx&lt;/P&gt;&lt;P&gt;So my question is, what does the GUI Tool differently that it works there. I made the observation that the GUI seems to do a reset, as the controller puts out some USART debug output before the actual command is even executed.&lt;/P&gt;&lt;P&gt;Additional info: I use the newest IDE (11.3.1), SDK (2.9.1) and the Probe Firmware is LPC-LINK2 CMSIS-DAP V5.224 and boards of revision A2. It is a secure world (trustzone) project, the CPU goes into the secure hardfault as soon as crt_emu_cm_redlink issues the VECTRESET. Furthermore, the scripts were working fine with old revision A1 boards.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 13:40:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1287571#M45295</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2021-06-04T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1288152#M45324</link>
      <description>&lt;P&gt;HI Simon&lt;/P&gt;
&lt;P&gt;Is this issue only in&amp;nbsp;&lt;SPAN&gt;secure world (trustzone) project or a common issue for all project? how does it work if you test it with a led blink demo?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the problem is only in&amp;nbsp;secure world (trustzone) project, does it happen in&amp;nbsp;IDE (11.3.1)+ SDK (2.9.1)&amp;nbsp;+ A1 board ? No problem if&amp;nbsp;IDE (11.3.1)+ SDK (2.9.1)&amp;nbsp;+ A2 board?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please send me a screenshot of your test command and problem screenshot?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 09:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1288152#M45324</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-06-07T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1290516#M45403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The issue only happens when secure world projects are flashed on Revision A2 boards. The command is from the GUI flash tool and works fine when triggered by the GUI tool but often not when triggered from commandline:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;MCUX_FLASH_DIR0=/usr/local/mcuxpressoide/ide/binaries/Flash&lt;BR /&gt;MCUX_FLASH_DIR1=$WORKSPACE_LOC/.mcuxpressoide_packages_support/LPC55S69_support/Flash&lt;BR /&gt;MCUX_IDE_BIN=/usr/local/mcuxpressoide/ide/binaries&lt;BR /&gt;MCUX_TOOL_LOC=/usr/local/mcuxpressoide/ide/tools/bin&lt;/P&gt;&lt;P&gt;$MCUX_IDE_BIN/crt_emu_cm_redlink --flash-erase --vendor NXP -p LPC55S69 --bootromstall 0x50000040 -ProbeHandle=1 -CoreIndex=0 \&lt;BR /&gt;--flash-driver= -x chip_files/erase \&lt;BR /&gt;--flash-dir $MCUX_FLASH_DIR0 \&lt;BR /&gt;--flash-dir $MCUX_FLASH_DIR1 \&lt;BR /&gt;--flash-hashing&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;A1 boards are not relevant to me anymore, I just want to get the new boards (A2) to work together with the newest IDE and SDK.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 07:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1290516#M45403</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2021-06-10T07:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1296874#M45602</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13026"&gt;@ZhangJennie&lt;/a&gt;is there any update on this, or something else I could try to solve the problem?&lt;/P&gt;&lt;P&gt;or is there a possibility to find out the commands the IDE issues to the debugger before invoking the GUI flash tool? At least it seems to do some kind of reset of the controller, but as its a GUI, I cannot see the commands it actually issues.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 12:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1296874#M45602</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2021-06-23T12:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298120#M45640</link>
      <description>&lt;P&gt;If you want to program bin file to target without IDE, I suggest you use FlashMagic. This is our recommended Flash programming tool.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.flashmagictool.com/" target="_blank"&gt;https://www.flashmagictool.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please test if FlashMagic can resolve your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an article, fyi&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Flash-Magic-Programing-LPC/ta-p/1152763" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Flash-Magic-Programing-LPC/ta-p/1152763&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 05:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298120#M45640</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-06-25T05:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298137#M45642</link>
      <description>&lt;P&gt;Unfortunately, I cannot use this.&lt;/P&gt;&lt;P&gt;The free version is a GUI tool for windows. I need to do this via command line in a linux environment.&lt;/P&gt;&lt;P&gt;I think this must be possible with the crt_emu_cm_redlink utility: I never had problems with revision A1, and additionally, it works when triggered via the IDE. The question is just: What does the IDE (the GUI Flash tool) do different compared to invoking the tool standalone?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 06:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298137#M45642</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2021-06-25T06:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298290#M45649</link>
      <description>&lt;P&gt;Can I reproduce the issue on windows platform? If Linux is must, I don't have Linux to reproduce your issue.&amp;nbsp; Please send me more information thus I can ask my colleague to test it.&lt;/P&gt;
&lt;P&gt;1. if the problem only happens on linux. what's your linux version?&lt;/P&gt;
&lt;P&gt;2. can we reproduce your issue with default MCUXPresso SDK demo code? if yes, which one?&lt;/P&gt;
&lt;P&gt;3. To avoid misunderstanding, Please send us the screenshot of your steps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 08:12:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298290#M45649</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-06-25T08:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298425#M45658</link>
      <description>&lt;P&gt;1. I think the problem would happen on windows, too. But I don't have windows to test it. I am using Ubuntu 20.04&lt;/P&gt;&lt;P&gt;2. Yes, you can replicate the behaviour just with the SDK examples using the following steps:&lt;/P&gt;&lt;P&gt;- Import the "secure_faults" SDK example project&lt;BR /&gt;- For demonstration, simply add an endlessloop: for(;;); in line 248 main.c before the PRINTF("Entering normal world"); so the project stays in the secure world. NOTE: This step might not even be necessary&lt;BR /&gt;- Build the project&lt;BR /&gt;- Flash the secure and non-secure project via the GUI Flash tool from the IDE&lt;BR /&gt;- Open the GUI Flash tool again, select "Erase" tab&lt;BR /&gt;- Select "Preview command" and copy it&lt;BR /&gt;- Paste this command into a script&lt;BR /&gt;- continue with the erase. It will work&lt;BR /&gt;- Flash the secure and non-secure project again via the GUI flash tool&lt;BR /&gt;- Run the script on the command line&lt;/P&gt;&lt;P&gt;This should fail. However, erasing with the GUI flash tool is still possible.&lt;/P&gt;&lt;P&gt;Also, if you repeat exactly the same steps with a non-trustzone project, e.g. the gpio_led_output example, the script will work. So it is a problem related to trustzone.&lt;/P&gt;&lt;P&gt;3. I attached some screenshots&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 11:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1298425#M45658</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2021-06-25T11:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1299055#M45668</link>
      <description>&lt;P&gt;HI Simon,&lt;/P&gt;
&lt;P&gt;I reproduced the problem with your steps with MCUXpresso IDE on windows 10.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reported it to IDE team. Will keep you informed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 11:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1299055#M45668</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-06-28T11:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1306720#M45850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;simon_ott&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I got feedback from development team.&lt;/P&gt;
&lt;P&gt;This issue will be fixed in next release&amp;nbsp;&lt;SPAN&gt;IDE 11.4.0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for bringing the problem to our attention.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have a nice day,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 08:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1306720#M45850</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-07-13T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1308266#M45873</link>
      <description>&lt;P&gt;Thank you! Are there already plans, when the new version will be released?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 08:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1308266#M45873</guid>
      <dc:creator>simon_ott</dc:creator>
      <dc:date>2021-07-15T08:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1308713#M45877</link>
      <description>&lt;P&gt;The release of MCUXpresso IDE 11.4.0 could be very fast. It should be next week.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 01:22:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1308713#M45877</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-07-16T01:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flash Erase from crt_emu_cm_redlink does not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1309798#M45895</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;This issue will be fixed in next release&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IDE 11.4.0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I'm glad to hear that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not using any security features and I have this issue, too, with LPC5526 and LPC-Link2 (Probe Firmware: CMSIS-DAP V5.361) and IDE 11.3.1 on Windows 10 and flash actions as simple as a flash-erase&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Execution of &lt;FONT face="courier new,courier"&gt;crt_emu_cm_redlink&lt;/FONT&gt;&amp;nbsp;commands (copied from the command preview window) on the shell will fail until I've used the GUI Flash tool at least once. It will work until the MCU is resetted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 10:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flash-Erase-from-crt-emu-cm-redlink-does-not-work/m-p/1309798#M45895</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2021-07-20T10:54:56Z</dc:date>
    </item>
  </channel>
</rss>

