Running simple project with Softdevice and SDK 17.1.0

Hello,

I am developing a new application using nRF52832 and writing and debugging code on Segger embedded studio (Release 5.68) with SDK v17.1.0. 

I try to run simple application like the one below:

-------------------------

int main(void)

{

SEGGER_RTT_printf(0, "firmware started\n");

while(1)

{

 SEGGER_RTT_printf(0, "test\n");

nrf_delay_ms(1000);

}

}

--------------------

The application has been tested on both development kit board and my own board with same result. When I display RTT terminal, I get straigth away 7 messages "test" and then no more messages like if microcontroller when to sleep. 

I have two questions:

1) nrf_delay_ms doesn't operate correctly. I ahev already read some thread about this issue but none of what I read helped me. Any suggestions?

2) Is there any necessary code to keep awake micro in the main loop like idle_state_handle() function etc...

Thank you for your help

Related