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

Can't find messages from APPL_LOG("string")

I am going through the BLE Central tutorial and am a bit confused by the APPL_LOG function calls, from what I could understand it should give messages on serial port, like printf does, but i am not seeing any messages..

Where am I suppose to see them? I think I missed something fundamental here?

Edit: Where to put the defines

image description

image description

  • Tyler: See updated question

  • @erltot: If I'm using a make file instead of keil uvision for my project how can I define it?

  • @tyler: Sorry, i don't know. I would look for preprocesor defines/symbols or something similar. You could try to add #define DEBUG 1 and #define NRF_LOG_ENABLED 1 at the beginnning of your main file?

  • @erltot: alright I set DEBUG and ENABLED_DEBUG_LOG_SUPPORT to 1 at the beginning of the main.c and I know they were defined correctly because there is a #IFDEF that checks and the code inside it fired. Yet even though they are defined I am not seeing the APPL_LOG() in my serial console. What could cause them to not show up even when the correct variables are defined?

  • @tyler: I'm on thin ice here, but if I am to guess;

    • Maybe wrong SDK version in regards to the defines? i noticed SDK.12.2 use NRF_LOG_ENABLED
    • Maybe incorrect Segger RTT or UART/serial setup?
    • Maybe you need to call NRF_LOG_FLUSH() or equivalent in the main loop?
1 2 3