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

How to make 51822 into test mode

We are preparing BQB test for our BTLE product now. Could you please help confirm if you have the test command to make 51822 into the test mode and can be auto-testing by BTLE equipment? This is very urgent for us.

  • I may be wrong, but I don't believe there is a command to tell the soft device to cease operation and enter DTM mode. We accomplished this by checking the state of a pin at power up and if it was pulled low we invoke the DTM rather than booting into normal mode and starting the soft device. It looks like:

    		// DTM detection pin is pulled up in HW, a low pin means DTM mode should be entered.
    	nrf_gpio_cfg_input(DTM_DETECT_PIN_NUMBER, NRF_GPIO_PIN_NOPULL);
    
    	__NOP();
    	__NOP();
    	__NOP();
    
    	pin_state = nrf_gpio_pin_read(DTM_DETECT_PIN_NUMBER);
    
    	if (pin_state == 0)			// Do not do normal initialization, go into radio test mode.
    	{
    		#if defined (USE_DTM)
    			dtm_main_loop();
    		#endif
    		
    		#if defined (USE_RADIO_TEST)
    			radio_test_main();
    		#endif
    	}
    	else
    	{
                   // Boot normally and start soft device
    
Related