Hello all I am trying to get out some debug messages from my custom Firmware (and board) but the log looks like this:
<info> µ“°8$Mø@ñ¨ó¹)F¨: NRF_LOG initialized
I am fiddling around in SDK-config.h for a while now, but can't find a solution to this. Any suggestions what could be causing this? The project previously used the RttDebugPrintDebug(), which I deactivated just for now to see if this messes up things but this didn't change anything...
The relevant parts of my main.cpp look like this:
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <sdk_config.h>
#define NRF_LOG_MODULE_NAME main
#include "nrf_log.h"
NRF_LOG_MODULE_REGISTER();
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"
#ifdef __cplusplus
}
#endif
int main(void) {
(void) NRF_LOG_INIT(NULL);
NRF_LOG_DEFAULT_BACKENDS_INIT();
NRF_LOG_INFO("NRF_LOG initialized\r\n");
while(1) {
NRF_LOG_PROCESS();
}
}
There are lot's of other headers included, which I ommited for readability. I guess they won't mess up things, because I don't use any of the functions of my project while debugging this issue as you can see in my main().
And here you can see the relevant content of my app_config.h
#define NRF_LOG_ENABLED 1
#if (NRF_LOG_ENABLED == 1)
#define NRF_FPRINTF_ENABLED 1
#define NRF_BALLOC_ENABLED 1
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_BACKEND_UART_ENABLED 0
#define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
#define NRF_LOG_BACKEND_MAX_STRING_LENGTH 32
#define NRF_LOG_BACKEND_UART_BAUDRATE 30801920
#define NRF_LOG_USES_COLORS 1
#define NRF_LOG_ERROR_COLOR 2
#define NRF_LOG_WARNING_COLOR 4
#define NRF_LOG_COLOR_DEFAULT 3
#define NRF_LOG_DEFAULT_LEVEL 4
#define NRF_LOG_DEFERRED 1
#define NRF_LOG_BUFSIZE 1024
#define NRF_LOG_USES_TIMESTAMP 0
#define NRF_LOG_ALLOW_OVERFLOW 1
#endif // NRF_LOG_ENABLED
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 2048
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
#define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
#define NRF_LOG_FILTERS_ENABLED 0
Any suggestions how to resolve this?
Kind regards Karl