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

Debugging, NRF_LOG, Segger Embedded Studio Problems

I saw something in the list that might help but I have learned that if I go there I lose all the work I did to get here

I am having major problems with Segger Embedded Studio

  • NRF_LOG_x does not print either through the UART and putty OR RTT in SES [Manually set in the sdk_config.h file] since CMSIS Wizard is not present
  • The CMSIS Configuration Wizard is NOT present in my Tools.xml
  • Debug breakpoints are not hit unless it is in the main() part of main.c and when hit not in the code, only if a debug window to the left of the code
  • I can step line by line if I start and use F10/F11 from the start (do not use F5 and a break point) but never once I use F5 and a break point.

The only thing I can think of is that somehow the installation of SES got really corrupted or I am missing a major step. I have no idea how to fix.

Yet the code I have does partially run - it advertises, gets connected to, responds to service discovery, gets two characteristic descriptors enabled but then when I try and write from the client the write times out. I am not surprised that there are issues with the code as I have ported a SoftDevice only project from nRF51 and Keil.

But being unable to debug or even print to RTT (this is new for me) or via the UART and putty (the latter worked fine in the Keil project) is not helping.

Any help would be great. (Yes I have seen the debugging video and that's how I know my Tools.xml is corrupt).

Parents Reply Children
  • Yes I meant I have  NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0. 

    What I did validate is that in the existing hts example, with optimization 'none' I could not hit a break point in the event handler. With optimization '0' I could.

    I have tried lots of things - none  have worked

    Started with porting Keil project to Segger but there are confusions in the tutorial - it mixes nrf52 stuff with nrf51. Found a post on this site that clarified some of those problems and stated why the tutorial did not work. I have not yet gotten that to work. I find inconsistencies in the nrf51.c file, one has an include file that does not exist, the other doesn't have it. The two files are of very different size.

    Its been so frustrating I am tossing out everything, restarting with a copy of the ses hts example for SDK 17+ and converting over to my project step by step. It will probably take several days but if I had done that from the start, I would be well ahead of where I am now. Its been about two weeks.

Related