BLE direction finding and register reset

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. 

Parents
  • Hi

    Yes, the nRF52820 is supported in the nRF Connect SDK, but as we don't have a dedicated Development Kit for the nRF52820, we haven't made a board file for an nRF52820 design, as that will have to be done for your specific design anyway, letting you use the GPIOs for what you want, and enable only the peripherals you need, and so on. You can see our user guide on how to create your own boards during application development here.

    Best regards,

    Simon

Reply
  • Hi

    Yes, the nRF52820 is supported in the nRF Connect SDK, but as we don't have a dedicated Development Kit for the nRF52820, we haven't made a board file for an nRF52820 design, as that will have to be done for your specific design anyway, letting you use the GPIOs for what you want, and enable only the peripherals you need, and so on. You can see our user guide on how to create your own boards during application development here.

    Best regards,

    Simon

Children
No Data
Related