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

How can you set up debug and release options for the Zigbee samples

When I open the Light Bulb project in Segger Embedded Studio I see a bewildering list of project items. I pick the first project, 'zephyr/merged.hex' and right click to set the project options there is no Pre-Processor definitions section where one would normally expect to define the DEBUG macro. What is the process for managing this.

As is, when I run the code the output in main.c that sends text to the debug log 'NRF_LOG()' does not result in code and a breakpoint cannot be set on it...

The same statements in some of the library files do output to the debug windows but not those in main.c. How can this be turned on?

Parents
  • I found that changing the log level for the statement in main.c to LOG_DBG instead of LOG_INF results in output being generated so this must be a compilation setting somewhere that can be adjusted. I have combed through all the settings and files I can find to see where it might be but have so far drawn a blank. This is probably very obvious when you know about it but it should be documented clearly in the getting started section for those who are new to this particular incarnation of the development kit. Please help, someone...

Reply
  • I found that changing the log level for the statement in main.c to LOG_DBG instead of LOG_INF results in output being generated so this must be a compilation setting somewhere that can be adjusted. I have combed through all the settings and files I can find to see where it might be but have so far drawn a blank. This is probably very obvious when you know about it but it should be documented clearly in the getting started section for those who are new to this particular incarnation of the development kit. Please help, someone...

Children
No Data
Related