- [STM32WB55 boards](#stm32wb55-boards) - [Board](#board) - [Wireless stack update](#wireless-stack-update) - [Dongle](#dongle) - [BLE](#ble) - [GAP](#gap) - [GATT](#gatt) - [Client](#client) # STM32WB55 boards ## Board ### Wireless stack update - download https://github.com/STMicroelectronics/STM32CubeWB - Use DFU mode: https://www.youtube.com/watch?v=wheGvdXsi4o @ 1min 47s - Jumper at - USB MCU - CN7, Pin 5&7 - Connect with ST-Link, in STM32Programmer/Option bytes/User configuration/ set `nSWBOOT0` to true - Switch USB to *user USB* - Connect with USB - Update FUS: https://community.st.com/s/question/0D53W00000377Nq/pnucleo-wb55-fus-error-imagenotfound - Select *First Install* checkbox - Download binary, for example `stm32wb5x_Zigbee_FFD_fw.bin` ## Dongle Just update FUS and download binary ## BLE ### GAP GAP concepts: https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gap ### GATT GATT concepts: https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt ### Client [ble-client-seq.puml](ble-client-seq.puml) ## Backend ### DEBUG config VS Code: ```json "configurations": [ { "name": "Python: Flask", "type": "python", "request": "launch", "module": "flask", "env": { "FLASK_APP": "backend/wsgi.py", "FLASK_ENV": "development", "FLASK_DEBUG": "0", "SECRET": "\\\x10#\xd9\x89,2|hBN\xe4\xdf\xe0\xf7W" }, "args": [ "run", ], "jinja": true } ] ```