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

NRG_LOG not working on a NRF52833 - Custom Board

Hi,

I have been using NRF52833 DK for many applications - such as get a battery voltage - which was great using SDK. Now, I moved to my own PCB which has got NRF52833 chip as well. I am finding some issues to run the firmware I developed on the DK. The firmware I developed is based on a SDK 17.0.2 project example which is in examples\peripheral\saadc\pca10100. 

The first issue I have is with NRF_LOG. It doesn't work anymore. I don't see any data on the terminal. 

My question is what do I need to do moving from the DK to my PCB? Sorry if this is a vague question, I am new to firmware development and I am learning Nordic environment. 

The only thing I did moving from the DK is I configured the pins according to my PCB. I am wondering if those pins aren't considered and overridden by what's define in for example 'boards.h'.

May I have some support please?

Many thanks 

Parents
  • Hi

    If you have moved the UART pins to other pins than P0.06 and P0.08 then that would explain why you're not able to print the log to your terminal. If that's the case, you can try using RTT for logging instead of the UART backend, as that won't require/be affected by any pin configurations in your application. To do so, you need to set the following defines in your sdk_config.h file:

    //==========================================================
    // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_RTT_ENABLED
    #define NRF_LOG_BACKEND_RTT_ENABLED 1
    #endif
    
    // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_UART_ENABLED
    #define NRF_LOG_BACKEND_UART_ENABLED 0
    #endif

    TBy editing these two defines you should be able to see debug and log messages in the SES debug terminal for instance, or the J-Link RTT viewer.

    Best regards,

    Simon

  • Hi Simonr, 

    Thank you very much for you answer.

    I haven't moved the UART pins to other pins than P0.06 and P0.08. I am using PIN 12.

    Is there something else I should check as well?

    Also, I have a general question: can I use a SDK project on a custom board? 

    Many thanks

Reply Children
No Data
Related