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

bootloader debugging by using app_trace_log()

Hi,

I have some problems with bootloader debugging by using app_trace_log().

My board is pca10028, and I use the SDK 10.0.0 for it. The Keil version is v5.20 and Jlink version is v6.00d.

Since I am a beginner of BLE and Nordic Development, I tested the ble_app_uart_s110_pca10028 example code at first. And everything seems ok for me. image description

Then I added the app_trace.c, app_uart_fifo.c and other files needed into the bootloader example : dfu_fual_bank_ble_s110_pca10028, and added ENABLE_DEBUG_LOG_SUPPORT to the define list. I then added some log messages.

image description

I compiled it successfully and load it into my board. After the bootloader started, the message I got from UART was like this:

image description

I have looked a lot of posts but I could not solve this problem. The UART_TX_BUG_SIZE is 1024 witch is enough for my case.

How could I solve this problem to make it work?

Thank you.

Related