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

Nrf51822QFAAC0 program stuck

Nrf51822QFAAC0 uses softdevic: s110_nrf51822_6.0.0-5.beta, sdk: nrf51_sdk_v5_1_0_36092. Use serial routines. When I annotate the initialization of serial port, and annotate the serial port print function, the program will be stuck for a period of time, and then restart.

When I open NRF_UART0->ENABLE= (UART_ENABLE_ENABLE_Enabled << UART_ENABLE_ENABLE_Pos);
NRF_UART0-> TASKS_STARTTX = 1; not stuck

When I annotate advertising_start(); it won't get stuck.

When I close NRF_UART0->ENABLE= (UART_ENABLE_ENABLE_Enabled << UART_ENABLE_ENABLE_Pos);
NRF_UART0-> TASKS_STARTTX = 1;and no comment advertising_start();Programs that run for a while get stuck.

What is the reason for this?

Parents Reply Children
No Data
Related