Skip to content

Commit 904b6ff

Browse files
stbennxiaoxiang781216
authored andcommitted
H5 with NSH support for Nucleo-H563ZI.
Made fixes to issues from CI. Nxstyle and defconfig syntax. This is a combination of 6 commits. Adding STM32H5 arch files. With comments addressed. Created stm32h5 directory to add support for the H5 chip, and used a Nucleo-H563ZI dev board during development. The goal was to get a working nutshell through the STLink connector on the board. Remove board/docs changes for PR update. Squash commits into one for PR guideline conformity. trying to fix build issues Fix format from review Nucleo-H563ZI support for NSH. Created stm32h5 directory to add support for the H5 chip, and used a Nucleo-H563ZI dev board during development. The goal was to get a working nutshell through the STLink connector on the board. Fix switch default case placement. NXstyle fixes Renaming files rename stm32h5_gpio.x files rename h5 hsi48 files Rename h5 idle file rename stm32h5_irq.c Rename some rcc functions and stm32h5_rcc.c rename stm32h5_rcc.h Rename stm32h5_pwr.x lowputc renames timerisr renames uart renamed rename serial file rename start Turn off the defines that enable DMA on serial remove DMA Kconfig options Remove H5 documentation. Will add in a future PR. Fix styling and defconfig improper syntax.
1 parent c498991 commit 904b6ff

Some content is hidden

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

41 files changed

+12004
-1
lines changed

arch/arm/src/stm32h5/Kconfig

+894
Large diffs are not rendered by default.

arch/arm/src/stm32h5/Make.defs

+23
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,26 @@ HEAD_ASRC =
2626
# Common ARM and Cortex-M4 files (copied from stm32/Make.defs)
2727

2828
include armv8-m/Make.defs
29+
30+
# Required STM32H5 files
31+
32+
CHIP_ASRCS =
33+
CHIP_CSRCS = stm32_gpio.c
34+
CHIP_CSRCS += stm32_irq.c stm32_lowputc.c stm32_rcc.c
35+
CHIP_CSRCS += stm32_serial.c stm32_start.c
36+
CHIP_CSRCS += stm32_pwr.c stm32_timerisr.c
37+
CHIP_CSRCS += stm32_lse.c stm32_lsi.c
38+
39+
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
40+
CHIP_CSRCS += stm32_idle.c
41+
endif
42+
43+
ifeq ($(CONFIG_TIMER),y)
44+
CHIP_CSRCS += stm32h5_tim_lowerhalf.c
45+
endif
46+
47+
# Required chip type specific files
48+
49+
ifeq ($(CONFIG_STM32H5_STM32H5XXXX),y)
50+
CHIP_CSRCS += stm32h5xx_rcc.c
51+
endif

arch/arm/src/stm32h5/stm32.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,10 @@
3636

3737
#include "chip.h"
3838
#include "stm32_flash.h"
39-
39+
#include "stm32_dbgmcu.h"
40+
#include "stm32_gpio.h"
41+
#include "stm32_pwr.h"
42+
#include "stm32_rcc.h"
43+
#include "stm32_uart.h"
44+
#include "stm32_lowputc.h"
4045
#endif /* __ARCH_ARM_SRC_STM32H5_STM32_H */

arch/arm/src/stm32h5/stm32_dbgmcu.h

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/****************************************************************************
2+
* arch/arm/src/stm32h5/stm32_dbgmcu.h
3+
*
4+
* Licensed to the Apache Software Foundation (ASF) under one or more
5+
* contributor license agreements. See the NOTICE file distributed with
6+
* this work for additional information regarding copyright ownership. The
7+
* ASF licenses this file to you under the Apache License, Version 2.0 (the
8+
* "License"); you may not use this file except in compliance with the
9+
* License. You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
* License for the specific language governing permissions and limitations
17+
* under the License.
18+
*
19+
****************************************************************************/
20+
21+
#ifndef __ARCH_ARM_SRC_STM32H5_STM32_DBGMCU_H
22+
#define __ARCH_ARM_SRC_STM32H5_STM32_DBGMCU_H
23+
24+
/****************************************************************************
25+
* Included Files
26+
****************************************************************************/
27+
28+
#include <nuttx/config.h>
29+
30+
#include "chip.h"
31+
32+
#if defined(CONFIG_STM32H5_STM32H5XXXX)
33+
# include "hardware/stm32_dbgmcu.h"
34+
#else
35+
# error "Unsupported STM32H5 chip"
36+
#endif
37+
38+
#endif /* __ARCH_ARM_SRC_STM32H5_STM32_DBGMCU_H */

0 commit comments

Comments
 (0)