Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions extras/STM32_WPAN/0005-fix-add-missing-semicolon.patch

This file was deleted.

27 changes: 0 additions & 27 deletions extras/STM32_WPAN/0006-chore-add-new-field-ATT-bearers.patch

This file was deleted.

151 changes: 80 additions & 71 deletions src/utility/STM32_WPAN/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,83 +26,92 @@ shall apply unless other terms are clearly stated in the package.



SLA0044 Rev5/February 2018
SLA0044 Rev6/October 2025

## Software license agreement

### __ULTIMATE LIBERTY SOFTWARE LICENSE AGREEMENT__

BY INSTALLING, COPYING, DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE
OR ANY PART THEREOF (AND THE RELATED DOCUMENTATION) FROM STMICROELECTRONICS
INTERNATIONAL N.V, SWISS BRANCH AND/OR ITS AFFILIATED COMPANIES
(STMICROELECTRONICS), THE RECIPIENT, ON BEHALF OF HIMSELF OR HERSELF, OR ON
BEHALF OF ANY ENTITY BY WHICH SUCH RECIPIENT IS EMPLOYED AND/OR ENGAGED AGREES
TO BE BOUND BY THIS SOFTWARE LICENSE AGREEMENT.

Under STMicroelectronics’ intellectual property rights, the redistribution,
reproduction and use in source and binary forms of the software or any part
BY CLICKING ON THE "I ACCEPT" BUTTON OR BY UNZIPPING, INSTALLING, COPYING,
DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE OR ANY PART THEREOF,
INCLUDING ANY RELATED DOCUMENTATION (collectively the “SOFTWARE”)
FROM STMICROELECTRONICS INTERNATIONAL N.V, SWISS BRANCH AND/OR
ITS AFFILIATED COMPANIES (collectively “STMICROELECTRONICS”),
YOU (hereinafter referred also to as “THE RECIPIENT”), ON BEHALF OF YOURSELF,
OR ON BEHALF OF ANY ENTITY BY WHICH YOU ARE EMPLOYED AND/OR ENGAGED,
AGREE TO BE BOUND BY THIS AGREEMENT.

Under STMICROELECTRONICS’ intellectual property rights, the redistribution,
reproduction and use in source and binary forms of the SOFTWARE or any part
thereof, with or without modification, are permitted provided that the following
conditions are met:

1. Redistribution of source code (modified or not) must retain any copyright
notice, this list of conditions and the disclaimer set forth below as items 10
and 11.

2. Redistributions in binary form, except as embedded into microcontroller or
microprocessor device manufactured by or for STMicroelectronics or a software
update for such device, must reproduce any copyright notice provided with the
binary code, this list of conditions, and the disclaimer set forth below as
items 10 and 11, in documentation and/or other materials provided with the
distribution.

3. Neither the name of STMicroelectronics nor the names of other contributors to
this software may be used to endorse or promote products derived from this
software or part thereof without specific written permission.

4. This software or any part thereof, including modifications and/or derivative
works of this software, must be used and execute solely and exclusively on or in
combination with a microcontroller or microprocessor device manufactured by or
for STMicroelectronics.

5. No use, reproduction or redistribution of this software partially or totally
may be done in any manner that would subject this software to any Open Source
Terms. “Open Source Terms” shall mean any open source license which requires as
part of distribution of software that the source code of such software is
distributed therewith or otherwise made available, or open source license that
substantially complies with the Open Source definition specified at
www.opensource.org and any other comparable open source license such as for
example GNU General Public License (GPL), Eclipse Public License (EPL), Apache
Software License, BSD license or MIT license.

6. STMicroelectronics has no obligation to provide any maintenance, support or
updates for the software.

7. The software is and will remain the exclusive property of STMicroelectronics
and its licensors. The recipient will not take any action that jeopardizes
STMicroelectronics and its licensors' proprietary rights or acquire any rights
in the software, except the limited rights specified hereunder.

8. The recipient shall comply with all applicable laws and regulations affecting
the use of the software or any part thereof including any applicable export
control law or regulation.

9. Redistribution and use of this software or any part thereof other than as
permitted under this license is void and will automatically terminate your
rights under this license.

10. THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, WHICH ARE
DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT SHALL
STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

11. EXCEPT AS EXPRESSLY PERMITTED HEREUNDER, NO LICENSE OR OTHER RIGHTS, WHETHER
EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY PATENT OR OTHER INTELLECTUAL PROPERTY
RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.
notice accompanying the SOFTWARE, this list of conditions and the disclaimer below.

2. Redistributions in binary form, except as embedded into a processing unit device
manufactured by or for STMicroelectronics or a software update for any such device,
must reproduce the accompanying copyright notice, this list of conditions,
and the below disclaimer in capital type, in the documentation and/or
other materials provided with the distribution.

3. Neither the name of STMicroelectronics nor the names of other contributors
to the SOFTWARE may be used to endorse or promote products derived
from the SOFTWARE or part thereof without specific written permission.

4. The SOFTWARE or any part thereof, including modifications and/or
derivative works of the SOFTWARE, must be used and execute solely
and exclusively on or in combination with a processing unit device
manufactured by or for STMicroelectronics.

5. No use, reproduction or redistribution of the SOFTWARE partially
or totally may be done in any manner that would subject the SOFTWARE
to any Open Source Terms. “Open Source Terms” shall mean
any open source license which requires as part of distribution
of software that the source code of such software is distributed
therewith or otherwise made available, or open source license
that substantially complies with the Open Source definition specified
at www.opensource.org and any other comparable open source license
such as for example GNU General Public License (GPL),
Eclipse Public License (EPL), Apache Software License, BSD license
or MIT license.

6. STMicroelectronics has no obligation to provide any maintenance,
support or updates for the SOFTWARE.

7. The SOFTWARE is and will remain the exclusive property of
STMicroelectronics and its licensors. The RECIPIENT will not take
any action that jeopardizes STMicroelectronics and its
licensors' proprietary rights or acquire any rights in the SOFTWARE,
except the limited rights specified hereunder.

8. The RECIPIENT shall comply with all applicable laws and regulations
affecting the use of the SOFTWARE or any part thereof including
any applicable export control law or regulation.

9. Redistribution and use of the SOFTWARE or any part thereof other
than as permitted under this AGREEMENT is void and will automatically
terminate RECIPIENT’s rights under this AGREEMENT.

10. The RECIPIENT shall be solely liable to determine and verify that
the SOFTWARE is fit for the RECIPIENT intended use, environment or
application and comply with all regulatory, safety and security
related requirements concerning any use.

DISCLAIMER:

THE SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING,BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, ARE
DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW.
IN NO EVENT SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
EXCEPT AS EXPRESSLY PERMITTED HEREUNDER, NO LICENSE OR OTHER RIGHTS,
WHETHER EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY PATENT OR OTHER INTELLECTUAL
PROPERTY RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.
4 changes: 2 additions & 2 deletions src/utility/STM32_WPAN/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

## Source

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

6 changes: 6 additions & 0 deletions src/utility/STM32_WPAN/app_conf_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,12 @@
*/
#define CFG_BLE_MAX_ADD_EATT_BEARERS (4)

/**
* Size of the RAM buffer extra_data_buffer allocated for the extension of Host commands
* - Range: 0..500 (at least >250)
*/
#define CFG_BLE_EXTRA_DATA_BUFFER_SIZE (500)

/**
* BLE Rx model configuration flags to be configured with:
* - SHCI_C2_BLE_INIT_RX_MODEL_AGC_RSSI_LEGACY
Expand Down
4 changes: 2 additions & 2 deletions src/utility/STM32_WPAN/ble_bufsize.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@
#elif (SLAVE_ONLY != 0)
#define BLE_FIXED_BUFFER_SIZE_BYTES 6408 /* Peripheral only */
#elif (BASIC_FEATURES != 0)
#define BLE_FIXED_BUFFER_SIZE_BYTES 7184 /* Basic Features */
#define BLE_FIXED_BUFFER_SIZE_BYTES 6928 /* Basic Features */
#else
#define BLE_FIXED_BUFFER_SIZE_BYTES 7468 /* Full stack */
#define BLE_FIXED_BUFFER_SIZE_BYTES 7212 /* Full stack */
#endif

/*
Expand Down
18 changes: 18 additions & 0 deletions src/utility/STM32_WPAN/shci.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@ SHCI_CmdStatus_t SHCI_C2_FUS_FwDelete( void )
return (SHCI_CmdStatus_t)(((TL_CcEvt_t*)(p_rsp->evtserial.evt.payload))->payload[0]);
}

SHCI_CmdStatus_t SHCI_C2_FUS_FwPurge( void )
{
/**
* Buffer is large enough to hold command complete without payload
*/
uint8_t local_buffer[TL_BLEEVT_CC_BUFFER_SIZE];
TL_EvtPacket_t * p_rsp;

p_rsp = (TL_EvtPacket_t *)local_buffer;

shci_send( SHCI_OPCODE_C2_FUS_FW_PURGE,
0,
0,
p_rsp );

return (SHCI_CmdStatus_t)(((TL_CcEvt_t*)(p_rsp->evtserial.evt.payload))->payload[0]);
}

SHCI_CmdStatus_t SHCI_C2_FUS_UpdateAuthKey( SHCI_C2_FUS_UpdateAuthKey_Cmd_Param_t *pParam )
{
/**
Expand Down
Loading