This post started as a question, but got the suggestion to post this as a blog post. Here it is.
I have been trying to get QtCreator configured such that I can use it as my IDE for the nrf51822 on Mac OSX. I use the NRF51DK as hardware, but also had it working using my own board and a Jlink Lite.
As a starting point I have been reading this post: https://devzone.nordicsemi.com/questi...
Here's what I did in a nutshell:
One note: in the qbs script, the output file has extension .out. In fact this an .elf file.
Addition: I used to do printf to a UART port, but got a tip (thanks mmulder) that this can also be redirected to the jlink interface. Here's what I needed to do for that:
Added some commands in the bare metal gdb configuration:
Add following to the linker options in the qbs script:
"--specs=rdimon.specs"
Then I got a compile error, still not sure why:
Solved my compilation problem, by defining a new compiler (see step 5 above), not pointing to gcc but to g++, everything else the same, and switch to that compiler in the kit definition With g++, compilation went fine.
To get the stdout, connect a telnet session to port 2333 after starting gdb.
Hi, The link address mentioned in this post are all converted to devzone.nordicsemi.com/questi, is this one bug for Nordic Developer zone?
I am trying to get the QBS file mentioned in your post, but it is not easy.
Here's a workaround for the dsym hack in step 13:
Thanks for sharing the info about QtCreator.
Thanks for this article, it really helped me a lot!
I have released an template project based on this and other material:
devzone.nordicsemi.com/.../
That sounds nice, Qt Creator is a great IDE. But is it possible to use the nRF51 SDK in a convenient way with it? I am currently using the makefile setup with Eclipse which is kind of a pita...
Awesome - thank you!