Skip to content

Commit 32dd72a

Browse files
authored
Merge pull request #84 from fpistm/update_1.24.0
chore: update to STM32_WPAN v1.24.0
2 parents 15bca41 + 2763d6a commit 32dd72a

File tree

9 files changed

+178
-168
lines changed

9 files changed

+178
-168
lines changed

extras/STM32_WPAN/0005-fix-add-missing-semicolon.patch

Lines changed: 0 additions & 28 deletions
This file was deleted.

extras/STM32_WPAN/0006-chore-add-new-field-ATT-bearers.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/utility/STM32_WPAN/LICENSE.md

Lines changed: 80 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -26,83 +26,92 @@ shall apply unless other terms are clearly stated in the package.
2626

2727

2828

29-
SLA0044 Rev5/February 2018
29+
SLA0044 Rev6/October 2025
3030

3131
## Software license agreement
3232

3333
### __ULTIMATE LIBERTY SOFTWARE LICENSE AGREEMENT__
3434

35-
BY INSTALLING, COPYING, DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE
36-
OR ANY PART THEREOF (AND THE RELATED DOCUMENTATION) FROM STMICROELECTRONICS
37-
INTERNATIONAL N.V, SWISS BRANCH AND/OR ITS AFFILIATED COMPANIES
38-
(STMICROELECTRONICS), THE RECIPIENT, ON BEHALF OF HIMSELF OR HERSELF, OR ON
39-
BEHALF OF ANY ENTITY BY WHICH SUCH RECIPIENT IS EMPLOYED AND/OR ENGAGED AGREES
40-
TO BE BOUND BY THIS SOFTWARE LICENSE AGREEMENT.
41-
42-
Under STMicroelectronics’ intellectual property rights, the redistribution,
43-
reproduction and use in source and binary forms of the software or any part
35+
BY CLICKING ON THE "I ACCEPT" BUTTON OR BY UNZIPPING, INSTALLING, COPYING,
36+
DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE OR ANY PART THEREOF,
37+
INCLUDING ANY RELATED DOCUMENTATION (collectively the “SOFTWARE”)
38+
FROM STMICROELECTRONICS INTERNATIONAL N.V, SWISS BRANCH AND/OR
39+
ITS AFFILIATED COMPANIES (collectively “STMICROELECTRONICS”),
40+
YOU (hereinafter referred also to as “THE RECIPIENT”), ON BEHALF OF YOURSELF,
41+
OR ON BEHALF OF ANY ENTITY BY WHICH YOU ARE EMPLOYED AND/OR ENGAGED,
42+
AGREE TO BE BOUND BY THIS AGREEMENT.
43+
44+
Under STMICROELECTRONICS’ intellectual property rights, the redistribution,
45+
reproduction and use in source and binary forms of the SOFTWARE or any part
4446
thereof, with or without modification, are permitted provided that the following
4547
conditions are met:
4648

4749
1. Redistribution of source code (modified or not) must retain any copyright
48-
notice, this list of conditions and the disclaimer set forth below as items 10
49-
and 11.
50-
51-
2. Redistributions in binary form, except as embedded into microcontroller or
52-
microprocessor device manufactured by or for STMicroelectronics or a software
53-
update for such device, must reproduce any copyright notice provided with the
54-
binary code, this list of conditions, and the disclaimer set forth below as
55-
items 10 and 11, in documentation and/or other materials provided with the
56-
distribution.
57-
58-
3. Neither the name of STMicroelectronics nor the names of other contributors to
59-
this software may be used to endorse or promote products derived from this
60-
software or part thereof without specific written permission.
61-
62-
4. This software or any part thereof, including modifications and/or derivative
63-
works of this software, must be used and execute solely and exclusively on or in
64-
combination with a microcontroller or microprocessor device manufactured by or
65-
for STMicroelectronics.
66-
67-
5. No use, reproduction or redistribution of this software partially or totally
68-
may be done in any manner that would subject this software to any Open Source
69-
Terms. “Open Source Terms” shall mean any open source license which requires as
70-
part of distribution of software that the source code of such software is
71-
distributed therewith or otherwise made available, or open source license that
72-
substantially complies with the Open Source definition specified at
73-
www.opensource.org and any other comparable open source license such as for
74-
example GNU General Public License (GPL), Eclipse Public License (EPL), Apache
75-
Software License, BSD license or MIT license.
76-
77-
6. STMicroelectronics has no obligation to provide any maintenance, support or
78-
updates for the software.
79-
80-
7. The software is and will remain the exclusive property of STMicroelectronics
81-
and its licensors. The recipient will not take any action that jeopardizes
82-
STMicroelectronics and its licensors' proprietary rights or acquire any rights
83-
in the software, except the limited rights specified hereunder.
84-
85-
8. The recipient shall comply with all applicable laws and regulations affecting
86-
the use of the software or any part thereof including any applicable export
87-
control law or regulation.
88-
89-
9. Redistribution and use of this software or any part thereof other than as
90-
permitted under this license is void and will automatically terminate your
91-
rights under this license.
92-
93-
10. THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND
94-
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
95-
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
96-
NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, WHICH ARE
97-
DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT SHALL
98-
STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
99-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
100-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
101-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
102-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
103-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
104-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
105-
106-
11. EXCEPT AS EXPRESSLY PERMITTED HEREUNDER, NO LICENSE OR OTHER RIGHTS, WHETHER
107-
EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY PATENT OR OTHER INTELLECTUAL PROPERTY
108-
RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.
50+
notice accompanying the SOFTWARE, this list of conditions and the disclaimer below.
51+
52+
2. Redistributions in binary form, except as embedded into a processing unit device
53+
manufactured by or for STMicroelectronics or a software update for any such device,
54+
must reproduce the accompanying copyright notice, this list of conditions,
55+
and the below disclaimer in capital type, in the documentation and/or
56+
other materials provided with the distribution.
57+
58+
3. Neither the name of STMicroelectronics nor the names of other contributors
59+
to the SOFTWARE may be used to endorse or promote products derived
60+
from the SOFTWARE or part thereof without specific written permission.
61+
62+
4. The SOFTWARE or any part thereof, including modifications and/or
63+
derivative works of the SOFTWARE, must be used and execute solely
64+
and exclusively on or in combination with a processing unit device
65+
manufactured by or for STMicroelectronics.
66+
67+
5. No use, reproduction or redistribution of the SOFTWARE partially
68+
or totally may be done in any manner that would subject the SOFTWARE
69+
to any Open Source Terms. “Open Source Terms” shall mean
70+
any open source license which requires as part of distribution
71+
of software that the source code of such software is distributed
72+
therewith or otherwise made available, or open source license
73+
that substantially complies with the Open Source definition specified
74+
at www.opensource.org and any other comparable open source license
75+
such as for example GNU General Public License (GPL),
76+
Eclipse Public License (EPL), Apache Software License, BSD license
77+
or MIT license.
78+
79+
6. STMicroelectronics has no obligation to provide any maintenance,
80+
support or updates for the SOFTWARE.
81+
82+
7. The SOFTWARE is and will remain the exclusive property of
83+
STMicroelectronics and its licensors. The RECIPIENT will not take
84+
any action that jeopardizes STMicroelectronics and its
85+
licensors' proprietary rights or acquire any rights in the SOFTWARE,
86+
except the limited rights specified hereunder.
87+
88+
8. The RECIPIENT shall comply with all applicable laws and regulations
89+
affecting the use of the SOFTWARE or any part thereof including
90+
any applicable export control law or regulation.
91+
92+
9. Redistribution and use of the SOFTWARE or any part thereof other
93+
than as permitted under this AGREEMENT is void and will automatically
94+
terminate RECIPIENT’s rights under this AGREEMENT.
95+
96+
10. The RECIPIENT shall be solely liable to determine and verify that
97+
the SOFTWARE is fit for the RECIPIENT intended use, environment or
98+
application and comply with all regulatory, safety and security
99+
related requirements concerning any use.
100+
101+
DISCLAIMER:
102+
103+
THE SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND
104+
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING,BUT NOT LIMITED TO,
105+
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
106+
AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, ARE
107+
DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW.
108+
IN NO EVENT SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
109+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
110+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
111+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
112+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
113+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
114+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
115+
EXCEPT AS EXPRESSLY PERMITTED HEREUNDER, NO LICENSE OR OTHER RIGHTS,
116+
WHETHER EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY PATENT OR OTHER INTELLECTUAL
117+
PROPERTY RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.

src/utility/STM32_WPAN/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
## Source
33

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

src/utility/STM32_WPAN/app_conf_default.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@
335335
*/
336336
#define CFG_BLE_MAX_ADD_EATT_BEARERS (4)
337337

338+
/**
339+
* Size of the RAM buffer extra_data_buffer allocated for the extension of Host commands
340+
* - Range: 0..500 (at least >250)
341+
*/
342+
#define CFG_BLE_EXTRA_DATA_BUFFER_SIZE (500)
343+
338344
/**
339345
* BLE Rx model configuration flags to be configured with:
340346
* - SHCI_C2_BLE_INIT_RX_MODEL_AGC_RSSI_LEGACY

src/utility/STM32_WPAN/ble_bufsize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@
105105
#elif (SLAVE_ONLY != 0)
106106
#define BLE_FIXED_BUFFER_SIZE_BYTES 6408 /* Peripheral only */
107107
#elif (BASIC_FEATURES != 0)
108-
#define BLE_FIXED_BUFFER_SIZE_BYTES 7184 /* Basic Features */
108+
#define BLE_FIXED_BUFFER_SIZE_BYTES 6928 /* Basic Features */
109109
#else
110-
#define BLE_FIXED_BUFFER_SIZE_BYTES 7468 /* Full stack */
110+
#define BLE_FIXED_BUFFER_SIZE_BYTES 7212 /* Full stack */
111111
#endif
112112

113113
/*

src/utility/STM32_WPAN/shci.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,24 @@ SHCI_CmdStatus_t SHCI_C2_FUS_FwDelete( void )
115115
return (SHCI_CmdStatus_t)(((TL_CcEvt_t*)(p_rsp->evtserial.evt.payload))->payload[0]);
116116
}
117117

118+
SHCI_CmdStatus_t SHCI_C2_FUS_FwPurge( void )
119+
{
120+
/**
121+
* Buffer is large enough to hold command complete without payload
122+
*/
123+
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
124+
TL_EvtPacket_t * p_rsp;
125+
126+
p_rsp = (TL_EvtPacket_t *)local_buffer;
127+
128+
shci_send( SHCI_OPCODE_C2_FUS_FW_PURGE,
129+
0,
130+
0,
131+
p_rsp );
132+
133+
return (SHCI_CmdStatus_t)(((TL_CcEvt_t*)(p_rsp->evtserial.evt.payload))->payload[0]);
134+
}
135+
118136
SHCI_CmdStatus_t SHCI_C2_FUS_UpdateAuthKey( SHCI_C2_FUS_UpdateAuthKey_Cmd_Param_t *pParam )
119137
{
120138
/**

0 commit comments

Comments
 (0)