BLE_TransparentMode Application Description
How to communicate with the STM32CubeMonitor-RF Tool using the transparent mode.
Keywords
Connectivity, BLE, BLE protocol
Directory contents
- BLE_TransparentMode/Core/Inc/app_common.h App Common application configuration file for STM32WPAN Middleware
- BLE_TransparentMode/Core/Inc/app_conf.h Application configuration file for STM32WPAN Middleware
- BLE_TransparentMode/Core/Inc/app_entry.h Interface to the application
- BLE_TransparentMode/Core/Inc/main.h Header for main.c file. This file contains the common defines of the application
- BLE_TransparentMode/Core/Inc/stm32wbaxx_hal_conf.h HAL configuration file
- BLE_TransparentMode/Core/Inc/stm32wbaxx_it.h This file contains the headers of the interrupt handlers
- BLE_TransparentMode/Core/Inc/stm32wbaxx_nucleo_conf.h STM32WBAXX nucleo board configuration file. This file should be copied to the application folder and renamed to stm32wbaxx_nucleo_conf.h
- BLE_TransparentMode/Core/Inc/utilities_conf.h Header for configuration file for STM32 Utilities.
- BLE_TransparentMode/STM32_WPAN/App/app_ble.h Header for ble application
- BLE_TransparentMode/STM32_WPAN/App/ble_conf.h Configuration file for BLE Middleware
- BLE_TransparentMode/STM32_WPAN/App/ble_dbg_conf.h Debug configuration file for BLE Middleware
- BLE_TransparentMode/STM32_WPAN/App/lhci.h HCI command for the system channel
- BLE_TransparentMode/STM32_WPAN/Target/bpka.h This file contains the interface of the BLE PKA module
- BLE_TransparentMode/STM32_WPAN/Target/host_stack_if.h This file contains the interface for the stack tasks
- BLE_TransparentMode/STM32_WPAN/Target/ll_sys_if.h Header file for ll_sys_if.c
- BLE_TransparentMode/System/Config/Debug_GPIO/app_debug.h Real Time Debug module application APIs and signal table
- BLE_TransparentMode/System/Config/Debug_GPIO/app_debug_signal_def.h Real Time Debug module application signal definition
- BLE_TransparentMode/System/Config/Debug_GPIO/debug_config.h Real Time Debug module general configuration file
- BLE_TransparentMode/System/Config/Flash/simple_nvm_arbiter_conf.h Configuration header for simple_nvm_arbiter.c module
- BLE_TransparentMode/System/Config/LowPower/app_sys.h Header for app_sys.c
- BLE_TransparentMode/System/Config/LowPower/user_low_power_config.h Header for user_low_power_config.c
- BLE_TransparentMode/System/Interfaces/hw.h This file contains the interface of STM32 HW drivers
- BLE_TransparentMode/System/Interfaces/hw_if.h Hardware Interface
- BLE_TransparentMode/System/Interfaces/stm32_lpm_if.h Header for stm32_lpm_if.c module (device specific LP management)
- BLE_TransparentMode/System/Interfaces/timer_if.h configuration of the timer_if.c instances
- BLE_TransparentMode/System/Interfaces/usart_if.h Header file for stm32_adv_trace interface file
- BLE_TransparentMode/System/Modules/adc_ctrl.h Header for ADC client manager module
- BLE_TransparentMode/System/Modules/ble_timer.h This header defines the timer functions used by the BLE stack
- BLE_TransparentMode/System/Modules/dbg_trace.h Header for dbg_trace.c
- BLE_TransparentMode/System/Modules/otp.h Header file for One Time Programmable (OTP) area
- BLE_TransparentMode/System/Modules/scm.h Header for scm.c module
- BLE_TransparentMode/System/Modules/stm_list.h Header file for linked list library
- BLE_TransparentMode/System/Modules/utilities_common.h Common file to utilities
- BLE_TransparentMode/System/Modules/baes/baes.h This file contains the interface of the basic AES software module
- BLE_TransparentMode/System/Modules/baes/baes_global.h This file contains the internal definitions of the AES software module
- BLE_TransparentMode/System/Modules/Flash/flash_driver.h Header for flash_driver.c module
- BLE_TransparentMode/System/Modules/Flash/flash_manager.h Header for flash_manager.c module
- BLE_TransparentMode/System/Modules/Flash/rf_timing_synchro.h Header for rf_timing_synchro.c module
- BLE_TransparentMode/System/Modules/Flash/simple_nvm_arbiter.h Header for simple_nvm_arbiter.c module
- BLE_TransparentMode/System/Modules/Flash/simple_nvm_arbiter_common.h Common header of simple_nvm_arbiter.c module
- BLE_TransparentMode/System/Modules/MemoryManager/advanced_memory_manager.h Header for advance_memory_manager.c module
- BLE_TransparentMode/System/Modules/MemoryManager/stm32_mm.h Header for stm32_mm.c module
- BLE_TransparentMode/System/Modules/Nvm/nvm.h This file contains the interface of the NVM manager
- BLE_TransparentMode/System/Modules/RFControl/rf_antenna_switch.h RF related module to handle dedictated GPIOs for antenna switch
- BLE_TransparentMode/System/Modules/RTDebug/debug_signals.h Real Time Debug module System and Link Layer signal definition
- BLE_TransparentMode/System/Modules/RTDebug/local_debug_tables.h Real Time Debug module System and Link Layer signal
- BLE_TransparentMode/System/Modules/RTDebug/RTDebug.h Real Time Debug module API declaration
- BLE_TransparentMode/System/Modules/RTDebug/RTDebug_dtb.h Real Time Debug module API declaration for DTB usage
- BLE_TransparentMode/Core/Src/app_entry.c Entry point of the application
- BLE_TransparentMode/Core/Src/main.c Main program body
- BLE_TransparentMode/Core/Src/stm32wbaxx_hal_msp.c This file provides code for the MSP Initialization and de-Initialization codes.
- BLE_TransparentMode/Core/Src/stm32wbaxx_it.c Interrupt Service Routines.
- BLE_TransparentMode/Core/Src/system_stm32wbaxx.c CMSIS Cortex-M33 Device Peripheral Access Layer System Source File
- BLE_TransparentMode/STM32_WPAN/App/app_ble.c BLE Application
- BLE_TransparentMode/STM32_WPAN/App/lhci.c HCI command for the system channel
- BLE_TransparentMode/STM32_WPAN/Target/bleplat.c This file implements the platform functions for BLE stack library
- BLE_TransparentMode/STM32_WPAN/Target/bpka.c This file implements the BLE PKA module
- BLE_TransparentMode/STM32_WPAN/Target/host_stack_if.c Source file for the stack tasks
- BLE_TransparentMode/STM32_WPAN/Target/linklayer_plat.c Source file for the linklayer plateform adaptation layer
- BLE_TransparentMode/STM32_WPAN/Target/ll_sys_if.c Source file for initiating the system sequencer
- BLE_TransparentMode/STM32_WPAN/Target/power_table.c This file contains supported power tables
- BLE_TransparentMode/System/Config/Debug_GPIO/app_debug.c Real Time Debug module application side APIs
- BLE_TransparentMode/System/Config/LowPower/user_low_power_config.c Low power related user configuration
- BLE_TransparentMode/System/Interfaces/hw_aes.c This file contains the AES driver for STM32WBA
- BLE_TransparentMode/System/Interfaces/hw_otp.c This file contains the OTP driver
- BLE_TransparentMode/System/Interfaces/hw_pka.c This file contains the PKA driver for STM32WBA
- BLE_TransparentMode/System/Interfaces/hw_rng.c This file contains the RNG driver for STM32WBA
- BLE_TransparentMode/System/Interfaces/pka_p256.c This file is an optional part of the PKA driver for STM32WBA. It is dedicated to the P256 elliptic curve
- BLE_TransparentMode/System/Interfaces/stm32_lpm_if.c Low layer function to enter/exit low power modes (stop, sleep)
- BLE_TransparentMode/System/Interfaces/timer_if.c Configure RTC Alarm, Tick and Calendar manager
- BLE_TransparentMode/System/Interfaces/usart_if.c Source file for interfacing the stm32_adv_trace to hardware
- BLE_TransparentMode/System/Modules/adc_ctrl.c Header for ADC client manager module
- BLE_TransparentMode/System/Modules/app_sys.c Application system for STM32WPAN Middleware
- BLE_TransparentMode/System/Modules/ble_timer.c This module implements the timer core functions
- BLE_TransparentMode/System/Modules/otp.c Source file for One Time Programmable (OTP) area
- BLE_TransparentMode/System/Modules/scm.c Functions for the System Clock Manager
- BLE_TransparentMode/System/Modules/stm_list.c TCircular Linked List Implementation
- BLE_TransparentMode/System/Modules/baes/baes_cmac.c This file contains the AES CMAC implementation
- BLE_TransparentMode/System/Modules/baes/baes_ecb.c This file contains the AES ECB functions implementation
- BLE_TransparentMode/System/Modules/Flash/flash_driver.c The Flash Driver module is the interface layer between Flash management modules and HAL Flash drivers
- BLE_TransparentMode/System/Modules/Flash/flash_manager.c The Flash Manager module provides an interface to write raw data from SRAM to FLASH
- BLE_TransparentMode/System/Modules/Flash/rf_timing_synchro.c The RF Timing Synchronization module provides an interface to synchronize the flash processing versus the RF activity to make sure the RF timing is not broken
- BLE_TransparentMode/System/Modules/Flash/simple_nvm_arbiter.c The Simple NVM arbiter module provides an interface to write and/or restore data from SRAM to FLASH with use of NVMs.
- BLE_TransparentMode/System/Modules/MemoryManager/advanced_memory_manager.c Memory Manager
- BLE_TransparentMode/System/Modules/MemoryManager/stm32_mm.c Memory Manager
- BLE_TransparentMode/System/Modules/Nvm/nvm_emul.c This file implements the RAM version of the NVM manager for STM32WBX. It is made for test purpose
- BLE_TransparentMode/System/Modules/RFControl/rf_antenna_switch.c RF related module to handle dedictated GPIOs for antenna switch
- BLE_TransparentMode/System/Modules/RTDebug/RTDebug.c Real Time Debug module API definition
- BLE_TransparentMode/System/Modules/RTDebug/RTDebug_dtb.c Real Time Debug module API definition for DTB usage
Hardware and Software environment
How to use it ?
In order to make the program work, you must do the following:
- Open IAR toolchain
- Rebuild all files and flash the board with the executable file.
- Run the example
To test the BLE Transparent Mode application, use the STM32CubeMonitor-RF tool:
- Make the connection between STM32CubeMonitor RF tool and BLE_TransparentMode application
- Send some ACI commands from STM32CubeMonitor RF tool as HCI_RESET, HCI_LE_RECEIVER_TEST, HCI_LE_TRANSMITTER_TEST, …
- the application must acknowledge the command with a “Command Complete” answer
Button 1 allows to enter/exit Low Power Stop mode.
Button 2 allows to enter in Standby Mode. Exiting standby mode must be done by pressing Reset Button.
Note
In this project, the BLE host stack is initialized without the Extended Advertising option. This means that to perform Extended Advertising/Scan, HCI commands must be used instead of ACI one.
Please note, HCI_Reset command must be called between Legacy adv/scan and Extended adv/scan HCI commands.
It is possible to modify CFG_BLE_OPTIONS in the app_conf.h to support BLE_OPTIONS_EXTENDED_ADV feature from ACI.
In order to switch from Full BLE Stack and LinkLayer libraries to Basic libraries, ll_fw_config.h must be included from Middlewares\ST\STM32_WPAN\link_layer\ll_cmd_lib\config\ble_basic instead of Middlewares\ST\STM32_WPAN\link_layer\ll_cmd_lib\config\ble_full.