boards: st: add nucleo_h503rb support
Add board support for nucleo_h503rb. STM32CubeProgrammer and pyocd are supported as runner. The following samples were tested: - samples/hello_world - samples/basic/blinky - samples/basic/button - samples/subsys/task_wdt Signed-off-by: Sandra Schmidt <sandra.schmidt@arrow.com>
This commit is contained in:
parent
7ab625c43b
commit
a5a57d829e
11 changed files with 603 additions and 0 deletions
5
boards/st/nucleo_h503rb/Kconfig.nucleo_h503rb
Normal file
5
boards/st/nucleo_h503rb/Kconfig.nucleo_h503rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) 2024 Arrow Electronics.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_NUCLEO_H503RB
|
||||
select SOC_STM32H503XX
|
40
boards/st/nucleo_h503rb/arduino_r3_connector.dtsi
Normal file
40
boards/st/nucleo_h503rb/arduino_r3_connector.dtsi
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Arrow Electronics.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
arduino_header: connector {
|
||||
compatible = "arduino-header-r3";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map = <0 0 &gpioa 0 0>, /* A0 */
|
||||
<1 0 &gpioa 1 0>, /* A1 */
|
||||
<2 0 &gpioa 2 0>, /* A2 */
|
||||
<3 0 &gpiob 0 0>, /* A3 */
|
||||
<4 0 &gpioc 1 0>, /* A4 */
|
||||
<5 0 &gpioc 0 0>, /* A5 */
|
||||
<6 0 &gpiob 15 0>, /* D0 */
|
||||
<7 0 &gpiob 14 0>, /* D1 */
|
||||
<8 0 &gpioa 10 0>, /* D2 */
|
||||
<9 0 &gpiob 3 0>, /* D3 */
|
||||
<10 0 &gpiob 5 0>, /* D4 */
|
||||
<11 0 &gpiob 4 0>, /* D5 */
|
||||
<12 0 &gpiob 10 0>, /* D6 */
|
||||
<13 0 &gpioa 8 0>, /* D7 */
|
||||
<14 0 &gpioc 7 0>, /* D8 */
|
||||
<15 0 &gpioc 6 0>, /* D9 */
|
||||
<16 0 &gpioc 9 0>, /* D10 */
|
||||
<17 0 &gpioa 7 0>, /* D11 */
|
||||
<18 0 &gpioa 6 0>, /* D12 */
|
||||
<19 0 &gpioa 5 0>, /* D13 */
|
||||
<20 0 &gpiob 7 0>, /* D14 */
|
||||
<21 0 &gpiob 6 0>; /* D15 */
|
||||
};
|
||||
};
|
||||
|
||||
arduino_serial: &usart1 {};
|
||||
arduino_i2c: &i2c1 {};
|
||||
/* arduino_spi (SPI1) uses PA5, to which the user LED is connected */
|
14
boards/st/nucleo_h503rb/board.cmake
Normal file
14
boards/st/nucleo_h503rb/board.cmake
Normal file
|
@ -0,0 +1,14 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
||||
|
||||
board_runner_args(openocd "--tcl-port=6666")
|
||||
board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable")
|
||||
board_runner_args(openocd "--no-halt")
|
||||
|
||||
board_runner_args(pyocd "--target=stm32h503rbtx")
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
# FIXME: official openocd runner not yet available.
|
8
boards/st/nucleo_h503rb/board.yml
Normal file
8
boards/st/nucleo_h503rb/board.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2024 Arrow Electronics.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board:
|
||||
name: nucleo_h503rb
|
||||
vendor: st
|
||||
socs:
|
||||
- name: stm32h503xx
|
BIN
boards/st/nucleo_h503rb/doc/img/nucleo_h503rb.png
Normal file
BIN
boards/st/nucleo_h503rb/doc/img/nucleo_h503rb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
287
boards/st/nucleo_h503rb/doc/index.rst
Normal file
287
boards/st/nucleo_h503rb/doc/index.rst
Normal file
|
@ -0,0 +1,287 @@
|
|||
.. _nucleo_h503rb_board:
|
||||
|
||||
ST Nucleo H503RB
|
||||
################
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
The Nucleo-H503RB board features an ARM |reg| Cortex |reg|-M33 core-based
|
||||
STM32H503RBT6 microcontroller with a wide range of connectivity support and
|
||||
configurations.
|
||||
Here are some highlights of the Nucleo-H503RB board:
|
||||
|
||||
- STM32H503RB microcontroller featuring 128 Kbytes of Flash memory and 32 Kbytes of
|
||||
SRAM in LQFP64 package
|
||||
|
||||
- Board connectors:
|
||||
|
||||
- User USB Type-C |reg|
|
||||
- MIPI10 for debugging (SWD/JTAG)
|
||||
- Arduino |reg| Uno V3 connectivity (CN5, CN6, CN8, CN9)
|
||||
- ST morpho extension connector (CN7, CN10)
|
||||
|
||||
- Flexible board power supply:
|
||||
|
||||
- ST-LINK USB VBUS
|
||||
- user USB connector
|
||||
- external sources
|
||||
|
||||
- On-board ST-LINK/V3EC debugger/programmer:
|
||||
|
||||
- mass storage
|
||||
- Virtual COM port
|
||||
- debug port
|
||||
|
||||
- One user LED shared with ARDUINO |reg| Uno V3
|
||||
- Two push-buttons: USER and RESET
|
||||
- 32.768 kHz crystal oscillator
|
||||
- 24 MHz HSE crystal oscillator
|
||||
|
||||
More information about the board can be found at the `NUCLEO_H503RB website`_.
|
||||
|
||||
.. image:: img/nucleo_h503rb.png
|
||||
:align: center
|
||||
:alt: NUCLEO-H503RB
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
The STM32H503xx devices are a high-performance microcontrollers family
|
||||
(STM32H5 series) based on the high-performance Arm |reg| Cortex |reg|-M33 32-bit
|
||||
RISC core. They operate at a frequency of up to 250 MHz.
|
||||
|
||||
- Core: Arm |reg| Cortex |reg|-M33 CPU with FPU, MPU, 375 DMIPS (Dhrystone 2.1),
|
||||
and DSP instructions
|
||||
- ART Accelerator
|
||||
|
||||
- Memories
|
||||
|
||||
- 128 Kbytes of embedded flash memory with ECC, two banks of read-while-write
|
||||
- 2-Kbyte OTP (one-time programmable)
|
||||
- 32-Kbyte SRAM with ECC
|
||||
- 2 Kbytes of backup SRAM (available in the lowest power modes)
|
||||
|
||||
- Clock management
|
||||
|
||||
- Internal oscillators: 64 MHz HSI, 48 MHz HSI48, 4 MHz CSI, 32 kHz LSI
|
||||
- Two PLLs for system clock, USB, audio, and ADC
|
||||
- External oscillators: 4 to 50 MHz HSE, 32.768 kHz LSE
|
||||
|
||||
- Embedded regulator (LDO)
|
||||
- Up to 49 fast I/Os (most 5 V tolerant), up to 9 I/Os with independent supply down to 1.08 V
|
||||
|
||||
- Analog peripherals
|
||||
|
||||
- 1x 12-bit ADC with up to 2.5 MSPS
|
||||
- 1x 12-bit dual-channel DAC
|
||||
- 1x ultra-low-power comparator
|
||||
- 1x operational amplifier (7 MHz bandwidth)
|
||||
|
||||
- 1x Digital temperature sensor
|
||||
|
||||
- Up to 11 timers
|
||||
- 4x 16-bit
|
||||
- 1x 32-bit
|
||||
- 2x 16-bit low-power 16-bit timers (available in Stop mode)
|
||||
- 2x watchdogs
|
||||
- 1x SysTick timer
|
||||
- RTC with HW calendar, alarms and calibration
|
||||
|
||||
- Up to 16x communication interfaces
|
||||
|
||||
- Up to 2x I2Cs FM + interfaces (SMBus/PMBus |reg|)
|
||||
- Up to 2x I3Cs shared with I2C
|
||||
- Up to 3x USARTs (ISO7816 interface, LIN, IrDA, modem control)
|
||||
- 1x LPUART
|
||||
- Up to 3x SPIs including three muxed with full-duplex I2S
|
||||
- Up to 3x additional SPI from 3x USART when configured in synchronous mode
|
||||
- 1x FDCAN
|
||||
- 1x USB 2.0 full-speed host and device
|
||||
|
||||
- Two DMA controllers to offload the CPU
|
||||
|
||||
- Security
|
||||
|
||||
- HASH (SHA-1, SHA-2), HMAC
|
||||
- True random generator
|
||||
- 96-bit unique ID
|
||||
- Active tamper
|
||||
|
||||
- Development support: serial wire debug (SWD) and JTAG interfaces
|
||||
|
||||
More information about STM32H533RE can be found here:
|
||||
|
||||
- `STM32H503rb on www.st.com`_
|
||||
- `STM32H503 reference manual`_
|
||||
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The Zephyr nucleo_h503rb board configuration supports the following hardware features:
|
||||
|
||||
+-----------+------------+-------------------------------------+
|
||||
| Interface | Controller | Driver/Component |
|
||||
+===========+============+=====================================+
|
||||
| CLOCK | on-chip | reset and clock control |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| I2C | on-chip | i2c bus |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| NVIC | on-chip | nested vector interrupt controller |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| PINMUX | on-chip | pinmux |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| RNG | on-chip | True Random number generator |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | serial port-polling; |
|
||||
| | | serial port-interrupt |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| WATCHDOG | on-chip | independent watchdog |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Other hardware features are not yet supported on this Zephyr port.
|
||||
|
||||
The default configuration can be found in the defconfig and dts files:
|
||||
|
||||
- :zephyr_file:`boards/st/nucleo_h503rb/nucleo_h503rb_defconfig`
|
||||
- :zephyr_file:`boards/st/nucleo_h503rb/nucleo_h503rb.dts`
|
||||
|
||||
Connections and IOs
|
||||
===================
|
||||
|
||||
Nucleo-H503RB board has 8 GPIO controllers. These controllers are responsible for pin muxing,
|
||||
input/output, pull-up, etc.
|
||||
|
||||
For more details please refer to `STM32H5 Nucleo-64 board User Manual`_.
|
||||
|
||||
Default Zephyr Peripheral Mapping:
|
||||
----------------------------------
|
||||
|
||||
- USART1 TX/RX : PB14/PB15 (Arduino USART1)
|
||||
- SPI1 SCK/MISO/MOSI/NSS: PA5/PA6/PA7/PC9
|
||||
- USART3 TX/RX : PA3/PA4 (VCP)
|
||||
- USER_PB : PC13
|
||||
- User LED (green): PA5
|
||||
|
||||
System Clock
|
||||
------------
|
||||
|
||||
Nucleo H533RE System Clock could be driven by internal or external oscillator,
|
||||
as well as main PLL clock. By default System clock is driven by PLL clock at
|
||||
240 MHz, driven by an 24 MHz high-speed external clock.
|
||||
|
||||
Serial Port
|
||||
-----------
|
||||
|
||||
Nucleo H533RE board has up to 3 U(S)ARTs. The Zephyr console output is assigned
|
||||
to USART3. Default settings are 115200 8N1.
|
||||
|
||||
Programming and Debugging
|
||||
*************************
|
||||
|
||||
Applications for the ``nucleo_h503rb`` board can be built and
|
||||
flashed in the usual way (see :ref:`build_an_application` and
|
||||
:ref:`application_run` for more details).
|
||||
|
||||
OpenOCD Support
|
||||
===============
|
||||
|
||||
For now, openocd support for stm32h5 is not available on upstream OpenOCD.
|
||||
You can check `OpenOCD official Github mirror`_.
|
||||
In order to use it though, you should clone from the cutomized
|
||||
`STMicroelectronics OpenOCD Github`_ and compile it following usual README guidelines.
|
||||
Once it is done, you can set the OPENOCD and OPENOCD_DEFAULT_PATH variables in
|
||||
:zephyr_file:`boards/st/nucleo_h563zi/board.cmake` to point the build
|
||||
to the paths of the OpenOCD binary and its scripts, before
|
||||
including the common openocd.board.cmake file:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
set(OPENOCD "<path_to_openocd_repo>/src/openocd" CACHE FILEPATH "" FORCE)
|
||||
set(OPENOCD_DEFAULT_PATH <path_to_opneocd_repo>/tcl)
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
|
||||
Flashing
|
||||
========
|
||||
|
||||
Nucleo-H503RB board includes an ST-LINK/V3EC embedded debug tool interface.
|
||||
This probe allows to flash the board using various tools.
|
||||
|
||||
Board is configured to be flashed using west STM32CubeProgrammer runner.
|
||||
Installation of `STM32CubeProgrammer`_ is then required to flash the board.
|
||||
|
||||
Alternatively, pyocd can also be used to flash and debug the board
|
||||
if west is told to use it as runner, which can be done by
|
||||
passing ``-r pyocd``.
|
||||
|
||||
For pyocd additional target information needs to be installed.
|
||||
This can be done by executing the following commands.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ pyocd pack --update
|
||||
$ pyocd pack --install stm32h5
|
||||
|
||||
Alternatively, the openocd interface will be supported by a next openocd version.
|
||||
When available, OpenOCD could be used in the same way as other tools.
|
||||
|
||||
|
||||
Flashing an application to Nucleo-H503RB
|
||||
------------------------------------------
|
||||
|
||||
Connect the Nucleo-H503RB to your host computer using the USB port.
|
||||
Then build and flash an application. Here is an example for the
|
||||
:ref:`hello_world` application.
|
||||
|
||||
Run a serial host program to connect with your Nucleo board:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ minicom -D /dev/ttyACM0
|
||||
|
||||
Then build and flash the application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: nucleo_h503rb
|
||||
:goals: build flash
|
||||
|
||||
You should see the following message on the console:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
Hello World! nucleo_h503rb/stm32h503xx
|
||||
|
||||
Debugging
|
||||
=========
|
||||
|
||||
You can debug an application in the usual way. Here is an example for the
|
||||
:zephyr:code-sample:`blinky` application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/basic/blinky
|
||||
:board: nucleo_h503rb
|
||||
:goals: debug
|
||||
|
||||
.. _NUCLEO_H503RB website:
|
||||
https://www.st.com/en/evaluation-tools/nucleo-h503rb
|
||||
|
||||
.. _STM32H5 Nucleo-64 board User Manual:
|
||||
https://www.st.com/resource/en/user_manual/um3121-stm32h5-nucleo64-board-mb1814-stmicroelectronics.pdf
|
||||
|
||||
.. _STM32H503RB on www.st.com:
|
||||
https://www.st.com/en/microcontrollers-microprocessors/stm32h503rb
|
||||
|
||||
.. _STM32H503 reference manual:
|
||||
https://www.st.com/resource/en/reference_manual/rm0492-stm32h503-line-armbased-32bit-mcus-stmicroelectronics.pdf
|
||||
|
||||
.. _STM32CubeProgrammer:
|
||||
https://www.st.com/en/development-tools/stm32cubeprog.html
|
||||
|
||||
.. _OpenOCD official Github mirror:
|
||||
https://github.com/openocd-org/openocd/
|
||||
|
||||
.. _STMicroelectronics OpenOCD Github:
|
||||
https://github.com/STMicroelectronics/OpenOCD/tree/openocd-cubeide-r6
|
116
boards/st/nucleo_h503rb/nucleo_h503rb.dts
Normal file
116
boards/st/nucleo_h503rb/nucleo_h503rb.dts
Normal file
|
@ -0,0 +1,116 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Arrow Electronics.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/h5/stm32h503Xb.dtsi>
|
||||
#include <st/h5/stm32h503rbtx-pinctrl.dtsi>
|
||||
#include "arduino_r3_connector.dtsi"
|
||||
#include "st_morpho_connector.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32H503RB-NUCLEO board";
|
||||
compatible = "st,stm32h503rb-nucleo";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
chosen {
|
||||
zephyr,console = &usart3;
|
||||
zephyr,shell-uart = &usart3;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD2";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
zephyr,code = <INPUT_KEY_0>;
|
||||
};
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &green_led_2;
|
||||
sw0 = &user_button;
|
||||
watchdog0 = &iwdg;
|
||||
};
|
||||
};
|
||||
|
||||
&clk_csi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&clk_hsi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&clk_hsi48 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&clk_hse {
|
||||
clock-frequency = <DT_FREQ_M(24)>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pll {
|
||||
div-m = <2>;
|
||||
mul-n = <40>;
|
||||
div-p = <2>;
|
||||
div-q = <2>;
|
||||
div-r = <2>;
|
||||
clocks = <&clk_hse>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rcc {
|
||||
clocks = <&pll>;
|
||||
clock-frequency = <DT_FREQ_M(240)>;
|
||||
ahb-prescaler = <1>;
|
||||
apb1-prescaler = <1>;
|
||||
apb2-prescaler = <1>;
|
||||
apb3-prescaler = <1>;
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
pinctrl-0 = <&usart1_tx_pb14 &usart1_rx_pb15>;
|
||||
pinctrl-names = "default";
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usart3 {
|
||||
pinctrl-0 = <&usart3_tx_pa4 &usart3_rx_pa3>;
|
||||
pinctrl-names = "default";
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rng {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&iwdg {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
||||
pinctrl-names = "default";
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
status = "okay";
|
||||
};
|
16
boards/st/nucleo_h503rb/nucleo_h503rb.yaml
Normal file
16
boards/st/nucleo_h503rb/nucleo_h503rb.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
identifier: nucleo_h503rb
|
||||
name: ST Nucleo H503RB
|
||||
type: mcu
|
||||
arch: arm
|
||||
toolchain:
|
||||
- zephyr
|
||||
ram: 32
|
||||
flash: 128
|
||||
supported:
|
||||
- arduino_gpio
|
||||
- arduino_serial
|
||||
- gpio
|
||||
- uart
|
||||
- i2c
|
||||
- watchdog
|
||||
vendor: st
|
24
boards/st/nucleo_h503rb/nucleo_h503rb_defconfig
Normal file
24
boards/st/nucleo_h503rb/nucleo_h503rb_defconfig
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Copyright (c) 2024 Arrow Electronics.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# enable uart driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# Enable clock
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
# Enable HW stack protection
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
|
||||
# enable GPIO
|
||||
CONFIG_GPIO=y
|
||||
|
||||
# enable pin controller
|
||||
CONFIG_PINCTRL=y
|
70
boards/st/nucleo_h503rb/st_morpho_connector.dtsi
Normal file
70
boards/st/nucleo_h503rb/st_morpho_connector.dtsi
Normal file
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Arrow Electronics.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/gpio/st-morpho-header.h>
|
||||
|
||||
/ {
|
||||
st_morpho_header: st-morpho-header {
|
||||
compatible = "st-morpho-header";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <ST_MORPHO_PIN_MASK 0x0>;
|
||||
gpio-map-pass-thru = <0x0 GPIO_DT_FLAGS_MASK>;
|
||||
gpio-map = <ST_MORPHO_L_1 0 &gpioc 10 0>,
|
||||
<ST_MORPHO_L_2 0 &gpioc 11 0>,
|
||||
<ST_MORPHO_L_3 0 &gpioc 12 0>,
|
||||
<ST_MORPHO_L_4 0 &gpiod 2 0>,
|
||||
/* By default, PA13 and PA14 are used as SWD signals
|
||||
* (SB40=ON, SB41=ON)
|
||||
*/
|
||||
<ST_MORPHO_L_13 0 &gpioa 13 0>,
|
||||
<ST_MORPHO_L_15 0 &gpioa 14 0>,
|
||||
<ST_MORPHO_L_17 0 &gpioa 15 0>,
|
||||
<ST_MORPHO_L_23 0 &gpioc 13 0>,
|
||||
<ST_MORPHO_L_25 0 &gpioc 14 0>,
|
||||
<ST_MORPHO_L_27 0 &gpioc 15 0>,
|
||||
<ST_MORPHO_L_28 0 &gpioa 0 0>,
|
||||
/* STM32H503xx has no pin PF0 as described in manual (UM3121) */
|
||||
<ST_MORPHO_L_30 0 &gpioa 1 0>,
|
||||
/* STM32H503xx has no pin PF1 as described in manual (UM3121) */
|
||||
<ST_MORPHO_L_32 0 &gpioa 2 0>,
|
||||
<ST_MORPHO_L_34 0 &gpiob 0 0>,
|
||||
<ST_MORPHO_L_35 0 &gpioc 2 0>,
|
||||
<ST_MORPHO_L_36 0 &gpioc 1 0>,
|
||||
<ST_MORPHO_L_37 0 &gpioc 3 0>,
|
||||
<ST_MORPHO_L_38 0 &gpioc 0 0>,
|
||||
|
||||
<ST_MORPHO_R_2 0 &gpioc 8 0>,
|
||||
<ST_MORPHO_R_3 0 &gpiob 6 0>,
|
||||
<ST_MORPHO_R_5 0 &gpiob 7 0>,
|
||||
<ST_MORPHO_R_6 0 &gpioc 5 0>,
|
||||
<ST_MORPHO_R_11 0 &gpioa 5 0>,
|
||||
/* By default, connected to USB connector (SB13=ON, SB17=ON) */
|
||||
<ST_MORPHO_R_12 0 &gpioa 12 0>,
|
||||
<ST_MORPHO_R_13 0 &gpioa 6 0>,
|
||||
/* By default, connected to USB connector (SB13=ON, SB17=ON) */
|
||||
<ST_MORPHO_R_14 0 &gpioa 11 0>,
|
||||
<ST_MORPHO_R_15 0 &gpioa 7 0>,
|
||||
<ST_MORPHO_R_16 0 &gpiob 12 0>,
|
||||
<ST_MORPHO_R_17 0 &gpioc 9 0>,
|
||||
<ST_MORPHO_R_19 0 &gpioc 6 0>,
|
||||
<ST_MORPHO_R_21 0 &gpioc 7 0>,
|
||||
<ST_MORPHO_R_22 0 &gpiob 2 0>,
|
||||
<ST_MORPHO_R_23 0 &gpioa 8 0>,
|
||||
<ST_MORPHO_R_24 0 &gpiob 1 0>,
|
||||
<ST_MORPHO_R_25 0 &gpiob 10 0>,
|
||||
<ST_MORPHO_R_26 0 &gpiob 15 0>,
|
||||
<ST_MORPHO_R_27 0 &gpiob 4 0>,
|
||||
<ST_MORPHO_R_28 0 &gpiob 14 0>,
|
||||
<ST_MORPHO_R_29 0 &gpiob 5 0>,
|
||||
<ST_MORPHO_R_30 0 &gpiob 13 0>,
|
||||
<ST_MORPHO_R_31 0 &gpiob 3 0>,
|
||||
<ST_MORPHO_R_33 0 &gpioa 10 0>,
|
||||
<ST_MORPHO_R_34 0 &gpioc 4 0>,
|
||||
<ST_MORPHO_R_35 0 &gpiob 14 0>,
|
||||
<ST_MORPHO_R_36 0 &gpiob 8 0>,
|
||||
<ST_MORPHO_R_37 0 &gpiob 15 0>;
|
||||
};
|
||||
};
|
23
boards/st/nucleo_h503rb/support/openocd.cfg
Normal file
23
boards/st/nucleo_h503rb/support/openocd.cfg
Normal file
|
@ -0,0 +1,23 @@
|
|||
source [find interface/stlink-dap.cfg]
|
||||
|
||||
source [find target/stm32h5x.cfg]
|
||||
|
||||
transport select "dapdirect_swd"
|
||||
|
||||
set CHIPNAME STM32H503RBTX
|
||||
set BOARDNAME NUCLEO-STM32H503RB
|
||||
|
||||
# Reset configuration
|
||||
# use hardware reset, connect under reset
|
||||
# connect_assert_srst needed if low power mode application running (WFI...)
|
||||
reset_config srst_only srst_nogate connect_assert_srst
|
||||
set CONNECT_UNDER_RESET 1
|
||||
set CORE_RESET 0
|
||||
|
||||
# Due to the use of connect_assert_srst, running gdb requires
|
||||
# to reset halt just after openocd init.
|
||||
rename init old_init
|
||||
proc init {} {
|
||||
old_init
|
||||
reset halt
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue