Direct Test Mode coexisting with the BLE stack

Hi, 

I would like to include the direct test mode in my default application that runs the BLE stack. Is this possible ? Ideally I am implementing a custom NUS like service under BLE which instructs the unit to go into an appropriate test mode after disconnecting and then turning advertising off. A pushbutton press will then stop this mode and reenter advertising so you can reestablish connection and go into another mode.

I have included the relevant DTM files, changes to the overlay file and the KConfig file detailing IRQ priorities ..etc.

dtm.c/h

dtm_hw.c/h

dtm_hw_config.h

{
zephyr,user {
dtm_antenna_count = <12>;
dtm_antenna_1_pin = <32>;
dtm_antenna_2_pin = <33>;
dtm_antenna_3_pin = <34>;
dtm_antenna_4_pin = <35>;
dtm_antenna_5_pin = <36>;
dtm_antenna_6_pin = <37>;
dtm_antenna_7_pin = <38>;
dtm_antenna_8_pin = <39>;
};
}

I also added 

CONFIG_HW_STACK_PROTECTION=y

# Configure assertions
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=y
CONFIG_ASSERT_NO_MSG_INFO=y

CONFIG_NRFX_TIMER0=y
CONFIG_NRFX_TIMER1=y

to the prj.conf file

After disconnecting from BLE and stopping advertising I call dtm_init() ;

I get an error "undefined reference to `nrfx_ppi_channel_alloc'"

Any ideas or should the BLE stack not coexist with DTM.

Many thanks

Parents Reply Children
No Data
Related