• Damien George's avatar
    stm32/rfcore: Intercept addr-resolution HCI cmd to work around BLE bug. · 2668337f
    Damien George authored
    The STM32WB has a problem when address resolution is enabled: under certain
    conditions the MCU can get into a state where it draws an additional 10mA
    or so and eventually ends up with a broken BLE RX path in the silicon.  A
    simple way to reproduce this is to enable address resolution (which is the
    default for NimBLE) and start the device advertising.  If there is enough
    BLE activity in the vicinity then the device will at some point enter the
    bad state and, if left long enough, will have permanent BLE RX damage.
    
    STMicroelectronics are aware of this issue.  The only known workaround at
    this stage is to not enable address resolution, which is implemented by
    this commit.
    
    Work done in collaboration with Jim Mussared aka @jimmo.
    Signed-off-by: default avatarDamien George <damien@micropython.org>
    2668337f
rfcore.c 27 KB