Hello,
I have been modifying the examples ble_app_uart and ble_app_c_uart to include direction finding. I perform the connection via scan and advertising and then establish a ble service that I communicate through. Now I'm trying to add the CTE on the peripheral unit by adding:
NRF_RADIO->DFEMODE = RADIO_DFEMODE_DFEOPMODE_AoA;
NRF_RADIO->CTEINLINECONF &= ~RADIO_CTEINLINECONF_CTEINLINECTRLEN_Enabled;
NRF_RADIO->CTEINLINECONF |= (RADIO_CTEINLINECONF_CTEINFOINS1_InS1 << RADIO_CTEINLINECONF_CTEINFOINS1_Pos);
NRF_RADIO->DFECTRL1 = 4 << RADIO_DFECTRL1_NUMBEROF8US_Pos |
1 << RADIO_DFECTRL1_DFEINEXTENSION_Pos;
After connection has been established I can read from the register on the peripheral while debbuging that the radio register has been reset, probably by some background function setting the NRF_RADIO->Power to 0. I have also tested to remove the sleep and power management from the example to avoid the registers being reseted with no luck.
Have you any idea why this is happening and how to solve it?
I'm using two PAN1781 evaluation board with a segger debugger, SDK 17.1 and softdevice s140.
best regards Patrik.