<?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: Problem flashing FRDM-MCXC242 with LinkServer (zephyr: west flash) in Zephyr Project</title>
    <link>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2014000#M263</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/30672"&gt;@dereksnell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your kindly help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 02:18:36 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-12-16T02:18:36Z</dc:date>
    <item>
      <title>Problem flashing FRDM-MCXC242 with LinkServer (zephyr: west flash)</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/1992738#M260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently evaluating Zephyr on the FRDM-MCXC242 board.&lt;/P&gt;&lt;P&gt;When I tried flashing with &lt;FONT face="courier new,courier"&gt;west flash&lt;/FONT&gt; for the first time (using LinkServer) it worked. When trying to flash for a second time, &lt;FONT face="courier new,courier"&gt;west flash&lt;/FONT&gt; fails.&lt;/P&gt;&lt;P&gt;I can recover the board by flashing with a JLink probe (&lt;FONT face="courier new,courier"&gt;west flash -r jlink&lt;/FONT&gt;). Then flashing with LinkServer works again for the first try but at the second try it starts to fail again.&lt;/P&gt;&lt;P&gt;This is my output for the first try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ west -v flash
-- west flash: rebuilding
cmake version 3.30.5 is OK; minimum version is 3.13.1
Running CMake: 'C:\Program Files\CMake\bin\cmake.EXE' --build ##############################build'
ninja: no work to do.
-- west flash: using runner linkserver
runners.linkserver: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' -v
-- runners.linkserver: LinkServer: C:\nxp\LinkServer_24.9.75\Linkserver.exe, version v24.9.75
runners.linkserver: LinkServer cmd:  + ['C:\\nxp\\LinkServer_24.9.75\\Linkserver.exe', 'flash', '--probe', '#1', 'MCXC242:FRDM-MCXC242']
runners.linkserver: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' -v
runners.linkserver: flash command = ['C:\\nxp\\LinkServer_24.9.75\\Linkserver.exe', 'flash', '--probe', '#1', 'MCXC242:FRDM-MCXC242', 'load', '--addr', '0', '##############################\\zephyr.bin']
runners.linkserver: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' flash --probe '#1' MCXC242:FRDM-MCXC242 load --addr 0 '##############################\zephyr.bin'
INFO: Exact match for MCXC242:FRDM-MCXC242 found
INFO: Selected device MCXC242:FRDM-MCXC242
INFO: Getting available probes
INFO: Selecting probe by index
INFO: Selected probe #1 RJ5F0KUBKS14M (MCU-LINK FRDM-MCXC242 (r0E7) CMSIS-DAP V3.146)
INFO: MCU-Link firmware update `check`: local firmware [3.148] can be programmed on the selected probe ([RJ5F0KUBKS14M] [MCU-LINK FRDM-MCXC242 (r0E7) CMSIS-DAP V3.146])
Firmware update `check`: - the update can be performed using `auto` mode
Ns: MCUXpresso IDE RedlinkMulti Driver v24.9 (Sep 19 2024 19:34:05 - crt_emu_cm_redlink.exe build 802)
Pc: (  0) Reading remote configuration
Wc(03). No cache support.
Nc: Found generic directory XML file in ##############################\crt_directory.xml
Pc: (  5) Remote configuration complete
Nc: Reconnected to existing LinkServer process.
Wc: ============= SCRIPT: MCXC_connect.scp =============
Wc: MCXC Connect Script
Wc: Connecting to Probe Index = 1
Wc: This probe = 1
Wc: This TAP = 0
Wc: This core = 0
Wc: DpID = 0BC11477
Wc: Assert NRESET
Wc: Reset pin state: 00
Wc: Power up Debug
Wc: MDM-AP APID: 0x001C0020
Wc: MDM-AP System Reset/Hold Reset/Debug Request
Wc: MDM-AP Control: 0x0000001C
Wc: MDM-AP Status (Flash Ready) : 0x00000033
Wc: Part is not secured
Wc: MDM-AP Control: 0x00000014
Wc: Release NRESET
Wc: Reset pin state: 01
Wc: MDM-AP Control (Debug Request): 0x00000004
Wc: MDM-AP Status: 0x0001003B
Wc: MDM-AP Core Halted
Wc: ============= END SCRIPT ===========================
Nc: Probe Firmware: MCU-LINK FRDM-MCXC242 (r0E7) CMSIS-DAP V3.146 (NXP Semiconductors)
Nc: Serial Number:  RJ5F0KUBKS14M
Nc: VID:PID:  1FC9:0143
Nc: USB Path: 0001:0005:00
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 0BC11477) over SWD TAP 0
Nc: processor type            = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0
Nc: number of h/w breakpoints = 2
Nc: number of flash patches   = 0
Nc: number of h/w watchpoints = 2
Nc: Probe(0): Connected&amp;amp;Reset. DpID: 0BC11477. CpuID: 00000C60. Info: &amp;lt;None&amp;gt;
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE F0002000: CID B105100D PID 000008E000 ROM (type 0x1)
Nc: ROM 1 F0000000: CID B105900D PID 04001BB932 CSt ARM MTB type 0x31 Trace Sink - Basic trace router
Nc: ROM 1 F0001000: CID B105900D PID 000008E000 CSt MTBDWT type 0x4 Debug Control - Other
Nc: ROM 1 E00FF000: CID B105100D PID 04000BB4C0 ROM (type 0x1)
Nc: ROM 4 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)
Nc: ROM 4 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)
Nc: ROM 4 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)
Nc: NXP: MCXC242
Nc: DAP stride is 1024 bytes (256 words)
Nc: Inspected v.2 On chip Flash memory module FTFA_1K_MCXC.cfx
Nc: Image 'SemiGeneric Sep 19 2024 18:20:26'
Nc: Opening flash driver FTFA_1K_MCXC.cfx
Nc: VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'MCXC242 FTFA Generic 1K' detected (64KB = 64*1K at 0x0)
Nc: Closing flash driver FTFA_1K_MCXC.cfx
Pc: ( 65) Chip Setup Complete
Pc: ( 70) License Check Complete
Nt: Loading 'zephyr.bin' Binary 0x00000000 len 0x8FFA
Nc: Opening flash driver FTFA_1K_MCXC.cfx (already resident)
Nc: VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'MCXC242 FTFA Generic 1K' detected (64KB = 64*1K at 0x0)
Pb: 1 of 1 (  0) Writing sectors 0-35 at 0x00000000 with 36860 bytes
Ps: (  0) at 00000000: 0 bytes - 0/36860
Ps: (  2) at 00000000: 1024 bytes - 1024/36860
Ps: (  5) at 00000400: 1024 bytes - 2048/36860
Nc: 00000800 done   5% (2048 out of 36860)
Ps: (100) at 00000800: 34816 bytes - 36864/36860
Nc: Sectors written: 1, unchanged: 35, total: 36
Nc: Closing flash driver FTFA_1K_MCXC.cfx
Pb: (100) Finished writing Flash successfully.
Nt: Loaded 0x8FFA bytes in 161ms (about 228kB/s)
Nt: Reset target (system)
Nc: Starting execution using system reset
Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And this on the second try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ west -v flash
-- west flash: rebuilding
cmake version 3.30.5 is OK; minimum version is 3.13.1
Running CMake: 'C:\Program Files\CMake\bin\cmake.EXE' --build '##############################\build'
ninja: no work to do.
-- west flash: using runner linkserver
runners.linkserver: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' -v
-- runners.linkserver: LinkServer: C:\nxp\LinkServer_24.9.75\Linkserver.exe, version v24.9.75
runners.linkserver: LinkServer cmd:  + ['C:\\nxp\\LinkServer_24.9.75\\Linkserver.exe', 'flash', '--probe', '#1', 'MCXC242:FRDM-MCXC242']
runners.linkserver: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' -v
runners.linkserver: flash command = ['C:\\nxp\\LinkServer_24.9.75\\Linkserver.exe', 'flash', '--probe', '#1', 'MCXC242:FRDM-MCXC242', 'load', '--addr', '0', '##############################\\zephyr.bin']
runners.linkserver: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' flash --probe '#1' MCXC242:FRDM-MCXC242 load --addr 0 '##############################\zephyr.bin'
INFO: Exact match for MCXC242:FRDM-MCXC242 found
INFO: Selected device MCXC242:FRDM-MCXC242
INFO: Getting available probes
INFO: Selecting probe by index
INFO: Selected probe #1 RJ5F0KUBKS14M (MCU-LINK FRDM-MCXC242 (r0E7) CMSIS-DAP V3.146)
INFO: MCU-Link firmware update `check`: local firmware [3.148] can be programmed on the selected probe ([RJ5F0KUBKS14M] [MCU-LINK FRDM-MCXC242 (r0E7) CMSIS-DAP V3.146])
Firmware update `check`: - the update can be performed using `auto` mode
Ns: MCUXpresso IDE RedlinkMulti Driver v24.9 (Sep 19 2024 19:34:05 - crt_emu_cm_redlink.exe build 802)
Pc: (  0) Reading remote configuration
Wc(03). No cache support.
Nc: Found generic directory XML file in ##############################\crt_directory.xml
Pc: (  5) Remote configuration complete
Nc: Reconnected to existing LinkServer process.
Wc: ============= SCRIPT: MCXC_connect.scp =============
Wc: MCXC Connect Script
Wc: Connecting to Probe Index = 1
Wc: This probe = 1
Wc: This TAP = 0
Wc: This core = 0
Wc: DpID = 0BC11477
Wc: Assert NRESET
Wc: Reset pin state: 00
Wc: Power up Debug
Wc: MDM-AP APID: 0x001C0020
Wc: MDM-AP System Reset/Hold Reset/Debug Request
Wc: MDM-AP Control: 0x00000008
Wc: MDM-AP Status (Flash Ready) : 0x00000036
Wc: Part is secured
Wc: Mass Erase Required
Wc: ============= END SCRIPT ===========================
Nc: Probe Firmware: MCU-LINK FRDM-MCXC242 (r0E7) CMSIS-DAP V3.146 (NXP Semiconductors)
Nc: Serial Number:  RJ5F0KUBKS14M
Nc: VID:PID:  1FC9:0143
Nc: USB Path: 0001:0015:00
Nc: Using memory from core 0 after searching for a good core
Ns: redlink server client - failed to receive response (to op 62) from server after 2000ms - timed out (rc 138)
Nc: connection failed - EE(47): Debug Mailbox Request Failed... Retrying
Ns: redlink server client - failed to receive response (to op 12) from server after 2000ms - timed out (rc 138)
Nc: probe 1 TAP 0 failed to read TAP ID - Ee(FF). Redlink interface error 255.
Ed:02: Failed on connect: Ee(FF). Redlink interface error 255.
Et: Probe(0): Connected&amp;amp;Reset. Was: NotConnected. DpID: 0BC11477. CpuID: 00000000. Info: &amp;lt;None&amp;gt;
Nc:   Last stub error 0: OK
Nc:   Last sticky error: 0x0 AIndex: 0
Nc:   Debug bus selected: MemAp 0
Nc:   DAP Speed test unexecuted or failed
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Pc: (100) Target Operation Failed
Ns: redlink server client - warning - 28 bytes of unexpected data from the server
Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access
CRITICAL: Critical error
ERRMSG: Exception: Flash operation exited with code 1
FATAL ERROR: command exited with status 4294967295: 'C:\nxp\LinkServer_24.9.75\Linkserver.exe' flash --probe '#1' MCXC242:FRDM-MCXC242 load --addr 0 '##############################\zephyr.bin'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea why this would happen. Can you help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 09:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/1992738#M260</guid>
      <dc:creator>mw6</dc:creator>
      <dc:date>2024-11-12T09:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem flashing FRDM-MCXC242 with LinkServer (zephyr: west flash)</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2006578#M261</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206611"&gt;@mw6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reproduce your issue on my side. I'm still finding the root cause. I will send to you with any update. Thanks for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 04:15:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2006578#M261</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-12-04T04:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem flashing FRDM-MCXC242 with LinkServer (zephyr: west flash)</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2013708#M262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206611"&gt;@mw6&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank for raising this issue.&amp;nbsp; This was caused by the Flash Security setting in the FSEC location in flash.&amp;nbsp; We have an upstream Pull Request to resolve this at &lt;A href="https://github.com/zephyrproject-rtos/zephyr/pull/82947" target="_blank"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/82947&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 15:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2013708#M262</guid>
      <dc:creator>dereksnell</dc:creator>
      <dc:date>2024-12-13T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem flashing FRDM-MCXC242 with LinkServer (zephyr: west flash)</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2014000#M263</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/30672"&gt;@dereksnell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your kindly help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 02:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2014000#M263</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-12-16T02:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem flashing FRDM-MCXC242 with LinkServer (zephyr: west flash)</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2023207#M264</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/30672"&gt;@dereksnell&lt;/a&gt;, thanks for resolving this issue. It works now on my desk!</description>
      <pubDate>Tue, 07 Jan 2025 10:09:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Problem-flashing-FRDM-MCXC242-with-LinkServer-zephyr-west-flash/m-p/2023207#M264</guid>
      <dc:creator>mw6</dc:creator>
      <dc:date>2025-01-07T10:09:15Z</dc:date>
    </item>
  </channel>
</rss>

