This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 Embedded Studio compile debuggable code

Hello everyone,

I am completely new to Nordic and the Segger Embedded Studio and have some problems getting started. I followed the guide (https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF9160-DK/GetStarted) and am able to compile the assert_tracker example. I noticed that the board is unable to connect to the mobile network (probably service provider related, thats not the issue here) and tried to debug the problem. However, debugging is nearly impossible because the toolchain compiled every c-file (except the ones in the assert_tracker directory, main.c and orientation_detector.c) into a library (*.a) and linked that library. So everytime I enter a library function when debugging I have no idea whats happening. In this particular case the program gets stuck in lte_lc_init_and_connect() and never returns.

How can I get the Embedded Studio to compile object files instead of libraries so I can have some debug context?

This is probably an easy thing to fix but being new to the IDE, the Zephyr project and its build system as well as to Nordic MCUs I have no idea where to look.

Thank for your help,

Jan

Parents Reply Children
Related