Skip to content

Commit b1aeb25

Browse files
authored
Merge pull request #1230 from fpistm/updateMP1
Update STM32MP1 HAL and CMSIS drivers
2 parents 035bfa3 + 2375e8c commit b1aeb25

File tree

72 files changed

+266899
-80778
lines changed

Some content is hidden

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

72 files changed

+266899
-80778
lines changed

CI/utils/stm32wrapper.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ def printCMSISStartup(log):
131131
# File name
132132
fn = os.path.basename(fp)
133133
valueline = re.split("_|\\.", fn)
134-
upper = (
135-
valueline[1].upper().replace("X", "x").replace("MP15xx", "MP1xx")
136-
)
134+
if "stm32mp15" in valueline[1] and not valueline[1].endswith("xx"):
135+
valueline[1] += "xx"
136+
upper = valueline[1].upper().replace("X", "x")
137137
out_file.write(
138138
""" #elif defined({})
139139
#define CMSIS_STARTUP_FILE \"{}\"

cores/arduino/stm32/stm32_def_build.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,19 @@
378378
#define CMSIS_STARTUP_FILE "startup_stm32l4s7xx.s"
379379
#elif defined(STM32L4S9xx)
380380
#define CMSIS_STARTUP_FILE "startup_stm32l4s9xx.s"
381-
#elif defined(STM32MP1xx)
381+
#elif defined(STM32MP151Axx)
382+
#define CMSIS_STARTUP_FILE "startup_stm32mp151a_cm4 .s"
383+
#elif defined(STM32MP151Cxx)
384+
#define CMSIS_STARTUP_FILE "startup_stm32mp151c_cm4.s"
385+
#elif defined(STM32MP153Axx)
386+
#define CMSIS_STARTUP_FILE "startup_stm32mp153a_cm4.s"
387+
#elif defined(STM32MP153Cxx)
388+
#define CMSIS_STARTUP_FILE "startup_stm32mp153c_cm4.s"
389+
#elif defined(STM32MP157Axx)
390+
#define CMSIS_STARTUP_FILE "startup_stm32mp157a_cm4.s"
391+
#elif defined(STM32MP157Cxx)
392+
#define CMSIS_STARTUP_FILE "startup_stm32mp157c_cm4.s"
393+
#elif defined(STM32MP15xx)
382394
#define CMSIS_STARTUP_FILE "startup_stm32mp15xx.s"
383395
#elif defined(STM32WB30xx)
384396
#define CMSIS_STARTUP_FILE "startup_stm32wb30xx_cm4.s"

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard.c

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
#ifdef STM32L4xx
3535
#include "stm32l4xx_hal_smartcard.c"
3636
#endif
37+
#ifdef STM32MP1xx
38+
#include "stm32mp1xx_hal_smartcard.c"
39+
#endif
3740
#ifdef STM32WBxx
3841
#include "stm32wbxx_hal_smartcard.c"
3942
#endif

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard_ex.c

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#ifdef STM32L4xx
2323
#include "stm32l4xx_hal_smartcard_ex.c"
2424
#endif
25+
#ifdef STM32MP1xx
26+
#include "stm32mp1xx_hal_smartcard_ex.c"
27+
#endif
2528
#ifdef STM32WBxx
2629
#include "stm32wbxx_hal_smartcard_ex.c"
2730
#endif

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151axx_ca7.h

+10,609-3,225
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151axx_cm4.h

+10,607-3,223
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151cxx_ca7.h

+10,612-3,240
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151cxx_cm4.h

+10,610-3,238
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151dxx_ca7.h

+10,609-3,225
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151dxx_cm4.h

+10,607-3,223
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151fxx_ca7.h

+10,612-3,240
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp151fxx_cm4.h

+10,610-3,238
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153axx_ca7.h

+10,615-3,245
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153axx_cm4.h

+10,613-3,243
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153cxx_ca7.h

+10,618-3,260
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153cxx_cm4.h

+10,616-3,258
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153dxx_ca7.h

+10,615-3,245
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153dxx_cm4.h

+10,613-3,243
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153fxx_ca7.h

+10,618-3,260
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp153fxx_cm4.h

+10,616-3,258
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157axx_ca7.h

+10,617-3,268
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157axx_cm4.h

+10,615-3,266
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157cxx_ca7.h

+10,620-3,283
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157cxx_cm4.h

+10,618-3,281
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157dxx_ca7.h

+10,617-3,268
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157dxx_cm4.h

+10,615-3,266
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157fxx_ca7.h

+10,620-3,283
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp157fxx_cm4.h

+10,618-3,281
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Include/stm32mp1xx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* @brief CMSIS Device version number
7171
*/
7272
#define __STM32MP1xx_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
73-
#define __STM32MP1xx_CMSIS_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
73+
#define __STM32MP1xx_CMSIS_VERSION_SUB1 (0x03U) /*!< [23:16] sub1 version */
7474
#define __STM32MP1xx_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
7575
#define __STM32MP1xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
7676
#define __STM32MP1xx_CMSIS_VERSION ((__CMSIS_DEVICE_VERSION_MAIN << 24)\

system/Drivers/CMSIS/Device/ST/STM32MP1xx/Release_Notes.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ <h2>License</h2>
163163
</div>
164164
<div id="release_container" class="topic1">
165165
<div class="topic2" id="identification">
166-
<h3 style="width: 230px;">V1.2.0 / 03-Feb-2020</h3>
166+
<h3 style="width: 230px;">V1.3.0 / 20-oct-2020</h3>
167167
</div>
168168
<div style="margin-left: 20px; width: 974px;" class="topic3" id="changes">
169169
<h4>Main changes</h4>
170-
<ul><li>Header files:&nbsp;</li><ul><li>Add new Part Number for 800MHz</li><li>Update license with BSD 3-Clause template</li><li>Rework CMSIS for RTC/TAMP, GPIO and TIM</li><li>Rename TIM Break source bit definition</li></ul></ul><ul><li>Update Linker Template&nbsp;file for KEIL and IAR:</li><ul><li>Add OpenAMP region ( region present by default, to comment if needed )</li></ul></ul><br>
170+
<ul><li>Header files:&nbsp;</li><ul><li>Rename&nbsp;&nbsp;RCC bit definition&nbsp;to be more compliant with the name from RCC spec</li></ul></ul><ul><ul><li>Update STGEN register structure</li><li>Fix typo in MDMA register definition</li></ul></ul><br>
171171
</div>
172172
<div class="topic3" id="contents">
173173
<h4>Contents</h4>
@@ -181,7 +181,13 @@ <h4>Contents</h4>
181181
</div>
182182
<div id="history" class="topic1" hidden="">
183183
<h2>Update History</h2>
184-
<br><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; margin-left: 26px; width: 174px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V1.1.0 / 10-Sept-2019</span><br></h3><div style="margin-left: 40px; width: 954px;" class="topic3" id="changes">
184+
<br><br><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; margin-left: 26px; width: 174px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V1.2.0 / 03-Feb-2020</span><br></h3><div style="margin-left: 40px; width: 954px;" class="topic3" id="changes">
185+
<h4>Main changes</h4>
186+
<ul><li>Header files:&nbsp;</li><ul><li>Add new Part Number for 800MHz</li><li>Update license with BSD 3-Clause template</li><li>Rework CMSIS for RTC/TAMP, GPIO and TIM</li><li>Rename TIM Break source bit definition</li></ul><li>Update Linker Template&nbsp;file for KEIL and IAR:</li><ul><li>Add OpenAMP region ( region present by default, to comment if needed )</li></ul></ul></div><div style="margin-left: 40px; width: 954px;" class="topic3" id="changes">
187+
<h4>Contents</h4>
188+
<ul><li>CMSIS devices files for STM32MP<span style="font-weight: bold;">151C</span>xx ,STM32MP<span style="font-weight: bold;">151A</span>xx, STM32MP<span style="font-weight: bold;">153C</span>xx, STM32MP<span style="font-weight: bold;">153A</span>xx, STM32MP<span style="font-weight: bold;">157C</span>xx ,STM32MP<span style="font-weight: bold;">157A</span>xx</li></ul>
189+
<br>
190+
</div><br><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; margin-left: 26px; width: 174px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V1.1.0 / 10-Sept-2019</span><br></h3><div style="margin-left: 40px; width: 954px;" class="topic3" id="changes">
185191
<h4>Main changes</h4>
186192
<ul><li>Header files:&nbsp;</li><ul><li>Update FMC bit definition</li><li>Update ETH&nbsp;bit definition</li><li>update EXTI_EXTICR&nbsp;bit definition</li><li>Update I2C&nbsp;bit definition</li><li>Update SPI&nbsp;bit definition (SPI_CR1_CRC33_17, SPI_RXCRC, SPI_IER, SPI_I2SCFGR)&nbsp;</li><li>TMPSENS IP renamed DTS</li><li>Update FDCAN TXBC&nbsp;bit definition</li><li>Update DAC_DHR8RD&nbsp;bit definition</li><li>Add CRYP in STM32MP151Cx and STM32MP153Cx</li><li>Update TIM / LPTIM&nbsp;bit definition + add missing macros</li></ul><li>Update system_stm32mp1xx.c</li><ul><li>Update SystemCoreClock</li></ul><li>Update startup file for KEIL and IAR</li></ul></div><div style="margin-left: 40px; width: 954px;" class="topic3" id="changes">
187193
<h4>Contents</h4>

0 commit comments

Comments
 (0)