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

Parents Reply Children
  • Ok. That sounds weird. Do you think it is possible for me to reproduce what you are seeing? Is it possible to zip and upload the application folder? When you were working on SDK17, did you do any changes to any of the files outside the SDK folder? You could, for instance, try to extract a new copy of the SDK, and copy your application into this one to see if the behavior remains the same.

    Best regards,

    Edvin

Related