<?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>LPC Microcontrollers中的主题 LPC55S2x: impossible to upload firmware without ISP</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S2x-impossible-to-upload-firmware-without-ISP/m-p/1265774#M44730</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have our own device with LPC55S28 rev B1. Our current hardware design doesn't support ISP pin &amp;amp; any possibilities to communicate with ISP, so we couldn't execute any ISP command.&lt;/P&gt;&lt;P&gt;We use&amp;nbsp;MCUXpresso IDE v11.3.1 (ubuntu 18.04) +&amp;nbsp;LPC-LINK2 CMSIS-DAP V5.361 (LPCXpresso55S28 rev A2) as debug probe. When CPU has a valid application, firmware uploading with crt_emu_cm_redlink works correctly.&lt;/P&gt;&lt;P&gt;Buf during development we had erased flash on LPC55S28 with crt_emu_cm_redlink and power off this chip. Then after reboot all flash commands of crt_emu_cm_redlink returns error&amp;nbsp;Ef(34): Timed-out initializing flash. We try to use --rst or --vc, but have a same error. I&lt;SPAN&gt;s there something I'm missing? Is there another way to upload application to LPC55S28?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/local/mcuxpressoide/ide/binaries/crt_emu_cm_redlink --flash-load-exec ./build_lpc55s28_Debug/starter/pks-starter.axf -p LPC55S28 --vendor=NXP --bootromstall 0x50000040 --flash-driver= -x ./tools/deps/lpc55s28/flash --flash-hashing 2&amp;gt;&amp;amp;1

Ns: MCUXpresso IDE RedlinkMulti Driver v11.3 (Mar 30 2021 17:55:57 - crt_emu_cm_redlink build 18)
Wc(03). No cache support.
Nc: Found chip XML file in ./tools/deps/lpc55s28/flash/LPC55S28.xml
Nc: Restarted LinkServer process (PID 19879).
Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)
Nc: Serial Number:  GTA0BQEQ
Nc: VID:PID:  1FC9:0090
Nc: USB Path: /dev/hidraw6
Nc: Using memory from core 0 after searching for a good core
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: debug interface type      = CoreSight DP (DAP DP ID 6BA02477) over SWD TAP 0
Nc: processor type            = Cortex-M33 (CPU ID 00000D21) on DAP AP 0
Nc: number of h/w breakpoints = 8
Nc: number of flash patches   = 0
Nc: number of h/w watchpoints = 4
Nc: Probe(0): Connected&amp;amp;Reset. DpID: 6BA02477. CpuID: 00000D21. Info: &amp;lt;None&amp;gt;
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE E00FE000: CID B105100D PID 0000095000 ROM (type 0x1)
Nc: ROM 1 E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)
Nc: ROM 2 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined
Nc: ROM 2 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined
Nc: ROM 2 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined
Nc: ROM 2 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus
Nc: ROM 1 E0040000: CID B105900D PID 04000BBD21 CSt type 0x11 Trace Sink - TPIU
Nc: NXP: LPC55S28
Nc: DAP stride is 1024 bytes (256 words)
Wc: XML Error - no license-type XML file 'crt_common.xme' on path.
Nc: note - part information contained no product license-type data
Nc: Inspected v.2 On chip Flash memory using IAP lib LPC55xx.cfx
Nc: Image 'LPC55xx Mar 22 2021 08:12:51'
Nc: Opening flash driver LPC55xx.cfx
Nc: Sending VECTRESET to run flash driver
Nc: AFTER driver startup timeout (302 5ms retries)
Wc: Driver Addresses
Wc:  Start:  14000000
Wc:  Entry:  1400009D
Wc:  End:    14000514
Wc:  Stack:  30000800
Wc:  Mailbox:30006800
Wc: Driver Register State
Wc:  R0:     30006800
Wc:  R1:     00000000
Wc:  R2:     00000000
Wc:  R3:     00000000
Wc:  R4:     00000000
Wc:  R5:     00000000
Wc:  R6:     00000000
Wc:  R7:     00000000
Wc:  R8:     00000000
Wc:  R9:     00000000
Wc:  R10:    00000000
Wc:  R11:    00000000
Wc:  R12:    00000000
Wc:  SP:     30004000
Wc:  LR:     FFFFFFB8
Wc:  PC:     EFFFFFFE
Wc:  xPSR:   29000003
Wc:  MSP:    30004000
Wc:  PSP:    30000800
Wc:  CFBP:   00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1)
Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
Ec: vendor chip initialization failed - Ef(34): Timed-out initializing flash.
Wc: failed to initialize flash driver LPC55xx.cfx&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 10:15:56 GMT</pubDate>
    <dc:creator>anton_hrabko</dc:creator>
    <dc:date>2021-04-21T10:15:56Z</dc:date>
    <item>
      <title>LPC55S2x: impossible to upload firmware without ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S2x-impossible-to-upload-firmware-without-ISP/m-p/1265774#M44730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have our own device with LPC55S28 rev B1. Our current hardware design doesn't support ISP pin &amp;amp; any possibilities to communicate with ISP, so we couldn't execute any ISP command.&lt;/P&gt;&lt;P&gt;We use&amp;nbsp;MCUXpresso IDE v11.3.1 (ubuntu 18.04) +&amp;nbsp;LPC-LINK2 CMSIS-DAP V5.361 (LPCXpresso55S28 rev A2) as debug probe. When CPU has a valid application, firmware uploading with crt_emu_cm_redlink works correctly.&lt;/P&gt;&lt;P&gt;Buf during development we had erased flash on LPC55S28 with crt_emu_cm_redlink and power off this chip. Then after reboot all flash commands of crt_emu_cm_redlink returns error&amp;nbsp;Ef(34): Timed-out initializing flash. We try to use --rst or --vc, but have a same error. I&lt;SPAN&gt;s there something I'm missing? Is there another way to upload application to LPC55S28?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/local/mcuxpressoide/ide/binaries/crt_emu_cm_redlink --flash-load-exec ./build_lpc55s28_Debug/starter/pks-starter.axf -p LPC55S28 --vendor=NXP --bootromstall 0x50000040 --flash-driver= -x ./tools/deps/lpc55s28/flash --flash-hashing 2&amp;gt;&amp;amp;1

Ns: MCUXpresso IDE RedlinkMulti Driver v11.3 (Mar 30 2021 17:55:57 - crt_emu_cm_redlink build 18)
Wc(03). No cache support.
Nc: Found chip XML file in ./tools/deps/lpc55s28/flash/LPC55S28.xml
Nc: Restarted LinkServer process (PID 19879).
Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)
Nc: Serial Number:  GTA0BQEQ
Nc: VID:PID:  1FC9:0090
Nc: USB Path: /dev/hidraw6
Nc: Using memory from core 0 after searching for a good core
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: debug interface type      = CoreSight DP (DAP DP ID 6BA02477) over SWD TAP 0
Nc: processor type            = Cortex-M33 (CPU ID 00000D21) on DAP AP 0
Nc: number of h/w breakpoints = 8
Nc: number of flash patches   = 0
Nc: number of h/w watchpoints = 4
Nc: Probe(0): Connected&amp;amp;Reset. DpID: 6BA02477. CpuID: 00000D21. Info: &amp;lt;None&amp;gt;
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE E00FE000: CID B105100D PID 0000095000 ROM (type 0x1)
Nc: ROM 1 E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)
Nc: ROM 2 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined
Nc: ROM 2 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined
Nc: ROM 2 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined
Nc: ROM 2 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus
Nc: ROM 1 E0040000: CID B105900D PID 04000BBD21 CSt type 0x11 Trace Sink - TPIU
Nc: NXP: LPC55S28
Nc: DAP stride is 1024 bytes (256 words)
Wc: XML Error - no license-type XML file 'crt_common.xme' on path.
Nc: note - part information contained no product license-type data
Nc: Inspected v.2 On chip Flash memory using IAP lib LPC55xx.cfx
Nc: Image 'LPC55xx Mar 22 2021 08:12:51'
Nc: Opening flash driver LPC55xx.cfx
Nc: Sending VECTRESET to run flash driver
Nc: AFTER driver startup timeout (302 5ms retries)
Wc: Driver Addresses
Wc:  Start:  14000000
Wc:  Entry:  1400009D
Wc:  End:    14000514
Wc:  Stack:  30000800
Wc:  Mailbox:30006800
Wc: Driver Register State
Wc:  R0:     30006800
Wc:  R1:     00000000
Wc:  R2:     00000000
Wc:  R3:     00000000
Wc:  R4:     00000000
Wc:  R5:     00000000
Wc:  R6:     00000000
Wc:  R7:     00000000
Wc:  R8:     00000000
Wc:  R9:     00000000
Wc:  R10:    00000000
Wc:  R11:    00000000
Wc:  R12:    00000000
Wc:  SP:     30004000
Wc:  LR:     FFFFFFB8
Wc:  PC:     EFFFFFFE
Wc:  xPSR:   29000003
Wc:  MSP:    30004000
Wc:  PSP:    30000800
Wc:  CFBP:   00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1)
Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
Ec: vendor chip initialization failed - Ef(34): Timed-out initializing flash.
Wc: failed to initialize flash driver LPC55xx.cfx&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S2x-impossible-to-upload-firmware-without-ISP/m-p/1265774#M44730</guid>
      <dc:creator>anton_hrabko</dc:creator>
      <dc:date>2021-04-21T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S2x: impossible to upload firmware without ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S2x-impossible-to-upload-firmware-without-ISP/m-p/1266822#M44747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185874"&gt;@anton_hrabko&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well, To narrow down this,&amp;nbsp; there are several different things that we could try:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Erase the .launch debug files in your project and then try to debug.&lt;/LI&gt;
&lt;LI&gt;Try to program your application with the MCUXpresso GUI Flash Tool. More details on the IDE user guide.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Go to a new workspace and try to debug a blinky project.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Update the LPC-Link2 FW using LPCscrypt:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;First Is good to check if you have the latest version of LPCscrypt, that can be found &lt;A href="https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscrypt-v2-1-2:LPCSCRYPT" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;Try to update the LPC-Link 2 CMSIS firmware. The LPCXpresso EVB has a jumper to set the debug probe in DFU, set that jumper and use the LPCscrypt.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;Also ,you can try to update the LPC-Link 2&amp;nbsp; with the CMSIS firmware. I use to do sanity test by using Segger's&amp;nbsp; J-Link Commander (usually it is installed on your PC when installing MCUXpresso) checking if the utility can connect with the MCU and see if an erase command works.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;*If you require more details on how use LPCscrypt to program the LPC-Link2&amp;nbsp; &amp;nbsp;let me know.&lt;/P&gt;
&lt;P&gt;Let me know your findings&lt;/P&gt;
&lt;P&gt;Regards!,&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 18:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S2x-impossible-to-upload-firmware-without-ISP/m-p/1266822#M44747</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-04-22T18:47:16Z</dc:date>
    </item>
  </channel>
</rss>

