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

How to show nrf_log in SR3v1.2?

Hi, I have been trying this for 3 days.

I was using DBGX_EVTX in SR3v1.1 to check the log, it works fine and never goes wrong.

But  in v1.2, is using another function instead of DBGX_EVTX.

I tried some configs in sdk_config.h,  it works sometimes after programming the image to the chip ,and rest of time the log never show up again if RTT viewer reconnected.

https://imgur.com/XkEguWB

I also notice that one warning keeps popping up : ERASE MODE not supported.   

Is there any advice can be used?

Thanks. 

Parents
  • Hi Ralph, 

    you need to modify the sr3_config_nrf52832_pca20023.h in nRFready Smart Remote 3 nRF52 v1.2\nRF5x SDK v14.2.0-SR3\examples\ble_peripheral\smart_remote_3_nrf52\Source\Configuration and not the sdk_config.h file

    Specifically, you need to set CONFIG_CL_RTT_ENABLED to 1 under Logging and CLI options. 

    Best regards

    Bjørn

  • Hi Bjorn

    I checked it, CONFIG_CL_RTT_ENABLED is 1 already, I set it before. 

    I also increase some buffer size in sdk_config.h ,and the warning vanishs but still only works first time I program it. 

    Thanks.

    Ralph

  • Hmm, RTT logging should work straight out of the box with this option enabled. I have not seen that RTT viewer fails to reconnect. Could you try the disable the NRF_LOG_BACKEND_RTT_ENABLED in sdk_config.h and only have CONFIG_CL_RTT_ENABLED set to 1 in the sr3_config file?

    Also: ERASE MODE not supported.  is this outputted in RTT Viewer?

    Do you have access to the UART pins so that you could try the UART interface for logging and see if you get any output there? 

     

     

  • Hi, Bjorn,

    1.

    I disable the NRF_LOG_BACKEND_RTT_ENABLED in sdk_config.h, and only set CONFIG_CL_RTT_ENABLED , UART & BLE disable.  No big change. 

    I have to adjust what I said last time that the log wouldn't  come out after offload the batteries and reload them rather than reconnecting RTT Viewer only. But If  controller falls to sleep, then wakes up ,the log would come out successfully even after offload/reload batteries. 

    2. 

    ERASE MODE  never show up again after I increase some buffer's size about LOG config. 

    But yes , it is outputted in RTT Viewer.

    https://imgur.com/YXSMMba

    3.

    No, I haven't used UART interface for logging yet, I can try it. 

    Thanks. 

    Ralph

      

  • HI Ralph, 

    I did a quick test with RTT viewer and I saw some of the same behavior as you, i.e. Erase Mode not supported. We do recommend using Putty, all settings are described under Logger and CLI in the Smart Remote 3 nRF52 v1.2 documentation, which is opened by double-clicking the Firmware Documentation shortcut in the  nRFready Smart Remote 3 nRF52 v1.2 folder. 

    Best regards

    Bjørn 

Reply
  • HI Ralph, 

    I did a quick test with RTT viewer and I saw some of the same behavior as you, i.e. Erase Mode not supported. We do recommend using Putty, all settings are described under Logger and CLI in the Smart Remote 3 nRF52 v1.2 documentation, which is opened by double-clicking the Firmware Documentation shortcut in the  nRFready Smart Remote 3 nRF52 v1.2 folder. 

    Best regards

    Bjørn 

Children
No Data
Related