How codexpawan/st17h66_ble_adv works
This is embedded firmware for a BLE peripheral, with an application that handles BLE profile events and also includes ADC measurement and UART command processing. The visible startup path initializes the platform, enters OSAL, and registers the BLE application task. The OTA-named profile provides GATT attributes and queues application work on writes. Source excerpts do not establish the complete OTA transfer path or all application-to-profile wiring, so those relationships are not inferred.
Main entry points: OSAL_SimpleBLEPeripheral.c Task registry · SimpleBLEPeripheral_Main.c OSAL task setup · sbpProfile_ota.c GATT profile · main.c Firmware entry
Components 12
Startup and OSAL
- Firmware entry
main.c - OSAL task setup
source/SimpleBLEPeripheral_Main.c - Task registry
source/OSAL_SimpleBLEPeripheral.c
BLE application
- BLE stack tasks
- Peripheral app
source/simpleBLEPeripheral.c - Application events
source/simpleBLEPeripheral.h - GATT profile
source/sbpProfile_ota.c - Profile definitions
source/sbpProfile_ota.h
Device I/O
- Peripheral I/O
source/halPeripheral.c - I/O events
source/halPeripheral.h
Other components
- BLE central
- Device hardware
Connections 7
- Firmware entry → OSAL task setup: calls app_main
main.c - OSAL task setup → Task registry: starts OSAL
source/SimpleBLEPeripheral_Main.c - Task registry → BLE stack tasks: initializes tasks
source/OSAL_SimpleBLEPeripheral.c - Task registry → Peripheral app: registers task
source/OSAL_SimpleBLEPeripheral.c - GATT profile → Application events: queues write event
source/sbpProfile_ota.c - BLE central → GATT profile: reads and writes
source/sbpProfile_ota.c - Peripheral I/O → Device hardware: handles I/O