This section lists changes made to the PSoC 6 BLE Middleware.
Version | Changes | Reason for Change |
---|---|---|
3.60 | Updated the procedure of processing the Write Request event from Stack. | BLE middleware returns CY_BLE_EVT_GATTS_WRITE_REQ event twice for the Custom profile. |
Updated Cy_BLE_Init function. | Cy_BLE_Init() returns CY_BLE_ERROR_INVALID_PARAMETER when BLE configured as Observer or Broadcaster only. | |
Updated the BLE Stack to version 5.0.10.265. | Refer to BLE Stack Changes. | |
3.50 | Updated PILO part of BLESS MW HAL to be compatible with psoc6pdl 1.6.1. Refer to section Configuring PILO for BLESS Deep Sleep Mode for details about the requirements for using the PILO as the LF clock source. | To support PILO on the PSoC 64 Secure device. |
Added BLE Stack controller libraries with IPC communication (BLESS_CONTROLLER_IPC) for CM0+. | Enable users to build their own CM0+ image with a BLE controller to operate in BLE Dual CPU mode. | |
Updated the procedure of processing the CY_BLE_EVT_GATTS_WRITE_REQ event: an error response (with reason INVALID_HANDLE) is sent, if the handle was processed neither by registered services nor an application BLE callback. | Improved the handling of the CY_BLE_EVT_GATTS_WRITE_REQ event to allow operation with a custom GATT database. | |
Updated the CY_BLE_SFLASH_DIE_xxx macros (in cy_ble_gap.h) according to the PSoC 6 BLE production configuration. | The silicon-generated "Company assigned" part of the device address has a high repetition rate of the generated MAC address.
| |
Added preprocessor expression to verify count of GATT database entries. | BLE Stack supports maximum 512 entries of GATT database. | |
Documentation updates. | Changed the code snippet for initial PILO trimming and updating the trim step-size in section Configuring PILO for BLESS Deep Sleep Mode. | |
Updated the BLE Stack to version 5.0.8.220. | Refer to BLE Stack Changes. | |
3.40 | Added BLE Stack libraries for CM0+ core. | Support BLE CM0+ Single CPU mode. |
Updated the procedure of processing events to wait 10 ms on CY_BLE_EVT_SOFT_RESET_COMPLETE events. | Ensure that the controller is completely reset before generating the event to the application. Refer to CY_BLE_EVT_SOFT_RESET_COMPLETE event documentation. | |
Updated the BLE Stack to version 5.0.7.196 | Refer to BLE Stack Changes. | |
3.30 | Updated the procedure of processing events to clear the cy_ble_pair_Status flags on CY_BLE_EVT_STACK_SHUTDOWN_COMPLETE and CY_BLE_EVT_SOFT_RESET_COMPLETE events. | Cy_BLE_IsDevicePaired() falsely returned True prior to authentication after a radio reset. |
Fixed the setting of a device address in handling the CY_BLE_EVT_STACK_ON event, if the BLE middleware is configured to operate only in the Broadcaster GAP role. | With the BLE configured only as a broadcaster, the configuration for a BD address in the BLE customizer was not effective. | |
Documentation updates. | Documentation update and clarification. | |
Updated the BLE Stack to version 5.0.6.161. | Refer to BLE Stack Changes. | |
3.20 | Added support ARM Compiler 6. The BLE libraries are built with the following options to be compatible with ModusToolbox: -fshort-enums - set the size of an enumeration type to the smallest data type that can hold all enumerator values -fshort-wchar - Set the size of wchar_t to 2 bytes o operate in custom environments with ARM Compiler 6, apply the above mentioned build options. | Support Arm Compiler 6. |
Added support for BLE dual CPU mode with pre-compiled CM0 image. | Pre-compiled application images executed on Cortex M0+ core of the PSoC 6 dual-core MCU. The images are provided as C arrays ready to be compiled as part of the Cortex M4 application. The Cortex M0+ application code is placed to internal flash by the Cortex M4 linker script. CM0P_BLESS image is used for BLE dual CPU mode. | |
Fixed CY_BLE_ENABLE_PHY_UPDATE macros for enable "LE 2 Mbps" feature. | "Enable LE 2 Mbps" feature does not work if it selects in BT Configurator. | |
The PSoC 6 BLE Middleware is re-organized for supporting MT2.0 make flow. | Support new make flow. Refer to section Configuration Considerations for details. | |
Disable support HCI over UART in PSoC 6 BLE Middleware side. | The SoC mode library was split into three libraries: host, controller and stack manager. The new organization structure allows usage of the same controller library with BLESS host, a UART application or any third party host, over a software HCI interface. | |
Updated the BLE Stack to version 5.0.5.110. | Refer to BLE Stack Changes. | |
3.10 | Disabled support BLE dual CPU mode. The following Software components are no longer supported:
| Refer to ModusToolbox 1.1 Release Notes. |
Added the new SW component "BLE OTA with code sharing, Profile only". Updated documentation. | Enable the PSoC 6 BLE Middleware to support OTA with code sharing. | |
Fixed the Cy_BLE_HAL_BlessStart() function of the PSoC 6 BLE Middleware: removed the BLE ECO reset before BLESS initialization. | Fix ModusToolbox 1.0 errata. | |
Updated the BLE Stack to version 5.0.4.946. | Refer to BLE Stack Changes. | |
3.0 | The PSoC 6 BLE Middleware is re-organized, so that it can be built as a device agnostic immutable library.
| Enable the PSoC 6 BLE Middleware to be built as a device agnostic immutable library. |
Updated the RAM memory calculation (macros CY_BLE_GATT_MTU_BUFF_COUNT) | Decreased the RAM usage by PSoC 6 BLE Middleware | |
Decreased the ACT_LDO startup time from 4 to 10. | Support for the 10uF capacitor on VDCDC. | |
Updated the config structures cy_stc_ble_config_t. Added the pointer to the configuration parameter structure for the Radio PA calibration (field paCalConfig). | Enabling the user to override the BLE radio's default TX power configurations. | |
Documentation updates. | Documentation update and clarification. | |
Updated the BLE Stack to version 5.0.3.935. | Refer to BLE Stack Changes. | |
2.20 | Added support for PILO. | PSoC 6 BLE supports Precision ILO (PILO) which can be used as an LF clock source. Refer to LFCLK Configuration for BLESS Deep Sleep Mode for more details. |
Updated the Cy_BLE_RegisterAppHostCallback() functionality. | Added support for BLE single CPU mode. | |
Updated Write Request events handler in PSoC 6 BLE Middleware. Return CY_BLE_GATT_ERR_INVALID_HANDLE if the attribute handle is out of database range. | Handling invalid range of attribute handle during Write Request event. | |
Updated flash memory calculation for Bonded device list | The function Cy_BLE_StackInit() returned CY_BLE_ERROR_INVALID_PARAMETER when the Resolving list parameter is set to 1. | |
Documentation updates. | Documentation update and clarification. Removed the Errata section. | |
Updated the BLE Stack to version 5.0.2.917. | Refer to BLE Stack Changes. | |
2.10 | Added return value CY_BLE_ERROR_FLASH_WRITE_NOT_PERMITED for following functions: Cy_BLE_StoreAppData() Cy_BLE_StoreBondingData() Added assertion in Cy_BLE_HAL_NvramWrite() to catch failure (CY_SYSPM_INVALID_STATE) during increasing core voltage from 0.9V to 1.1V for flash operation. | Flash operation is not permitted with protection context (PC) value > 0 and core voltage 0.9V, because of a preproduction hardware limitation. |
Documentation updates. | Documentation update and clarification. | |
2.0 Production | Added the BLE user configuration file cy_ble_config.h. | To make the BLE configuration more flexible. Allows redefining the configuration define(s) generated by the BLE customizer and default BLE clock defines (from cy_ble_clk.h). |
Updated the BLE Interrupt Notification Feature. | Added support for BLE dual CPU mode. | |
Updated the Cy_BLE_GATTS_ReadAttributeValueLocal() and Cy_BLE_GATTS_ReadAttributeValuePeer() functions. | Those functions have the wrong Locally/Peer initiate operation flag. | |
The following defined values for the CY_BLE_STACK_MODE configuration parameter were deprecated: CY_BLE_STACK_HOST_ONLY CY_BLE_STACK_HOST_CONTR_UART CY_BLE_STACK_HOST_IPC. The following defined values were renamed: CY_BLE_STACK_DEBUG to CY_BLE_STACK_MODE_SINGLE_SOC CY_BLE_STACK_RELEASE to CY_BLE_STACK_MODE_DUAL_IPC. | Deprecated not supported (debug) modes. The defines CY_BLE_CONFIG_STACK_DEBUG and CY_BLE_CONFIG_STACK_RELEASE were renamed to have more meaningful name. | |
The BLE Stack was updated to version 5.0.0.898. | Refer to BLE Stack Changes. | |
2.0 BETA#2 | Added new API: Cy_BLE_IsDevicePaired(), Cy_BLE_GetDeviceRole(), Cy_BLE_IsPeerConnected(), Cy_BLE_GATTS_WriteAttributeValuePeer(), Cy_BLE_GATTS_WriteAttributeValueLocal(), Cy_BLE_GATTS_ReadAttributeValuePeer(), Cy_BLE_GATTS_ReadAttributeValueLocal(), Cy_BLE_GATTS_IsIndicationEnabled(), Cy_BLE_GATTS_SendIndication(), Cy_BLE_GATTS_IsNotificationEnabled(), Cy_BLE_GATTS_SendNotification(), Cy_BLE_GATTS_SendErrorRsp(), Cy_BLE_GATTC_SendConfirmation(). | Improve usability |
The BLE Stack was updated to version 5.0.0.855. | Refer to BLE Stack Changes. | |
2.0 BETA#1 | Renamed API: Cy_BLE_GAP_UpdateAdvScanData() to Cy_BLE_GAPP_UpdateAdvScanData(); Cy_BLE_SetConnectionPriority() to Cy_BLE_GAP_SetConnectionPriority(). | Consistent API naming scheme |
Made the maximum number of connections configurable. | SRAM consumption reducing when extra connections are not used. | |
Added new options for the CPU Core parameter. | Support of single-core devices. | |
The BLE Stack was updated to version 5.0.0.785. | Refer to BLE Stack Changes. | |
1.0 | Initial version. |
This section lists changes made to the BLE Stack.
Version | Changes | Reason for Change |
---|---|---|
5.0.10.265 | Updated BLE Stack ATT and GATT. | Updated to fix incorrect return code in error messages. |
Updated BLE Controller. | Added changes required to qualify for BLE Spec. 5.2. | |
Updated channel map indication handler. | Optimized the Low-Power-Mode (LPM) performance of PSoC 6 BLE Controller. | |
Updated Radio TX Power Change Handling Procedure. | The radio TX power change handler was incorrectly being called from interrupt context whereas the ideal location for the same is from the task context. | |
Enhanced GATT Server implementation. | Updated the GATT server implementation to handle large data base (> 512 entries). | |
Re-factored Shutdown code for Dual CPU mode. | Improved the handling of Cy_BLE_StackShutdown API to avoid timing-sensitive bugs. | |
5.0.8.220 | Updated BLE ISR for SoC mode. | Enhanced the BLE ISR to handle LL Channel Map in interrupt context for SoC mode. |
Updated low-power mode API. | Updated Cy_BLE_ControllerEnterLPM API for handling a scenario where wake-up is initiated by the hardware. | |
Re-factored Shutdown code for Dual CPU mode. | Improved the handling of Cy_BLE_StackShutdown API to avoid timing-sensitive bugs. | |
5.0.7.196 | Updated the APIs to handle the interrupt locking. | A better locking mechanism to avoid potential timing-sensitive bugs. |
Re-factored the radio initialization sequence. | It was observed that on customer boards, re-factoring the radio initialization sequence provided an improved stability to the reset sequence. | |
Fix for CVE-2019-16336. | Enforced the length check on incoming LL PDUs to protect against buffer overflows caused by malicious packets. Malformed Data packets will be dropped in the LL. Malformed Control packets will be replied with LL_UNKNOWN_RSP. For detail, refer to the CVE-2019-16336 vulnerability page. | |
5.0.6.161 | Updated the radio configuration. | To support the new packages: QFN68 and BGA124. |
Added checks for Malformed LL PDUs. | LL PDUs with the incorrect length must be replied with LL_UNKNOWN_RSP per latest BLE spec. Also, this prevents against any unknown behavior triggered due to malicious LL PDUs. | |
Documentation update. | Updated the documentation for the CY_BLE_EVT_RADIO_TEMPERATURE and CY_BLE_EVT_RADIO_VOLTAGE_LEVEL events. | |
5.0.5.110 | Optimized the ACL TX path for a better throughput. | The throughput was observed to be low when the stack libraries were linked with MDK libraries. |
Added support for autonomous feature exchange on connection complete. | Few mobile phone (eg. Droid Turbo) negotiate DLE with TX octets > 27 bytes but do not actually support the DLE feature. This leads to interoperability issues with such phones. An autonomous feature exchange will be triggered when the PSoC 6 device is in master role, and the DLE and PHY update negotiations will be triggered only if the peer supports DLE/PHY update feature. In case PSoC 6 is in a slave role, DLE/PHY update negotiations will not be triggered till the peer initiates a feature exchange procedure and hence exchanges it's feature set. | |
Added support for configurable PA LDO settings. | It was observed that on customer boards, the output RF TX power was sub-optimal, when the factory settings for PA LDO were used. To fine tune the PA LDO settings at the customer end, the same were now exposed via the paCalConfig member of stackConfig input structure to the Cy_BLE_StackInit API. | |
Updated RSSI formula. | With the previous formula, there existed a non-linearity in the measured value of RSSI at ~ -50dBm. | |
The SoC mode library was split into three libraries: host, controller and stack manager. | The new organization structure allows usage of the same controller library with BLESS host, a UART application or any third party host, over a software HCI interface. | |
Fixed issue with disconnection. | If an LL procedure is on-going, and a disconnect command is issued, the Terminate PDU is not transmitted over the air even after the procedure completes. | |
Updated Cy_BLE_StackInit API to check that if DLE is disabled, max TX and RX octets must be set to 27 Bytes. | The check for the DLE parameters was not correct for the case when DLE is disabled. | |
5.0.4.946 | Fix for CVE-2019-17061. | Updated the handling of LL PDU with LLID 0 to prevent corruption in subsequently received LL PDUs. Such packets will be dropped in the LL, but the peer will be acked for the packet. For detail, refer to the CVE-2019-17061 vulnerability page. |
Enabled the RSSI reading after the CRC has been received. | The RSSI value was not being updated if deep sleep was enabled in the controller. | |
Optimized the ACL TX path for a better throughput. | In BLE dual CPU mode, with CM0p running at 25 MHz, the BLE throughput was observed to be sub-optimal. | |
Added support for the PDL APIs to calculate temperature and Battery monitor output. | New APIs were added to the PDL to calculate the absolute values of the die temperature and radio voltage, using the raw values from the radio. | |
5.0.3.935 | 1.Added the option to override the paCal table and LoBuff table from the application. 2.Added the option to set lobuflimit and calvallimit from the application. 3.Updated the PA LDO settings to use the settings recommended by the designers. | Additional flexibility is provided to obtain an optimal output power at the user's board. The new PA LDO setting recommended by the designers results in the ~ 1dBm higher output power (measured using Cypress 001 kits) at the 4dBm setting. |
The local SCA with PILO is enabled to be set to 500 ppm. | The PILO frequency accuracy is of the order of 500 ppm. | |
The BLE SMP pairing vulnerability fix: 1.Added the public key validation check for the remote key. 2.Updated the documentation for the Cy_BLE_GAP_GenerateSetLocalP256Keys() API, to recommend the application to update the private key as mentioned in the BLE Core spec 5.0 Vol. 3 Part H, Section 2.3.6. 3.Added the feature bit mask for the remote public key validation. | The update to comply with BLE Core Specification Errata 10734. | |
1.When none of the BLE hardware engines are active, disable the hardware auto wakeup feature before entering deep sleep mode. | The fix for a spurious interrupt triggered by the link layer hardware when the firmware continuously enters/exits deep sleep mode. | |
5.0.2.917 | Added a new BLE event - CY_BLE_EVT_GAP_ADV_TX, which is triggered on transmission of an ADV packet (if this feature is enabled). | Support for BLE mesh. |
Dual CPU mode: Stack Shutdown sequence modified to shut down controller before sending CY_BLE_EVT_STACK_SHUTDOWN_COMPLETE event. | The controller was shut-down after informing the application that shutdown had been completed. | |
Updated the Cy_BLE_HAL_BlessInterruptHandler API to return status. | This return parameter indicates that user should call Cy_BLE_ProcessEvents() to process pending BLE Stack events. | |
5.0.1.906 | Added check for any pending real time procedures before allowing autonomous PHY update request. | Autonomous PHY update request was being initiated without a check for "LL control procedure collision". |
Fixed memory allocation failure issue observed when initializing buffer pool for ACL Rx Packet. | Memory allocation failure was observed when DLE Rx Octet < TxOctet. | |
Added support to disconnect LE link whenever there is real-time LL procedure collision. | Consistent with BLE Spec 5.0 erratum 7106 | |
Added support for PILO. | PSoC 6 BLE supports a Precision ILO which can be used as an LF clock source instead of the WCO. | |
5.0.0.898 | Enhancement is done to rerun the scheduler on close CE, if the event about to be scheduled is in past. | Blocking flash write operation blocks the CPU from executing any interrupts (including BLESS isr) for > 17ms, Due to this, if the CI for connection is smaller than 17ms, the BLE link will disconnect. |
The calibration target value for the Max output power level is modified under the user-defined condition. | The enhancement to support the 5dBm Tx power in the BLE stack. | |
5.0.0.855 | Changed the input parameter for the Cy_BLE_SetCustomEventMask() API from (uint8* mask) to (uint32 mask). | Consistent with the bit mask scheme. |
1.The timer context was never reset, it is made to reset during the Stack shutdown. 2.The timer context was not freed even when the timer start failed. It is made free when the timer start fails due to any reason. | The Cy_BLE_GAPC_StopScan() function returns CY_BLE_ERROR_MAX when the Cy_BLE_GAPC_StopScan() function is called to stop a previously-initiated scanning procedure. This issue occurs only when the authentication procedure is occurring and the application tries to stop the scan | |
1.The DLE control procedure timer is started only if the queuing Data Length Request in the Hardware FIFO is successful. 2.Added checks to handle the race condition between the ACK processing and Handling data PDU's from the Host. | Unexpected disconnection due to an LMP Response timeout in the embedded stress application. This issue is due to: | |
5.0.0.785 | Initial BLE Stack version. |