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

Program stuck inside log_init

Hi,

I am developing my own PCB board and application based on a nrf52832 module (MDBT42Q). To test the board, I tried downloading an example program onto the module, in this case, I use the ble_app_uart example. I am using a nrf52 Dk to download the program to the module.  I have external 32K crystal and 12pF capacitors connected to the module, and also a 10uH and 15nH inductor in series with a 1uF to ground (DC-DC mode).

The program compiles and downloads successfully, but its stuck at the log_init function when I try to debug. When I pause the debugger, it get stucked inside the function static void log_skip(void) and at the line "rd_idx       += (p_header->base.pushed.len + p_header->base.pushed.offset);"

I have no idea what is wrong.  Downloading the same program into the NRF52 DK  itself gives no problems and it doesn't hang.

I noticed that I do not have a 10K pull up resistor on the RESET pin. Now the reset pin is just floating. Could that be the cause?

Anyone can help?

Thanks in advance!

Update: 10/4

I tried uploading other programs and some of them works. For example, ble_app_alert_notification, ble_beacon, ble_blinky, ble_app_template, ble_app_hrs works! Just not the ble_app_uart example which I need.

Related