Hi,
Here are the steps I used:
$ cd ~/tmp/mcu/led
$ ARMGCC_DIR=/opt/armgcc/ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/rt1170/tools/cmake_toolchain_files/armgcc.cmake /opt/rt1170/boards/evkmimxrt1170/demo_apps/hello_rtt/cm7/armgcc/ -DCMAKE_BUILD_TYPE=sdram_debug
-- TOOLCHAIN_DIR: /opt/armgcc/
-- BUILD_TYPE: sdram_debug
-- TOOLCHAIN_DIR: /opt/armgcc/
-- BUILD_TYPE: sdram_debug
-- The ASM compiler identification is GNU
-- Found assembler: /opt/armgcc//bin/arm-none-eabi-gcc
...
-- Generating done
-- Build files have been written to: /home/u/tmp/mcu/led
$ make
...
[100%] Built target iled_blinky_cm7.elf
$ gdb sdram_debug/iled_blinky_cm7.elf
(gdb) target remote pc:2331
(gdb) load
Loading section .interrupts, size 0x400 lma 0x0
Loading section .text, size 0x62b8 lma 0x400
Loading section .ARM, size 0x8 lma 0x66b8
Loading section .init_array, size 0x4 lma 0x66c0
Loading section .fini_array, size 0x4 lma 0x66c4
Loading section .data, size 0x64 lma 0x66c8
Start address 0x000004bc, load size 26412
Transfer rate: 117 KB/sec, 3773 bytes/write.
(gdb) break main
(gdb) c
My JLinkGDBServer runs at pc:2331 thus my gdb client connects to it to load the app to target and then run. but my break point can't be teached.
Regards,
yf2