Skip to content

Commit

Permalink
boards/stm32h7: Add initial support to WeAct STM32H743
Browse files Browse the repository at this point in the history
Signed-off-by: Alan C. Assis <[email protected]>
  • Loading branch information
acassis committed May 11, 2024
1 parent bc022f8 commit 3d48694
Show file tree
Hide file tree
Showing 18 changed files with 1,440 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
===============
weact-stm32h743
===============

This page discusses issues unique to NuttX configurations for the
WeAct STM32H743 board.

.. figure:: weact-stm32h743.png
:align: center

Board information
=================

This board was release by WeAct Studio in 2020 and developed based on
STM32H743VI microcontroller.

The board features:
- USB-C power supply
- SWD connector
- Crystal for HS 25MHz
- Crystal for RTC 32.768KHz
- 1 user LED
- 1 MicroSD connector supporting 1 or 4-bit bus
- 1 USB 2.0 Host/Device
- 2 SPI Flash
- 1 OLED display
- 1 Camera

Board documentation: https://github.com/WeActStudio/MiniSTM32H7xx

BOARD-LED
=========

The WeAct STM32H743 has 1 software controllable LED.

==== =====
LED PINS
==== =====
E3 PE3
==== =====

UART/USART
==========

The WeAct STM32H743 used the USART1 for serial debug messages.

USART1
------

====== =====
USART1 PINS
====== =====
TX PB14
RX PB15
====== =====

==============

Each weact-stm32h743 configuration is maintained in a sub-directory and
can be selected as follow::

tools/configure.sh weact-stm32h743:<subdir>

Where <subdir> is one of the following:


Configuration Directories
-------------------------

nsh
---

Configures the NuttShell (nsh) located at apps/examples/nsh. This
configuration enables a serial console on UART1.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions boards/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1716,6 +1716,15 @@ config ARCH_BOARD_NUCLEO_G071RB
This is a minimal configuration that supports low-level test of the
Nucleo G071RB in the NuttX source tree.

config ARCH_BOARD_WEACT_STM32H743
bool "WeAct Studio STM32H743"
depends on ARCH_CHIP_STM32H743VI
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS
---help---
This is WeAct MiniSTM32H7xx (STM32H743VIT6) board.

config ARCH_BOARD_NUCLEO_H743ZI
bool "STM32H743 Nucleo H743ZI"
depends on ARCH_CHIP_STM32H743ZI
Expand Down Expand Up @@ -3287,6 +3296,7 @@ config ARCH_BOARD
default "stm32g071b-disco" if ARCH_BOARD_STM32G071B_DISCO
default "nucleo-g070rb" if ARCH_BOARD_NUCLEO_G070RB
default "nucleo-g071rb" if ARCH_BOARD_NUCLEO_G071RB
default "weact-stm32h743" if ARCH_BOARD_WEACT_STM32H743
default "nucleo-h743zi" if ARCH_BOARD_NUCLEO_H743ZI
default "nucleo-h743zi2" if ARCH_BOARD_NUCLEO_H743ZI2
default "nucleo-h745zi" if ARCH_BOARD_NUCLEO_H745ZI
Expand Down Expand Up @@ -3921,6 +3931,9 @@ endif
if ARCH_BOARD_STM32H747I_DISCO
source "boards/arm/stm32h7/stm32h747i-disco/Kconfig"
endif
if ARCH_BOARD_WEACT_STM32H743
source "boards/arm/stm32h7/weact-stm32h743/Kconfig"
endif
if ARCH_BOARD_NUCLEO_H743ZI
source "boards/arm/stm32h7/nucleo-h743zi/Kconfig"
endif
Expand Down
21 changes: 21 additions & 0 deletions boards/arm/stm32h7/weact-stm32h743/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ##############################################################################
# boards/arm/stm32h7/nucleo-h743zi/CMakeLists.txt
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################

add_subdirectory(src)
8 changes: 8 additions & 0 deletions boards/arm/stm32h7/weact-stm32h743/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

if ARCH_BOARD_WEACT_STM32H743

endif # ARCH_BOARD_WEACT_STM32H743
50 changes: 50 additions & 0 deletions boards/arm/stm32h7/weact-stm32h743/configs/nsh/defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# This file is autogenerated: PLEASE DO NOT EDIT IT.
#
# You can use "make menuconfig" to make any modifications to the installed .config file.
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
# CONFIG_NSH_DISABLE_IFCONFIG is not set
# CONFIG_NSH_DISABLE_PS is not set
# CONFIG_STANDARD_SERIAL is not set
# CONFIG_STM32H7_USE_LEGACY_PINMAP is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="weact-stm32h743"
CONFIG_ARCH_BOARD_WEACT_STM32H743=y
CONFIG_ARCH_CHIP="stm32h7"
CONFIG_ARCH_CHIP_STM32H743VI=y
CONFIG_ARCH_CHIP_STM32H7=y
CONFIG_ARCH_CHIP_STM32H7_CORTEXM7=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_DCACHE=y
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
CONFIG_ARMV7M_DTCM=y
CONFIG_ARMV7M_ICACHE=y
CONFIG_BOARD_LOOPSPERMSEC=43103
CONFIG_BUILTIN=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_EXPERIMENTAL=y
CONFIG_HAVE_CXX=y
CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_MM_REGIONS=4
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_FILEIOSIZE=512
CONFIG_NSH_LINELEN=64
CONFIG_NSH_READLINE=y
CONFIG_PREALLOC_TIMERS=4
CONFIG_RAM_SIZE=245760
CONFIG_RAM_START=0x20010000
CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_SCHED_WAITPID=y
CONFIG_SPI=y
CONFIG_START_DAY=11
CONFIG_START_MONTH=5
CONFIG_START_YEAR=2024
CONFIG_STM32H7_USART1=y
CONFIG_SYSTEM_NSH=y
CONFIG_TASK_NAME_SIZE=0
CONFIG_USART1_SERIAL_CONSOLE=y
Loading

0 comments on commit 3d48694

Please sign in to comment.