Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PA/LNA in bootloader

Hello.

I have pa/lna on my device. It works properly in application (rssi is about 30 dbm). But when application goes into bootloader (dfu over ble using nrfconnect on android) rssi is about 95-100 dbm. 

I tried to add pa/lna init to secure_bootloader code. And when i download this on erased chip, I see that rssi is about 20-30 in bootloader mode. But function sd_ble_opt_set() return 1. And when I download the application and start dfu, the application goes into bootloader mode and the signal level becomes 100 again.

Why it happens?

Parents
  • Hi,

    I assume the PA/LNA is controlled by GPIO pins using the PA/LNA support in the SoftDevice? Essentially this is just the SoftDevice asserting selected GPIO pins when there is radioactivity, so it is no different than controlling any other GPIO pins. It should be the same in the bootloader and application, but it has to be configured in both since the SoftDevice is initialized separately in the bootloader and application. Have you checked with a logic analyzer to see if the GPIO pins are controlled as expected? How do you configure the PA/LAN control in the SoftDevice and application?

  • I fix this problem by adding pa/lna init at ble_dfu_transport_init() fucntion in nrf_dfu_ble.c after ble_stack_init(). 

    But I do not think this is a good solution. How to solve this?

Reply Children
Related