Skip to content

Commit 85d2724

Browse files
jankoernersalkinium
authored andcommitted
[board] added nucleo-h753zi board support
1 parent 1b0cfd2 commit 85d2724

3 files changed

Lines changed: 72 additions & 7 deletions

File tree

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -886,41 +886,42 @@ We have out-of-box support for many development boards including documentation.
886886
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-h743zi">NUCLEO-H743ZI</a></td>
887887
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-h743zi2">NUCLEO-H743ZI2</a></td>
888888
</tr><tr>
889+
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-h753zi">NUCLEO-H753ZI</a></td>
889890
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l031k6">NUCLEO-L031K6</a></td>
890891
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l053r8">NUCLEO-L053R8</a></td>
891892
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l152re">NUCLEO-L152RE</a></td>
892-
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l432kc">NUCLEO-L432KC</a></td>
893893
</tr><tr>
894+
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l432kc">NUCLEO-L432KC</a></td>
894895
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l452re">NUCLEO-L452RE</a></td>
895896
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l476rg">NUCLEO-L476RG</a></td>
896897
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l496zg-p">NUCLEO-L496ZG-P</a></td>
897-
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l552ze-q">NUCLEO-L552ZE-Q</a></td>
898898
</tr><tr>
899+
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-l552ze-q">NUCLEO-L552ZE-Q</a></td>
899900
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-u083rc">NUCLEO-U083RC</a></td>
900901
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-u385rg-q">NUCLEO-U385RG-Q</a></td>
901902
<td align="center"><a href="https://modm.io/reference/config/modm-nucleo-u575zi-q">NUCLEO-U575ZI-Q</a></td>
902-
<td align="center"><a href="https://modm.io/reference/config/modm-olimexino-stm32">OLIMEXINO-STM32</a></td>
903903
</tr><tr>
904+
<td align="center"><a href="https://modm.io/reference/config/modm-olimexino-stm32">OLIMEXINO-STM32</a></td>
904905
<td align="center"><a href="https://modm.io/reference/config/modm-rp-pico">Raspberry Pi Pico</a></td>
905906
<td align="center"><a href="https://modm.io/reference/config/modm-samd21-mini">SAMD21-MINI</a></td>
906907
<td align="center"><a href="https://modm.io/reference/config/modm-samd21-xplained-pro">SAMD21-XPLAINED-PRO</a></td>
907-
<td align="center"><a href="https://modm.io/reference/config/modm-same54-xplained-pro">SAME54-XPLAINED-PRO</a></td>
908908
</tr><tr>
909+
<td align="center"><a href="https://modm.io/reference/config/modm-same54-xplained-pro">SAME54-XPLAINED-PRO</a></td>
909910
<td align="center"><a href="https://modm.io/reference/config/modm-same70-xplained">SAME70-XPLAINED</a></td>
910911
<td align="center"><a href="https://modm.io/reference/config/modm-samg55-xplained-pro">SAMG55-XPLAINED-PRO</a></td>
911912
<td align="center"><a href="https://modm.io/reference/config/modm-samv71-xplained-ultra">SAMV71-XPLAINED-ULTRA</a></td>
912-
<td align="center"><a href="https://modm.io/reference/config/modm-srxe">Smart Response XE</a></td>
913913
</tr><tr>
914+
<td align="center"><a href="https://modm.io/reference/config/modm-srxe">Smart Response XE</a></td>
914915
<td align="center"><a href="https://modm.io/reference/config/modm-stm32_f4ve">STM32-F4VE</a></td>
915916
<td align="center"><a href="https://modm.io/reference/config/modm-stm32f030_demo">STM32F030-DEMO</a></td>
916917
<td align="center"><a href="https://modm.io/reference/config/modm-thingplus-rp2040">THINGPLUS-RP2040</a></td>
917-
<td align="center"><a href="https://modm.io/reference/config/modm-weact-c011f6">WEACT-C011F6</a></td>
918918
</tr><tr>
919+
<td align="center"><a href="https://modm.io/reference/config/modm-weact-c011f6">WEACT-C011F6</a></td>
919920
<td align="center"><a href="https://modm.io/reference/config/modm-weact-g0b1cb">WEACT-G0B1CB</a></td>
920921
<td align="center"><a href="https://modm.io/reference/config/modm-weact-h503cb">WEACT-H503CB</a></td>
921922
<td align="center"><a href="https://modm.io/reference/config/modm-weact-h523ce">WEACT-H523CE</a></td>
922-
<td align="center"><a href="https://modm.io/reference/config/modm-weact-h562rg">WEACT-H562RG</a></td>
923923
</tr><tr>
924+
<td align="center"><a href="https://modm.io/reference/config/modm-weact-h562rg">WEACT-H562RG</a></td>
924925
<td align="center"><a href="https://modm.io/reference/config/modm-weact-u585ci">WEACT-U585CI</a></td>
925926
</tr>
926927
</table>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<library>
2+
<repositories>
3+
<repository>
4+
<path>../../../../repo.lb</path>
5+
</repository>
6+
</repositories>
7+
8+
<options>
9+
<option name="modm:target">stm32h753zit6</option>
10+
</options>
11+
<modules>
12+
<module>modm:board:nucleo-h753zi</module>
13+
</modules>
14+
</library>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright (c) 2016-2018, Niklas Hauser
5+
# Copyright (c) 2017, Fabian Greif
6+
#
7+
# This file is part of the modm project.
8+
#
9+
# This Source Code Form is subject to the terms of the Mozilla Public
10+
# License, v. 2.0. If a copy of the MPL was not distributed with this
11+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
12+
# -----------------------------------------------------------------------------
13+
14+
def init(module):
15+
module.name = ":board:nucleo-h753zi"
16+
module.description = """\
17+
# NUCLEO-H753ZI
18+
19+
[Nucleo kit for STM32H753ZI](https://www.st.com/en/evaluation-tools/nucleo-h753zi.html)
20+
21+
Please note that this BSP uses the V revision of the STM32H753.
22+
"""
23+
24+
def prepare(module, options):
25+
if not options[":target"].partname.startswith("stm32h753zit"):
26+
return False
27+
28+
module.depends(
29+
":debug",
30+
":architecture:clock",
31+
":platform:core",
32+
":platform:gpio",
33+
":platform:clock",
34+
":platform:uart:3",
35+
":platform:usb:fs")
36+
37+
return True
38+
39+
def build(env):
40+
env.outbasepath = "modm/src/modm/board"
41+
env.substitutions = {
42+
"with_logger": True,
43+
"with_assert": env.has_module(":architecture:assert"),
44+
"board" : "nucleo-h753zi"
45+
}
46+
47+
env.template("../board.cpp.in", "board.cpp")
48+
env.template("../nucleo_h743zi/board.hpp.in", "board.hpp")
49+
env.copy("../nucleo144_arduino.hpp", "nucleo144_arduino.hpp")
50+
env.collect(":build:openocd.source", "board/st_nucleo_h743zi.cfg")

0 commit comments

Comments
 (0)