I startet evaluation with nRF52840 and SES.
I found the BSP Demo to crash (HardFault in Debug) after app_timer_init() , because of a NRF_LOG_INFO() inside, but Logging not initialised. After Re-arranging (as shown) everything worked with UART, but not RTT (no Output in the SES Debug Terminal, Flags set from UART to RTT).
Finally I found out, that a NL at te end of each NRF_LOG_INO is required (like ' NRF_LOG_INFO("BSP example started.\n"); '.
/** * @brief Function for application main entry. */ int main(void) { ret_code_t err_code; clock_initialization(); APP_ERROR_CHECK(NRF_LOG_INIT(NULL)); NRF_LOG_DEFAULT_BACKENDS_INIT(); err_code = app_timer_init(); APP_ERROR_CHECK(err_code); NRF_LOG_INFO("BSP example started.\n"); bsp_configuration(); while (true) { NRF_LOG_FLUSH(); __SEV(); __WFE(); __WFE(); // no implementation needed } }