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

BLE_APP_UART over RTT on SKD 12.3 , can debug but no communication.

Hi all.

I've followed as much information i can find regarding RTT. I understand that it was build in to the SDK after 11 or so and I followed the guides on https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Flib_nrf_log.html

I set NRF_LOG_USES_RTT=1 in the config file. it also says you can only choose one of the three to be enabled so i disabled NRF_LOG_USES_UART and NRF_LOG_USES_RAW_UART

I'm also not sure where to put the initialization code

uint32_t err_code;
// Initialize module
err_code = NRF_LOG_INIT();
if (err_code != NRF_SUCCESS)
{
    // Module initialization failed. Take corrective action.
}
The same line uint32_t err_code; is used in the initialization of the main and when i copy it in i get errors.  making a uint32_t NRF_LOG_INIT function doesnt seem to work either.

anyways this is baffling me. I'm not sure whats required because other guides just say configure the NRF_LOG_USES_RTT=1 and thats it.   other devzone submission are also unresolved without answers.

I've also seen someone say to add NRF_LOG_USES_RTT in the C/C++ tab defines area of the target but then my board doesn't connect to Bluetooth anymore.

I'm at a loss here,  debugging works and i can print to the RTT terminal but the UART example doesnt seem to relay it to RTT so i can communicate back and fourth with the RTT terminal..

am i missing something?

  • never mind.. another case of every guide and user manual having conflicting information :'(   for anyone else that comes accross this, the documentation says only 1 type of communication can work, the three cannot work togeather, that is wrong, they work togeather, RTT is used for debug and uart now works through termite with both communication options enabled.

    also the guides that say add NRF_LOG_USES_RTT in defines are also not correct. dont add anything there. and also RTT initialization is not needed even though it says you need to add it.   :/ 

Related