Yes demo app working now after adding
XIP_BOOT_HEADER_DCD_ENABLE=1
now debugging my app. which large flash size and use more RAM.
Memory region Used Size Region Size %age Used
BOARD_FLASH: 9059680 B 64 MB 13.50%
BOARD_SDRAM: 17819484 B 30 MB 56.65%
SRAM_DTC: 0 GB 128 KB 0.00%
SRAM_ITC: 0 GB 128 KB 0.00%
SRAM_OC: 0 GB 256 KB 0.00%
NCACHE_REGION: 0 GB 2 MB 0.00%
Finished building target: MIMXRT1052_Project2.axf
MIMXRT1052_Project2.axf size is : 175 MB
Do I need stripped my file then try debug flash?
Downloading 14500 bytes @ address 0x6089ABB0 - Verified OK
Downloading 16300 bytes @ address 0x6089E454 - Verified OK
Downloading 6496 bytes @ address 0x608A2400 - Verified OK
J-Link: Flash download: Bank 0 @ 0x60000000: 3 ranges affected (5767168 bytes)
J-Link: Flash download: Total: 177.344s (Prepare: 0.242s, Compare: 78.636s, Erase: 18.706s, Program: 43.509s, Verify: 36.128s, Restore: 0.122s)
J-Link: Flash download: Program speed: 129 KB/s
Writing register (PC = 0x60002304)
Read 2 bytes @ address 0x604B0684 (Data = 0xB508)
Read 2 bytes @ address 0x604A4278 (Data = 0x4770)
Read 4 bytes @ address 0x60002304 (Data = 0x4B11B672)
GDB closed TCP/IP connection (Socket 1004)
GDB closed TCP/IP connection (Socket 996)
Restoring target state and closing J-Link connection...
Shutting down...
Cannot debug anymore