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

bootloader_secure nrf log problem

HW: BMD-350

SDK: nRF5_SDK_12.0.0_12f24da

Sample Code: examples\dfu\bootloader_secure\pca10040_debug

sdk_config.h log setting:

#define NRF_LOG_ENABLED 1

#define NRF_LOG_BACKEND_SERIAL_USES_RTT 1

Problem: JLink RTT viewer shows no logging messages.

If I use UART to log by doing this

#define NRF_LOG_BACKEND_SERIAL_USES_UART 1

there are quite a few compiling errors because UART_ENABLED is not defined in sdk_config.h.

Question 1: what did I miss so that RTT did not work?

Question 2: for that UART logging, those compiling errors are bugs, aren't they?

Parents
  • yes, the bootloader works well with the sample experimental_ble_app_buttonless_dfu. I even combined buttonless dfu with ble_app_uart, the bootloader works well too.

    My objective is to add buttonless dfu to my own application, which I did successfully.

    However, I had problem when trying to transfer my own app firmware to the BMD-350 running bootloader. I want to enable logging to debug.

    The compiler errors are result of not defining UART_ENABLED and quite a number of UART related MACROs like NRF_LOG_xxx.

Reply
  • yes, the bootloader works well with the sample experimental_ble_app_buttonless_dfu. I even combined buttonless dfu with ble_app_uart, the bootloader works well too.

    My objective is to add buttonless dfu to my own application, which I did successfully.

    However, I had problem when trying to transfer my own app firmware to the BMD-350 running bootloader. I want to enable logging to debug.

    The compiler errors are result of not defining UART_ENABLED and quite a number of UART related MACROs like NRF_LOG_xxx.

Children
No Data
Related