Skip to content

Commit 2017ab4

Browse files
authored
Merge pull request #59 from fpistm/stm32CubeWB_1.17.0
chore: update to STM32Cube_FW v1.17.0
2 parents eab1891 + 370e108 commit 2017ab4

File tree

9 files changed

+25
-30
lines changed

9 files changed

+25
-30
lines changed

Diff for: src/utility/STM32Cube_FW/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
## Source
33

4-
[STMicroelectronics/STM32CubeWB Release v1.16.0](https://github.com/STMicroelectronics/STM32CubeWB/releases/tag/v1.16.0)
5-
- Application: [BLE_TransparentMode](https://github.com/STMicroelectronics/STM32CubeWB/tree/v1.16.0/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_TransparentMode)
4+
[STMicroelectronics/STM32CubeWB Release v1.17.0](https://github.com/STMicroelectronics/STM32CubeWB/releases/tag/v1.17.0)
5+
- Application: [BLE_TransparentMode](https://github.com/STMicroelectronics/STM32CubeWB/tree/v1.17.0/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_TransparentMode)
66

Diff for: src/utility/STM32Cube_FW/app_conf_default.h

+1
Original file line numberDiff line numberDiff line change
@@ -730,5 +730,6 @@ typedef enum
730730
#define CFG_OTP_BASE_ADDRESS OTP_AREA_BASE
731731

732732
#define CFG_OTP_END_ADRESS OTP_AREA_END_ADDR
733+
733734
#endif
734735
#endif /*APP_CONF_DEFAULT_H */

Diff for: src/utility/STM32Cube_FW/ble_bufsize.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@
103103
#elif (LL_ONLY != 0)
104104
#define BLE_FIXED_BUFFER_SIZE_BYTES 6036 /* LL only Full */
105105
#elif (SLAVE_ONLY != 0)
106-
#define BLE_FIXED_BUFFER_SIZE_BYTES 6292 /* Peripheral only */
106+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6300 /* Peripheral only */
107107
#elif (BASIC_FEATURES != 0)
108-
#define BLE_FIXED_BUFFER_SIZE_BYTES 6624 /* Basic Features */
108+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6632 /* Basic Features */
109109
#else
110-
#define BLE_FIXED_BUFFER_SIZE_BYTES 7144 /* Full stack */
110+
#define BLE_FIXED_BUFFER_SIZE_BYTES 7152 /* Full stack */
111111
#endif
112112

113113
/*

Diff for: src/utility/STM32Cube_FW/hw_ipcc.c

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
******************************************************************************
1818
*/
1919
/* USER CODE END Header */
20-
2120
#if defined(STM32WBxx)
2221
/* Includes ------------------------------------------------------------------*/
2322
#include "hw.h"

Diff for: src/utility/STM32Cube_FW/shci.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
uint8_t SHCI_C2_FUS_GetState( SHCI_FUS_GetState_ErrorCode_t *p_error_code )
4141
{
4242
/**
43-
* A command status event + payload has the same size than the expected command complete
43+
* Buffer is large enough to hold command complete with payload
4444
*/
45-
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
45+
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE + 1];
4646
TL_EvtPacket_t * p_rsp;
4747

4848
p_rsp = (TL_EvtPacket_t *)local_buffer;
@@ -63,7 +63,7 @@ uint8_t SHCI_C2_FUS_GetState( SHCI_FUS_GetState_ErrorCode_t *p_error_code )
6363
SHCI_CmdStatus_t SHCI_C2_FUS_FwUpgrade( uint32_t fw_src_add, uint32_t fw_dest_add )
6464
{
6565
/**
66-
* TL_BLEEVT_CS_BUFFER_SIZE is 15 bytes so it is large enough to hold the 8 bytes of command parameters
66+
* TL_BLEEVT_CC_BUFFER_SIZE is 16 bytes so it is large enough to hold the 8 bytes of command parameters
6767
* Buffer is large enough to hold command complete without payload
6868
*/
6969
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
@@ -153,9 +153,9 @@ SHCI_CmdStatus_t SHCI_C2_FUS_LockAuthKey( void )
153153
SHCI_CmdStatus_t SHCI_C2_FUS_StoreUsrKey( SHCI_C2_FUS_StoreUsrKey_Cmd_Param_t *pParam, uint8_t *p_key_index )
154154
{
155155
/**
156-
* Buffer is large enough to hold command complete without payload
156+
* Buffer is large enough to hold command complete with payload
157157
*/
158-
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
158+
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE + 1];
159159
TL_EvtPacket_t * p_rsp;
160160
uint8_t local_payload_len;
161161

@@ -431,9 +431,9 @@ SHCI_CmdStatus_t SHCI_C2_CONCURRENT_SetMode( SHCI_C2_CONCURRENT_Mode_Param_t Mod
431431
SHCI_CmdStatus_t SHCI_C2_CONCURRENT_GetNextBleEvtTime( SHCI_C2_CONCURRENT_GetNextBleEvtTime_Param_t *pParam )
432432
{
433433
/**
434-
* Buffer is large enough to hold command complete without payload
434+
* Buffer is large enough to hold command complete with payload
435435
*/
436-
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
436+
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE+4];
437437
TL_EvtPacket_t * p_rsp;
438438

439439
p_rsp = (TL_EvtPacket_t *)local_buffer;
@@ -566,7 +566,7 @@ SHCI_CmdStatus_t SHCI_C2_Reinit( void )
566566
SHCI_CmdStatus_t SHCI_C2_ExtpaConfig(uint32_t gpio_port, uint16_t gpio_pin_number, uint8_t gpio_polarity, uint8_t gpio_status)
567567
{
568568
/**
569-
* TL_BLEEVT_CS_BUFFER_SIZE is 15 bytes so it is large enough to hold the 8 bytes of command parameters
569+
* TL_BLEEVT_CC_BUFFER_SIZE is 16 bytes so it is large enough to hold the 8 bytes of command parameters
570570
* Buffer is large enough to hold command complete without payload
571571
*/
572572
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
@@ -590,7 +590,7 @@ SHCI_CmdStatus_t SHCI_C2_ExtpaConfig(uint32_t gpio_port, uint16_t gpio_pin_numbe
590590
SHCI_CmdStatus_t SHCI_C2_SetFlashActivityControl(SHCI_C2_SET_FLASH_ACTIVITY_CONTROL_Source_t Source)
591591
{
592592
/**
593-
* TL_BLEEVT_CS_BUFFER_SIZE is 15 bytes so it is large enough to hold the 1 byte of command parameter
593+
* TL_BLEEVT_CC_BUFFER_SIZE is 16 bytes so it is large enough to hold the 1 byte of command parameter
594594
* Buffer is large enough to hold command complete without payload
595595
*/
596596
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];

Diff for: src/utility/STM32Cube_FW/shci.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ extern "C" {
535535
* - bit 4: 1: CS Algo #2 supported 0: CS Algo #2 not supported
536536
* - bit 5: 1: Reduced GATT database in NVM 0: Full GATT database in NVM
537537
* - bit 6: 1: GATT caching is used 0: GATT caching is not used
538-
* - bit 7: 1: LE Power Class 1 0: LE Power Classe 2-3
538+
* - bit 7: 1: LE Power Class 1 0: LE Power Class 2-3
539539
* - other bits: complete with Options_extension flag
540540
*/
541541
uint8_t Options;
@@ -668,6 +668,7 @@ extern "C" {
668668
*/
669669
#define SHCI_C2_BLE_INIT_BLE_CORE_5_2 11
670670
#define SHCI_C2_BLE_INIT_BLE_CORE_5_3 12
671+
#define SHCI_C2_BLE_INIT_BLE_CORE_5_4 13
671672

672673
/**
673674
* LsSource information
@@ -904,7 +905,7 @@ extern "C" {
904905
#define FUS_DEVICE_INFO_TABLE_VALIDITY_KEYWORD (0xA94656B9)
905906

906907
/*
907-
* At startup, the informations relative to the wireless binary are stored in RAM trough a structure defined by
908+
* At startup, the information relative to the wireless binary are stored in RAM through a structure defined by
908909
* MB_WirelessFwInfoTable_t.This structure contains 4 fields (Version,MemorySize, Stack_info and a reserved part)
909910
* each of those coded on 32 bits as shown on the table below:
910911
*
@@ -1150,7 +1151,7 @@ typedef struct {
11501151
* @brief Starts the LLD tests CLI
11511152
*
11521153
* @param param_size : Nb of bytes
1153-
* @param p_param : pointeur with data to give from M4 to M0
1154+
* @param p_param : pointer with data to give from M4 to M0
11541155
* @retval Status
11551156
*/
11561157
SHCI_CmdStatus_t SHCI_C2_LLDTESTS_Init( uint8_t param_size, uint8_t * p_param );
@@ -1160,7 +1161,7 @@ typedef struct {
11601161
* @brief Starts the LLD tests BLE
11611162
*
11621163
* @param param_size : Nb of bytes
1163-
* @param p_param : pointeur with data to give from M4 to M0
1164+
* @param p_param : pointer with data to give from M4 to M0
11641165
* @retval Status
11651166
*/
11661167
SHCI_CmdStatus_t SHCI_C2_BLE_LLD_Init( uint8_t param_size, uint8_t * p_param );
@@ -1260,7 +1261,7 @@ typedef struct {
12601261

12611262
/**
12621263
* SHCI_GetWirelessFwInfo
1263-
* @brief This function read back the informations relative to the wireless binary loaded.
1264+
* @brief This function read back the information relative to the wireless binary loaded.
12641265
* Refer yourself to MB_WirelessFwInfoTable_t structure to get the significance
12651266
* of the different parameters returned.
12661267
* @param pWirelessInfo : Pointer to WirelessFwInfo_t.

Diff for: src/utility/STM32Cube_FW/shci_tl.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void shci_send( uint16_t cmd_code, uint8_t len_cmd_payload, uint8_t * p_cmd_payl
154154
pCmdBuffer->cmdserial.cmd.plen = len_cmd_payload;
155155

156156
memcpy(pCmdBuffer->cmdserial.cmd.payload, p_cmd_payload, len_cmd_payload );
157-
157+
CmdRspStatusFlag = SHCI_TL_CMD_RESP_WAIT;
158158
shciContext.io.Send(0,0);
159159

160160
shci_cmd_resp_wait(SHCI_TL_DEFAULT_TIMEOUT);
@@ -251,7 +251,6 @@ static void TlUserEvtReceived(TL_EvtPacket_t *shcievt)
251251
/* Weak implementation ----------------------------------------------------------------*/
252252
__WEAK void shci_cmd_resp_wait(uint32_t timeout)
253253
{
254-
CmdRspStatusFlag = SHCI_TL_CMD_RESP_WAIT;
255254
for (unsigned long start = millis(); (millis() - start) < timeout;) {
256255
if (CmdRspStatusFlag == SHCI_TL_CMD_RESP_RELEASE) {
257256
break;

Diff for: src/utility/STM32Cube_FW/tl.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,8 @@ extern "C" {
5858
#define TL_BLEEVT_CS_OPCODE (0x0F)
5959
#define TL_BLEEVT_VS_OPCODE (0xFF)
6060

61-
#define TL_BLEEVT_CS_PACKET_SIZE (TL_EVT_HDR_SIZE + sizeof(TL_CsEvt_t))
62-
#define TL_BLEEVT_CS_BUFFER_SIZE (sizeof(TL_PacketHeader_t) + TL_BLEEVT_CS_PACKET_SIZE)
63-
6461
#define TL_BLEEVT_CC_PACKET_SIZE (TL_EVT_HDR_SIZE + sizeof(TL_CcEvt_t))
6562
#define TL_BLEEVT_CC_BUFFER_SIZE (sizeof(TL_PacketHeader_t) + TL_BLEEVT_CC_PACKET_SIZE)
66-
6763
/* Exported types ------------------------------------------------------------*/
6864
/**< Packet header */
6965
typedef PACKED_STRUCT
@@ -93,7 +89,7 @@ typedef PACKED_STRUCT
9389
{
9490
uint8_t numcmd;
9591
uint16_t cmdcode;
96-
uint8_t payload[255];
92+
uint8_t payload[2];
9793
} TL_CcEvt_t;
9894

9995
/**
@@ -102,7 +98,7 @@ typedef PACKED_STRUCT
10298
typedef PACKED_STRUCT
10399
{
104100
uint16_t subevtcode;
105-
uint8_t payload[255];
101+
uint8_t payload[2];
106102
} TL_AsynchEvt_t;
107103

108104
/**
@@ -112,7 +108,7 @@ typedef PACKED_STRUCT
112108
{
113109
uint8_t evtcode;
114110
uint8_t plen;
115-
uint8_t payload[255];
111+
uint8_t payload[2];
116112
} TL_Evt_t;
117113

118114
typedef PACKED_STRUCT

Diff for: src/utility/STM32Cube_FW/tl_mbox.c

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ void TL_Init( void )
9999
TL_RefTable.p_sys_table = &TL_SysTable;
100100
TL_RefTable.p_mem_manager_table = &TL_MemManagerTable;
101101
TL_RefTable.p_traces_table = &TL_TracesTable;
102-
103102
#if 0
104103
TL_RefTable.p_mac_802_15_4_table = &TL_Mac_802_15_4_Table;
105104
TL_RefTable.p_zigbee_table = &TL_Zigbee_Table;

0 commit comments

Comments
 (0)