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

Segger Studio greying out code for #define symbol that have been defined

Device: nrf9160 (dk and custom board)

sample application : MQTT simple

segger studio (nordic version): V4.42a

There are 2 main issues:

1) in the main.c file, Segger is greying out all the code inside modem_configure function even thought the defined symbols are present in the zephry/.config file. the example builds fine and runs as well so this seems to be a Segger issue. see attached screenshot.

2) right clicking and selection 'Go to definition' or 'Go to Decleration' on function calls, symbols and variables defined in files other than the current .c or .h file does not work. I have another thread about similar issue from a few months back and I was wondering if there is a fix for this.

Both of these issues make debugging and tracing code execution and logic very difficult to understand.

Thank you

Noaman

Parents
  • Hi!

    So, we are familiar with both of these shortcomings already.

    For issue 1, this is a graphical error only. SES doesn't pick up on some preprocessor defines and therefore greys out the configs. 

    For issue 2, SES has a few drawbacks when it comes to navigating between files and code finding. For this feature, you could use VSC with the C/C++ plugin and just open the whole NCS directory to easily navigate. 

    Best regards,

    Heidi

Reply
  • Hi!

    So, we are familiar with both of these shortcomings already.

    For issue 1, this is a graphical error only. SES doesn't pick up on some preprocessor defines and therefore greys out the configs. 

    For issue 2, SES has a few drawbacks when it comes to navigating between files and code finding. For this feature, you could use VSC with the C/C++ plugin and just open the whole NCS directory to easily navigate. 

    Best regards,

    Heidi

Children
Related