Dear Friends,
I’m developing firmware for the STM32WB05KZV6TR with these sensors: LIS2MDLTR (magnetometer), LSM6DSO32XTR (accelerometer/gyroscope), and HSFPAR004A (force sensor).
My PCB is already printed, and components are installed, so I can’t add a host MCU.
I need to implement BLE export (to a mobile device), Flash writing, and sensor data export using only the STM32WB05KZV6TR.
Details:
MCU: STM32WB05KZV6TR (192 KB Flash, 24 KB RAM).
Features: BLE GATT server, sensor data handling, Flash storage.
Approach: Bare metal programming (FreeRTOS/Zephyr may be too heavy).
Questions:
Can I fit this functionality within 24 KB of RAM and 192 KB of Flash? Any optimisation tips?
Are there examples or libraries for these sensors with the STM32WB series?
How should I structure the firmware to balance sensor reads and BLE notifications?
Is STM32CubeMX the best tool for configuring peripherals and BLE?
I’d appreciate any advice, code snippets, or example projects!