Hello,
We have a MIMXRT1160-EVK board and want to test it with VSCode, gcc and gdb.
To give it a try we download the latest SDK with the GCC-version of the led_blinky project and the latest gcc tolchain. In VSCode we install plugins for Cmake/Ninja, C/C++ and Cortex-Debug(GDB).
Compiling linking and downloading seems to work fine, but GDB will not run the program.
Here is what we did:
To make VSCode compile the project we add the following line into CmakeLists.txt:
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
Then we got:
[build] Memory region Used Size Region Size %age Used
[build] m_interrupts: 1 KB 1 KB 100.00%
[build] m_text: 25036 B 255 KB 9.59%
[build] m_data: 2280 B 256 KB 0.87%
[build] m_data2: 0 GB 64 KB 0.00%
[build] Build finished with exit code 0
We use jlink and the jlink script file from the example code.
In VSCode launch.json we add the following section:
"configurations": [
{
"name": "NC4 Core",
"type": "cortex-debug",
"device": "MIMXRT1166XXX6_M7",
"request": "launch",
"interface": "swd",
"servertype": "jlink",
"runToEntryPoint": "main",
"jlinkscript":"${workspaceRoot}/cm7/evkmimxrt1160_connect_cm4_cm7side.jlinkscript",
"cwd": "${workspaceRoot}/cm7/armgcc/Debug",
"executable": "iled_blinky_cm7.elf",
},
But GDB fail to jump to main.Hopefully anyone can help us with the trick to succeed with this setup:)