Hello I succeeded to configure QtCreator toolchain to compile and debug my NRF52 board. So I wanted to share.
I use my own Makefile to compile everything so I will focus here on how to run a debug session (with breakpoints and candies !) inside QtCreator (which is the best C++ IDE of course).
Even if you are not interested, can you try my tutorial and tell me where you have problems ? So I can detail my configuration. It will help other guys.
OS: Windows 8.1
Arch: x86-64 but I tried to install 32bits tools
Easy step, I have version Qt Creator 4.0.0, based on Qt 5.6.0 (MSVC 2013, 32 bit)
Install SEGGER J-Link GDB Server V5.10u
To receive/send message via UART. Install RealTerm: Serial Capture Program 126.96.36.199
Because it's cool to write documents with!
set remote hardware-breakpoint-limit 6
Reset cmds = monitor reset 0
Path = C:\nrf\toolchain\gnu-arm\5.3-2016q1\bin\arm-none-eabi-gdb-py.exe (QtCreator needs python-enabled GDB)
Qt Version = None
Close and validate Options
To Build (in Build tab), I use the command line
make -rRj VERBOSE=0 nrf52
To Run (in Run tab), add a Run configuration Custom Executable (on GDB server or HW db). Actually, "run" means that QtCreator will load the firmware into the target via GDB.
You should be able to set breakpoints and run in debug mode. QtCreator will connect as a GDB client to the JLink GDB server (that you have to launch manually only once). Then QtCreator will send the ".out" file to JLink which will load it into the board.
Any suggestions or improvements are welcome !
Sources: http://lists.qt-project.org/pipermail/qt-creator/2014-June/003748.html https://devzone.nordicsemi.com/blogs/702/debugging-using-qtcreator-on-mac/ http://morf.lv/modules.php?name=tutorials&lasit=37