Add a UART command in radio_test to enter sleep mode

Dear nRF experts.
We use the sample code of radio_test as the production test program. We directly add a UART command. When the user enters this command, it will enter sleep mode. However, we found that once it enters sleep mode, it will restart immediately.
My program is as follows.

Do I need to disable any functions before power_off?
If I use the Power_off sample code, it works then everything is OK.

  • Hi,

    Thanks. I was able to reproduce this now. It seems like you need to add a delay after triggering the stop task to give the GRTC time to stop before entering system OFF.

    ...

    NRF_GRTC->TASKS_STOP=1;

    k_busy_wait(100);

    sys_poweroff();
    ...
    If possible, I'd recommend using your BT application for the final testing. The radio test sample is not made to work alongside the Bluetooth stack but it should be possible if you follow the suggestions in this thread:  Question about NCS DTM and BLE stack option.  
     
  • Hi Berg,

    Thank you for your continuous support and assistance during this time. We have successfully resolved the issue, and I would like to extend my highest respect to you. I truly appreciate your hel

1 2 3