I have updated the mcu-link firmware to cmsis-dap(version - 3.153) and tried flashing the binary file using linkserver(version - 24.12.21).
But still not able to flash the program.
Flash region summary:
Flash region summary
--region "memoryInstance_1,0x8000000,0x800000,RW61X_FlexSPI_A_SFDP_QSPI.cfx"
--region "memoryInstance_2,0x18000000,0x800000,RW61X_FlexSPI_A_SFDP_QSPI_S.cfx"
--region-default "memoryInstance_1"
Flashing error(without erase before flashing):
Nt: Loading 'tmp2txa86si.elf' ELF 0x00000000 len 0x816C
Ed:05: File 'tmp2txa86si.elf' load failure: Ef(11). No flash configured at the specified address.
Pc: (100) Target Operation Failed
CRITICAL: Critical error
ERRMSG: Exception: Flash operation exited with code 1
Flashing error(Erase before flashing):
Pb: 1 of 1 ( 0) Writing sectors 0-8 at 0x08000000 with 33132 bytes
Ps: ( 0) at 08000000: 0 bytes - 0/33132
Ec: op ProgramPage (0x8000000, 0x20004478, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc -1 (0xFFFFFFFF)
Nc: Sectors written: 9, unchanged: 0, total: 9
Nc: Closing flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Pb: (100) Writing Flash ended with an error.
Ed:05: File 'lpc_gpio_led_output.elf' load failure: Ef(49): Flash driver operation gave error.
Pc: (100) Target Operation Failed
CRITICAL: Critical error
ERRMSG: Exception: Flash operation exited with code 1
Full console output of the above three operations is attached below:
C:\NXP\LinkServer_24.12.21>LinkServer probes
# Description Serial Device Board
--- ----------------------------------------- ------------- -------- -------
1 MCU-LINK on-board (r0E7) CMSIS-DAP V3.153 2RMBUEB5TPN5S
C:\NXP\LinkServer_24.12.21>LinkServer flash --probe #1 rw612:frdm-rw612 regions
INFO: Exact match for rw612:frdm-rw612 found
INFO: Selected device RW612:FRDM-RW612
INFO: Getting available probes
INFO: Selecting probe by index
INFO: Selected probe #1 2RMBUEB5TPN5S (MCU-LINK on-board (r0E7) CMSIS-DAP V3.153)
INFO: MCU-Link firmware update `check`: Probe ([2RMBUEB5TPN5S] [MCU-LINK on-board (r0E7) CMSIS-DAP V3.153]) is already running the same firmware version as the included firmware version [3.153]
Firmware update `check`: not required - forced update can be performed using: `LinkServer probe #1 update forced`
Ns: LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869)
Pc: ( 0) Reading remote configuration
Wc(03). No cache support.
Nc: Found generic directory XML file in C:\Users\TULASI~1.K\AppData\Local\Temp\tmpgcaba79r\crt_directory.xml
Pc: ( 5) Remote configuration complete
Nc: Reconnected to existing LinkServer process.
Nc: not running connect script in attach mode
Nc: Probe Firmware: MCU-LINK on-board (r0E7) CMSIS-DAP V3.153 (NXP Semiconductors)
Nc: Serial Number: 2RMBUEB5TPN5S
Nc: VID:PID: 1FC9:0143
Nc: USB Path: 0001:000e:00
Nc: Using memory from core 0 after searching for a good core
Pc: ( 30) Emulator Connected
Nc: processor is in secure mode
Pc: ( 40) No Halt on Attach
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&Reset. DpID: 6BA02477. CpuID: 00000D21. Info: <None>
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)
Nc: ROM 1 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined
Nc: ROM 1 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined
Nc: ROM 1 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined
Nc: ROM 1 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus
Nc: ROM 1 E0041000: CID B105900D PID 04002BBD21 CSt ARM ETMv4.0 type 0x13 Trace Source - Core
Nc: ROM 1 E0042000: CID B105900D PID 04000BBD21 CSt ARM CTIv2 type 0x14 Debug Control - Trigger, e.g. ECT
Nc: NXP: RW612
Nc: DAP stride is 1024 bytes (256 words)
Nc: Inspected v.2 External Flash Device on SPI RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: Image 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:32'
Nc: Can't query uninitialized dynamic flash driver in attach mode - assuming base 0x8000000 len 0x800000
Nc: Inspected v.2 External Flash Device on SPI RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Nc: Image 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:03'
Nc: Can't query uninitialized dynamic flash driver in attach mode - assuming base 0x18000000 len 0x800000
Pc: ( 65) Chip Setup Complete
Pc: ( 70) License Check Complete
Flash region summary
--region "memoryInstance_1,0x8000000,0x800000,RW61X_FlexSPI_A_SFDP_QSPI.cfx"
--region "memoryInstance_2,0x18000000,0x800000,RW61X_FlexSPI_A_SFDP_QSPI_S.cfx"
--region-default "memoryInstance_1"
C:\NXP\LinkServer_24.12.21>LinkServer flash --probe #1 rw612:frdm-rw612 load E:\nxp_projects\frdmrw612_lpc_gpio_led_output\armgcc\debug\lpc_gpio_led_output.hex
INFO: Exact match for rw612:frdm-rw612 found
INFO: Selected device RW612:FRDM-RW612
INFO: Getting available probes
INFO: Selecting probe by index
INFO: Selected probe #1 2RMBUEB5TPN5S (MCU-LINK on-board (r0E7) CMSIS-DAP V3.153)
INFO: MCU-Link firmware update `check`: Probe ([2RMBUEB5TPN5S] [MCU-LINK on-board (r0E7) CMSIS-DAP V3.153]) is already running the same firmware version as the included firmware version [3.153]
Firmware update `check`: not required - forced update can be performed using: `LinkServer probe #1 update forced`
Ns: LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869)
Pc: ( 0) Reading remote configuration
Wc(03). No cache support.
Nc: Found generic directory XML file in C:\Users\TULASI~1.K\AppData\Local\Temp\tmpo69mooki\crt_directory.xml
Pc: ( 5) Remote configuration complete
Nc: Reconnected to existing LinkServer process.
Wc: ============= SCRIPT: RW61x_connect.scp =============
Wc: RW61x Connect Script
Wc: Connecting to Probe Index = 1
Wc: This probe = 1
Wc: This TAP = 0
Wc: This core = 0
Wc: DpID = 6BA02477
Wc: ============= END SCRIPT ============================
Nc: Probe Firmware: MCU-LINK on-board (r0E7) CMSIS-DAP V3.153 (NXP Semiconductors)
Nc: Serial Number: 2RMBUEB5TPN5S
Nc: VID:PID: 1FC9:0143
Nc: USB Path: 0001:000e:00
Nc: Using memory from core 0 after searching for a good core
Pc: ( 30) Emulator Connected
Nc: processor is in secure mode
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&Reset. DpID: 6BA02477. CpuID: 00000D21. Info: <None>
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)
Nc: ROM 1 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined
Nc: ROM 1 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined
Nc: ROM 1 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined
Nc: ROM 1 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus
Nc: ROM 1 E0041000: CID B105900D PID 04002BBD21 CSt ARM ETMv4.0 type 0x13 Trace Source - Core
Nc: ROM 1 E0042000: CID B105900D PID 04000BBD21 CSt ARM CTIv2 type 0x14 Debug Control - Trigger, e.g. ECT
Nc: NXP: RW612
Nc: DAP stride is 1024 bytes (256 words)
Nc: Inspected v.2 External Flash Device on SPI RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: Image 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:32'
Nc: Opening flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:32' detected (64MB = 16384*4K at 0x8000000)
Nc: Closing flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: Inspected v.2 External Flash Device on SPI RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Nc: Image 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:03'
Nc: Opening flash driver RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Nc: VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:03' detected (64MB = 16384*4K at 0x18000000)
Nc: Closing flash driver RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Pc: ( 65) Chip Setup Complete
Pc: ( 70) License Check Complete
Nt: Loading 'tmp2txa86si.elf' ELF 0x00000000 len 0x816C
Ed:05: File 'tmp2txa86si.elf' load failure: Ef(11). No flash configured at the specified address.
Pc: (100) Target Operation Failed
CRITICAL: Critical error
ERRMSG: Exception: Flash operation exited with code 1
C:\NXP\LinkServer_24.12.21>LinkServer flash --probe #1 rw612:frdm-rw612 load --erase-all E:\nxp_projects\frdmrw612_lpc_gpio_led_output\armgcc\debug\lpc_gpio_led_output.elf
INFO: Exact match for rw612:frdm-rw612 found
INFO: Selected device RW612:FRDM-RW612
INFO: Getting available probes
INFO: Selecting probe by index
INFO: Selected probe #1 2RMBUEB5TPN5S (MCU-LINK on-board (r0E7) CMSIS-DAP V3.153)
INFO: MCU-Link firmware update `check`: Probe ([2RMBUEB5TPN5S] [MCU-LINK on-board (r0E7) CMSIS-DAP V3.153]) is already running the same firmware version as the included firmware version [3.153]
Firmware update `check`: not required - forced update can be performed using: `LinkServer probe #1 update forced`
Ns: LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869)
Pc: ( 0) Reading remote configuration
Wc(03). No cache support.
Nc: Found generic directory XML file in C:\Users\TULASI~1.K\AppData\Local\Temp\tmp8j952wvg\crt_directory.xml
Pc: ( 5) Remote configuration complete
Nc: Reconnected to existing LinkServer process.
Wc: ============= SCRIPT: RW61x_connect.scp =============
Wc: RW61x Connect Script
Wc: Connecting to Probe Index = 1
Wc: This probe = 1
Wc: This TAP = 0
Wc: This core = 0
Wc: DpID = 6BA02477
Wc: ============= END SCRIPT ============================
Nc: Probe Firmware: MCU-LINK on-board (r0E7) CMSIS-DAP V3.153 (NXP Semiconductors)
Nc: Serial Number: 2RMBUEB5TPN5S
Nc: VID:PID: 1FC9:0143
Nc: USB Path: 0001:000e:00
Nc: Using memory from core 0 after searching for a good core
Pc: ( 30) Emulator Connected
Nc: processor is in secure mode
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&Reset. DpID: 6BA02477. CpuID: 00000D21. Info: <None>
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)
Nc: ROM 1 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined
Nc: ROM 1 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined
Nc: ROM 1 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined
Nc: ROM 1 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus
Nc: ROM 1 E0041000: CID B105900D PID 04002BBD21 CSt ARM ETMv4.0 type 0x13 Trace Source - Core
Nc: ROM 1 E0042000: CID B105900D PID 04000BBD21 CSt ARM CTIv2 type 0x14 Debug Control - Trigger, e.g. ECT
Nc: NXP: RW612
Nc: DAP stride is 1024 bytes (256 words)
Nc: Inspected v.2 External Flash Device on SPI RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: Image 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:32'
Nc: Opening flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:32' detected (64MB = 16384*4K at 0x8000000)
Nc: Closing flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: Inspected v.2 External Flash Device on SPI RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Nc: Image 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:03'
Nc: Opening flash driver RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Nc: VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:03' detected (64MB = 16384*4K at 0x18000000)
Nc: Closing flash driver RW61X_FlexSPI_A_SFDP_QSPI_S.cfx
Pc: ( 65) Chip Setup Complete
Pc: ( 70) License Check Complete
Nt: Loading 'lpc_gpio_led_output.elf' ELF 0x08000000 len 0x816C
Nc: Opening flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Nc: VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'RW61X_FlexSPI_A_SFDP_QSPI Flash Dec 18 2024 17:24:32' detected (64MB = 16384*4K at 0x8000000)
Pb: ( 0) Mass erasing Flash
Pb: 1 of 1 ( 0) Writing sectors 0-8 at 0x08000000 with 33132 bytes
Ps: ( 0) at 08000000: 0 bytes - 0/33132
Ec: op ProgramPage (0x8000000, 0x20004478, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc -1 (0xFFFFFFFF)
Nc: Sectors written: 9, unchanged: 0, total: 9
Nc: Closing flash driver RW61X_FlexSPI_A_SFDP_QSPI.cfx
Pb: (100) Writing Flash ended with an error.
Ed:05: File 'lpc_gpio_led_output.elf' load failure: Ef(49): Flash driver operation gave error.
Pc: (100) Target Operation Failed
CRITICAL: Critical error
ERRMSG: Exception: Flash operation exited with code 1
C:\NXP\LinkServer_24.12.21>