Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Commit 808a201

Browse files
committed
Official release v1.1.0
- Regenerated the source code with CubeMX v6.6.1 and ISPU pack v1.1.0 - Added new examples: NEAI_AnomalyDetection Signed-off-by: Petr STERBA <petr.sterba@st.com>
1 parent 929a63e commit 808a201

626 files changed

Lines changed: 148563 additions & 22978 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This guide mainly focuses on steps to be followed to submit an issue.
88
### 1. Before opening an issue
99

1010
To report a bug/request please file an issue in the right repository
11-
(example for [x-cube-mems1](https://github.com/STMicroelectronics/x-cube-ispu/issues/new/choose)).
11+
(example for [x-cube-ispu](https://github.com/STMicroelectronics/x-cube-ispu/issues/new/choose)).
1212

1313

1414
Please check the following boxes before posting an issue:
-5.42 MB
Binary file not shown.

Documentation/X_CUBE_ISPU.chm

3.81 MB
Binary file not shown.

Ispu/LICENSE.md

Lines changed: 42 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,51 @@
1-
SLA0095 Rev2/Nov 2020
1+
SLA0094 Rev2/May 2020
22

33
## Software license agreement
44

5-
### __Mix ODE+OSS+3rd-party Software License Agreement__
5+
### __ODE SOFTWARE LICENSE AGREEMENT__
66

7-
BY INSTALLING COPYING, DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE PACKAGE OR ANY
8-
PART THEREOF (AND THE RELATED DOCUMENTATION) FROM STMICROELECTRONICS INTERNATIONAL N.V, SWISS
7+
BY INSTALLING, COPYING, DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE OR ANY PART
8+
THEREOF (AND THE RELATED DOCUMENTATION) FROM STMICROELECTRONICS INTERNATIONAL N.V, SWISS
99
BRANCH AND/OR ITS AFFILIATED COMPANIES (STMICROELECTRONICS), THE RECIPIENT, ON BEHALF OF HIMSELF
1010
OR HERSELF, OR ON BEHALF OF ANY ENTITY BY WHICH SUCH RECIPIENT IS EMPLOYED AND/OR ENGAGED
11-
AGREES TO BE BOUND BY THIS SOFTWARE PACKAGE LICENSE AGREEMENT.
12-
Under STMicroelectronics’ intellectual property rights and subject to applicable licensing terms for any third-party software
13-
incorporated in this software package and applicable Open Source Terms (as defined here below), the redistribution,
14-
reproduction and use in source and binary forms of the software package or any part thereof, with or without modification,
15-
are permitted provided that the following conditions are met:
16-
1. Redistribution of source code (modified or not) must retain any copyright notice, this list of conditions and the following
17-
disclaimer.
11+
AGREES TO BE BOUND BY THIS SOFTWARE LICENSE AGREEMENT.
12+
Under STMicroelectronics’ intellectual property rights, the redistribution, reproduction and use in source and binary forms of the
13+
software or any part thereof, with or without modification, are permitted provided that the following conditions are met:
14+
1. Redistribution of source code (modified or not) must retain any copyright notice, this list of conditions and the disclaimer set
15+
forth below as items 10 and 11.
1816
2. Redistributions in binary form, except as embedded into microcontroller or microprocessor device manufactured by or for
19-
STMicroelectronics or a software update for such device, must reproduce the above copyright notice, this list of conditions
20-
and the following disclaimer in the documentation and/or other materials provided with the distribution.
21-
3. Neither the name of STMicroelectronics nor the names of other contributors to this software package may be used to
22-
endorse or promote products derived from this software package or part thereof without specific written permission.
23-
4. This software package or any part thereof, including modifications and/or derivative works of this software package, must
24-
be used and execute solely and exclusively on or in combination with a microcontroller or a microprocessor devices
25-
manufactured by or for STMicroelectronics.
26-
5. No use, reproduction or redistribution of this software package partially or totally may be done in any manner that would
27-
subject this software package to any Open Source Terms (as defined below).
28-
6. Some portion of the software package may contain software subject to Open Source Terms (as defined below) applicable
29-
for each such portion (“Open Source Software”), as further specified in the software package. Such Open Source Software
30-
is supplied under the applicable Open Source Terms and is not subject to the terms and conditions of license hereunder.
31-
“Open Source Terms” shall mean any open source license which requires as part of distribution of software that the
32-
source code of such software is distributed therewith or otherwise made available, or open source license that substantially
33-
complies with the Open Source definition specified at www.opensource.org and any other comparable open source license
34-
such as for example GNU General Public License (GPL), Eclipse Public License (EPL), Apache Software License, BSD
35-
license and MIT license.
36-
7. This software package may also include third party software as expressly specified in the software package subject to
37-
specific license terms from such third parties. Such third party software is supplied under such specific license terms and
38-
is not subject to the terms and conditions of license hereunder. By installing copying, downloading, accessing or otherwise
39-
using this software package, the recipient agrees to be bound by such license terms with regard to such third party
40-
software.
41-
8. STMicroelectronics has no obligation to provide any maintenance, support or updates for the software package.
42-
9. The software package is and will remain the exclusive property of STMicroelectronics and its licensors. The recipient will
43-
not take any action that jeopardizes STMicroelectronics and its licensors' proprietary rights or acquire any rights in the
44-
software package, except the limited rights specified hereunder.
45-
10. The recipient shall comply with all applicable laws and regulations affecting the use of the software package or any part
46-
thereof including any applicable export control law or regulation.
47-
11. Redistribution and use of this software package partially or any part thereof other than as permitted under this license is
48-
void and will automatically terminate your rights under this license.
49-
50-
THIS SOFTWARE PACKAGE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND ANY
17+
STMicroelectronics or a software update for such device, must reproduce any copyright notice provided with the binary code,
18+
this list of conditions, and the disclaimer set forth below as items 10 and 11, in documentation and/or other materials provided
19+
with the distribution.
20+
3. Neither the name of STMicroelectronics nor the names of other contributors to this software may be used to endorse or
21+
promote products derived from this software or part thereof without specific written permission.
22+
4. This software or any part thereof, including modifications and/or derivative works of this software, must be used and execute
23+
solely and exclusively on or in combination with a microcontroller and/or microprocessor and another device manufactured by or
24+
for STMicroelectronics.
25+
5. No use, reproduction or redistribution of this software partially or totally may be done in any manner that would subject
26+
this software to any Open Source Terms. “Open Source Terms” shall mean any open source license which requires as part
27+
of distribution of software that the source code of such software is distributed therewith or otherwise made available, or open
28+
source license that substantially complies with the Open Source definition specified at www.opensource.org and any other
29+
comparable open source license such as for example GNU General Public License (GPL), Eclipse Public License (EPL),
30+
Apache Software License, BSD license or MIT license.
31+
6. STMicroelectronics has no obligation to provide any maintenance, support or updates for the software.
32+
7. The software is and will remain the exclusive property of STMicroelectronics and its licensors. The recipient will not take any
33+
action that jeopardizes STMicroelectronics and its licensors' proprietary rights or acquire any rights in the software, except the
34+
limited rights specified hereunder.
35+
8. The recipient shall comply with all applicable laws and regulations affecting the use of the software or any part thereof
36+
including any applicable export control law or regulation.
37+
9. Redistribution and use of this software or any part thereof other than as permitted under this license is void and will
38+
automatically terminate your rights under this license.
39+
10. THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND ANY
5140
EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
5241
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY
53-
INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
54-
SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
55-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
56-
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
57-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
58-
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE PACKAGE, EVEN IF ADVISED OF THE
59-
POSSIBILITY OF SUCH DAMAGE.
60-
EXCEPT AS EXPRESSLY PERMITTED HEREUNDER AND SUBJECT TO THE APPLICABLE LICENSING TERMS FOR
61-
ANY THIRD-PARTY SOFTWARE INCORPORATED IN THE SOFTWARE PACKAGE AND OPEN SOURCE TERMS AS
62-
APPLICABLE, NO LICENSE OR OTHER RIGHTS, WHETHER EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY
63-
PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.
42+
INTELLECTUAL PROPERTY RIGHTS, WHICH ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN
43+
NO EVENT SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
45+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
46+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
47+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
48+
THE POSSIBILITY OF SUCH DAMAGE.
49+
11. EXCEPT AS EXPRESSLY PERMITTED HEREUNDER, NO LICENSE OR OTHER RIGHTS, WHETHER EXPRESS
50+
OR IMPLIED, ARE GRANTED UNDER ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF
51+
STMICROELECTRONICS OR ANY THIRD PARTY.

Ispu/Release_Notes.html

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="generator" content="pandoc" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7-
<title>Release Notes for XXXXX Component or Package</title>
7+
<title>Release Notes for Ispu software package</title>
88
<style type="text/css">
99
code{white-space: pre-wrap;}
1010
span.smallcaps{font-variant: small-caps;}
@@ -46,7 +46,7 @@ <h1 id="purpose">Purpose</h1>
4646
<div class="col-sm-12 col-lg-8">
4747
<h1 id="update-history">Update history</h1>
4848
<div class="collapse">
49-
<input type="checkbox" id="collapse-section4" checked aria-hidden="true"> <label for="collapse-section4" aria-hidden="true"><strong>V1.0.0 / 12-September-2022</strong></label>
49+
<input type="checkbox" id="collapse-section2" checked aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V1.0.0 / 12-September-2022</strong></label>
5050
<div>
5151
<h2 id="main-changes">Main changes</h2>
5252
<h3 id="first-release-alpha-release-beta-release-maintenance-release-patch-release-product-update-maintenance-release-and-product-update-component-release">First release</h3>
@@ -69,6 +69,32 @@ <h2 id="dependencies-1">Dependencies</h2>
6969
</ul>
7070
</div>
7171
</div>
72+
<div class="collapse">
73+
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true"><strong>V1.1.0 / 14-October-2022</strong></label>
74+
<div>
75+
<h2 id="main-changes">Main changes</h2>
76+
<ul>
77+
<li>Modified code to reach MISRA C:2012 compliancy</li>
78+
<li>Enabled compiler warnings in template and examples</li>
79+
<li>Updated prebuilt files with ISPU-Toolchain 1.1.0</li>
80+
<li>Miscellanous fixes and improvements</li>
81+
</ul>
82+
<h2 id="development-toolchains-and-compilers-1">Development toolchains and compilers</h2>
83+
<ul>
84+
<li>ISPU-Toolchain 1.1.0</li>
85+
</ul>
86+
<h2 id="supported-devices-and-boards-1">Supported devices</h2>
87+
<ul>
88+
<li>ISM330IS</li>
89+
<li>LSM6DSO16IS</li>
90+
</ul>
91+
<h2 id="dependencies-1">Dependencies</h2>
92+
<p></p>
93+
<ul>
94+
<li>ISPU-Toolchain or equivalent Eclipse plugin needed in order to re-build the included code (see <a href="README.md">README.md</a> for more information)</li>
95+
</ul>
96+
</div>
97+
</div>
7298
</div>
7399
</div>
74100
<footer class="sticky">

Ispu/_htmresc/Add button.svg

Lines changed: 2 additions & 0 deletions
Loading

Ispu/_htmresc/Update.svg

Lines changed: 2 additions & 0 deletions
Loading

Ispu/ism330is_lsm6dso16is/acc_calibration/ispu/eclipse/.cproject

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
<option id="ilg.gnumcueclipse.managedbuild.cross.stred.option.target.isa.base.489343866" name="Architecture" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.option.target.isa.base" useByScannerDiscovery="false" value="ilg.gnumcueclipse.managedbuild.cross.stred.option.target.arch.rv32i" valueType="enumerated"/>
4242
<option id="ilg.gnumcueclipse.managedbuild.cross.stred.option.target.other.1069676682" name="Other target flags" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.option.target.other" useByScannerDiscovery="true" value="-mfp32-format=ieee" valueType="string"/>
4343
<option id="ilg.gnumcueclipse.managedbuild.cross.stred.option.toolchain.id.1081027684" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.option.toolchain.id" useByScannerDiscovery="false" value="2021938052" valueType="string"/>
44+
<option id="ilg.gnumcueclipse.managedbuild.cross.stred.option.warnings.allwarn.223555264" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.option.warnings.allwarn" useByScannerDiscovery="true" value="true" valueType="boolean"/>
45+
<option id="ilg.gnumcueclipse.managedbuild.cross.stred.option.warnings.extrawarn.632165422" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.option.warnings.extrawarn" useByScannerDiscovery="true" value="true" valueType="boolean"/>
46+
<option id="ilg.gnumcueclipse.managedbuild.cross.stred.option.warnings.other.650538247" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.option.warnings.other" useByScannerDiscovery="true" value="-Wdouble-promotion -fno-strict-aliasing" valueType="string"/>
4447
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="ilg.gnumcueclipse.managedbuild.cross.stred.targetPlatform.1705050762" isAbstract="false" osList="all" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.targetPlatform"/>
4548
<builder buildPath="${workspace_loc:/ispu}/Release" id="ilg.gnumcueclipse.managedbuild.cross.stred.builder.228455748" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.builder"/>
4649
<tool id="ilg.gnumcueclipse.managedbuild.cross.stred.tool.assembler.451835722" name="GNU STRED Cross Assembler" superClass="ilg.gnumcueclipse.managedbuild.cross.stred.tool.assembler">
@@ -114,11 +117,7 @@
114117
</scannerConfigBuildInfo>
115118
</storageModule>
116119
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
117-
<storageModule moduleId="refreshScope" versionNumber="2">
118-
<configuration configurationName="release">
119-
<resource resourceType="PROJECT" workspacePath="/ispu"/>
120-
</configuration>
121-
</storageModule>
120+
<storageModule moduleId="refreshScope"/>
122121
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
123122
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
124-
</cproject>
123+
</cproject>

Ispu/ism330is_lsm6dso16is/acc_calibration/ispu/ispu_utils/peripherals.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
******************************************************************************
1313
*/
1414

15-
#ifndef _PERIPHERALS_H_
16-
#define _PERIPHERALS_H_
15+
#ifndef PERIPHERALS_H
16+
#define PERIPHERALS_H
1717

1818
#include <stdint.h>
19+
#include <stdbool.h>
1920

2021
#define cast_uint32_t(add) (*((volatile uint32_t *)(add))) /* to read/write an unsigned 32 bit integer */
2122
#define cast_uint16_t(add) (*((volatile uint16_t *)(add))) /* to read/write an unsigned 16 bit integer */
@@ -27,7 +28,7 @@
2728

2829
#define cast_float(add) (*((volatile float *)(add))) /* to read/write a float 32 bit value */
2930

30-
#define stop_and_wait_start_pulse do { STOP_CLOCK; asm(""); } while (0)
31+
#define stop_and_wait_start_pulse do { STOP_CLOCK; asm(""); } while (false)
3132

3233
extern volatile uint8_t STOP_CLOCK;
3334

0 commit comments

Comments
 (0)