Skip to content

Commit 6c6da2a

Browse files
committed
boards: fk723m1_zgt6: initial support
Add the FK723M1-ZGT6 V1.0 board based on the stm32h723zgt6. Signed-off-by: Paul Wedeck <[email protected]>
1 parent 62f62db commit 6c6da2a

File tree

10 files changed

+429
-0
lines changed

10 files changed

+429
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2025 Paul Wedeck <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_FK723M1_ZGT6
5+
select SOC_STM32H723XX
6+
7+
if BOARD_FK723M1_ZGT6
8+
9+
config SDMMC_STM32_CLOCK_CHECK
10+
default n
11+
12+
endif # BOARD_FK723M1_ZGT6

boards/fanke/fk723m1_zgt6/board.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
# keep first
4+
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=sw")
5+
board_runner_args(jlink "--device=STM32H723ZG" "--speed=4000")
6+
7+
# keep first
8+
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
10+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/fanke/fk723m1_zgt6/board.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: fk723m1_zgt6
3+
full_name: FK723M1-ZGT6
4+
vendor: fanke
5+
socs:
6+
- name: stm32h723xx
Binary file not shown.
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
.. zephyr:board:: fk723m1_zgt6
2+
3+
Overview
4+
********
5+
6+
The FK723M1-ZGT6 board is a development board for the STM32H723ZGT6 SoC.
7+
8+
Key Features:
9+
10+
- STM32 microcontroller in LQFP144 package
11+
- USB OTG or full-speed device
12+
- 1 user LEDs
13+
- 1 boot and reset push-buttons
14+
- 15 MHz and 32.768 kHz crystal oscillators
15+
16+
Board connectors:
17+
18+
- USB with USB-C
19+
- FPC10P LCD connector
20+
- FPC20P Camera connector
21+
- 8 pin debug connector
22+
23+
More information about the board can be found at the `FK723M1-ZGT6 Schematic`_.
24+
25+
Hardware
26+
********
27+
28+
FK723M1-ZGT6 provides the following hardware components:
29+
30+
- STM32H723ZG in LQFP144 package
31+
- ARM 32-bit Cortex-M7 CPU with FPU
32+
- Chrom-ART Accelerator
33+
- Hardware JPEG Codec
34+
- 550 MHz max CPU frequency
35+
- VDD from 1.62 V to 3.6 V
36+
- 1 MB Flash
37+
- 562 kB SRAM max (376 kb used currently)
38+
- High-resolution timer (2.1 ns)
39+
- 32-bit timers(2)
40+
- 16-bit timers(12)
41+
- SPI(6)
42+
- I2C(4)
43+
- I2S (3)
44+
- USART(4)
45+
- UART(4)
46+
- USB OTG Full Speed(1)
47+
- CAN FD(2)
48+
- SAI(2)
49+
- SPDIF_Rx(4)
50+
- HDMI_CEC(1)
51+
- Dual Mode Quad SPI(1)
52+
- Camera Interface
53+
- GPIO (up to 114) with external interrupt capability
54+
- 16-bit ADC(3) with 36 channels / 3.6 MSPS
55+
- 12-bit DAC with 2 channels(2)
56+
- True Random Number Generator (RNG)
57+
- 16-channel DMA
58+
- LCD-TFT Controller with XGA resolution
59+
60+
Supported Features
61+
==================
62+
63+
.. zephyr:board-supported-hw::
64+
65+
Default Zephyr Peripheral Mapping:
66+
----------------------------------
67+
68+
The FK723M1-ZGT6 board features one USB port, two 30x2 pin headers, one 4x2 debug header,
69+
one micro SD slot, one FPC10P LCD interface, one FPC20P Camera interface and one built-in external Quad SPI flash.
70+
The board is configured as follows:
71+
72+
- UART_1 TX/RX : PA9/PA10 (debug header UART)
73+
- LD1 : PG7
74+
75+
System Clock
76+
------------
77+
78+
FK723M1-ZGT6 System Clock could be driven by an internal or external
79+
oscillator, as well as the main PLL clock. By default, the System clock is
80+
driven by the PLL clock at 550MHz, driven by an 15MHz high-speed external clock.
81+
82+
Serial Port
83+
-----------
84+
85+
FK723M1-ZGT6 board has 4 UARTs and 4 USARTs. The Zephyr console output is
86+
assigned to UART1. Default settings are 115200 8N1.
87+
88+
Programming and Debugging
89+
*************************
90+
91+
FK723M1-ZGT6 provides a special SWD header.
92+
93+
Flashing
94+
========
95+
96+
The board is configured to be flashed using west `STM32CubeProgrammer`_ runner,
97+
so its :ref:`installation <stm32cubeprog-flash-host-tools>` is required.
98+
99+
Alternatively, OpenOCD or JLink can also be used to flash the board using
100+
the ``--runner`` (or ``-r``) option:
101+
102+
.. code-block:: console
103+
104+
$ west flash --runner openocd
105+
$ west flash --runner jlink
106+
107+
Flashing an application to FK723M1-ZGT6
108+
----------------------------------------
109+
110+
First, connect a SWD capable debugger to the debug header on FK723M1-ZGT6.
111+
Then connect the debugger to the host computer to prepare the board for flashing.
112+
Finally, build and flash your application.
113+
114+
Here is an example for the :zephyr:code-sample:`blinky` application.
115+
116+
Optional: Connect a USB-to-serial adapter to RX and TX (cross connect!).
117+
118+
.. code-block:: console
119+
120+
$ minicom -b 115200 -D /dev/ttyACM0
121+
122+
or use screen:
123+
124+
.. code-block:: console
125+
126+
$ screen /dev/ttyACM0 115200
127+
128+
Build and flash the application:
129+
130+
.. zephyr-app-commands::
131+
:zephyr-app: samples/basic/blinky
132+
:board: fk723m1_zgt6
133+
:goals: build flash
134+
135+
You should see the following messages on the console repeatedly:
136+
137+
.. code-block:: console
138+
139+
$ LED state: ON
140+
$ LED state: OFF
141+
142+
Hello World example can also be used:
143+
144+
.. zephyr-app-commands::
145+
:zephyr-app: samples/hello_world
146+
:board: fk723m1_zgt6
147+
:goals: build flash
148+
149+
Debugging
150+
=========
151+
152+
You can debug an application in the usual way. Here is an example for the
153+
:zephyr:code-sample:`hello_world` application.
154+
155+
.. zephyr-app-commands::
156+
:zephyr-app: samples/hello_world
157+
:board: fk723m1_zgt6
158+
:maybe-skip-config:
159+
:goals: debug
160+
161+
.. _FK723M1-ZGT6 Schematic:
162+
https://community.st.com/ysqtg83639/attachments/ysqtg83639/mcu-boards-hardware-tools-forum/20009/1/FK723M1-ZGT6.zh-CN.en.pdf
163+
164+
.. _STM32H723ZG on www.st.com:
165+
https://www.st.com/en/microcontrollers-microprocessors/stm32h723zg.html
166+
167+
.. _STM32H723 reference manual:
168+
https://www.st.com/resource/en/reference_manual/dm00603761-stm32h723733-stm32h725735-and-stm32h730-value-line-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
169+
170+
.. _STM32CubeIDE:
171+
https://www.st.com/en/development-tools/stm32cubeide.html
172+
173+
.. _STM32CubeProgrammer:
174+
https://www.st.com/en/development-tools/stm32cubeprog.html
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
/*
2+
* Copyright (c) 2020 Alexander Kozhinov <[email protected]>
3+
* Copyright (c) 2024 zack jiang <[email protected]>
4+
* Copyright (c) 2025 Paul Wedeck <[email protected]>
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/dts-v1/;
9+
#include <st/h7/stm32h723Xg.dtsi>
10+
#include <st/h7/stm32h723zgtx-pinctrl.dtsi>
11+
12+
/ {
13+
model = "FK723M1-ZGT6 board";
14+
compatible = "fanke,fk723m1-zgt6";
15+
16+
chosen {
17+
zephyr,console = &usart1;
18+
zephyr,shell-uart = &usart1;
19+
zephyr,dtcm = &dtcm;
20+
zephyr,sram = &sram0;
21+
zephyr,flash = &flash0;
22+
zephyr,canbus = &fdcan1;
23+
};
24+
25+
leds: leds {
26+
compatible = "gpio-leds";
27+
28+
blue_led: led_0 {
29+
gpios = <&gpiog 7 GPIO_ACTIVE_LOW>;
30+
label = "User LED";
31+
};
32+
};
33+
34+
aliases {
35+
led0 = &blue_led;
36+
sdhc0 = &sdmmc1;
37+
};
38+
};
39+
40+
&clk_lsi {
41+
status = "okay";
42+
};
43+
44+
&clk_hsi {
45+
status = "okay";
46+
};
47+
48+
&clk_hsi48 {
49+
status = "okay";
50+
};
51+
52+
&clk_hse {
53+
clock-frequency = <DT_FREQ_M(25)>;
54+
status = "okay";
55+
};
56+
57+
&clk_lse {
58+
status = "okay";
59+
};
60+
61+
&pll {
62+
div-m = <2>;
63+
mul-n = <44>;
64+
div-p = <1>;
65+
div-q = <22>;
66+
div-r = <2>;
67+
clocks = <&clk_hse>;
68+
status = "okay";
69+
};
70+
71+
&pll2 {
72+
div-m = <2>;
73+
mul-n = <32>;
74+
div-p = <5>;
75+
div-q = <5>;
76+
div-r = <5>;
77+
clocks = <&clk_hse>;
78+
status = "okay";
79+
};
80+
81+
&rcc {
82+
clocks = <&pll>;
83+
clock-frequency = <DT_FREQ_M(550)>;
84+
d1cpre = <1>;
85+
hpre = <2>; /* HCLK: 275 MHz */
86+
d1ppre = <2>; /* APB1: 137.5 MHz */
87+
d2ppre1 = <2>; /* APB2: 137.5 MHz */
88+
d2ppre2 = <2>; /* APB3: 137.5 MHz */
89+
d3ppre = <2>; /* APB4: 137.5 MHz */
90+
};
91+
92+
&usart1 {
93+
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
94+
pinctrl-names = "default";
95+
current-speed = <115200>;
96+
status = "okay";
97+
};
98+
99+
&rtc {
100+
clocks = <&rcc STM32_CLOCK_BUS_APB4 0x00010000>,
101+
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
102+
status = "okay";
103+
};
104+
105+
&backup_sram {
106+
status = "okay";
107+
};
108+
109+
zephyr_udc0: &usbotg_hs {
110+
pinctrl-0 = <&usb_otg_hs_dm_pa11 &usb_otg_hs_dp_pa12>;
111+
pinctrl-names = "default";
112+
status = "okay";
113+
};
114+
115+
&rng {
116+
status = "okay";
117+
};
118+
119+
&sdmmc1 {
120+
pinctrl-0 = <&sdmmc1_d0_pc8 &sdmmc1_d1_pc9 &sdmmc1_d2_pc10
121+
&sdmmc1_d3_pc11 &sdmmc1_ck_pc12 &sdmmc1_cmd_pd2>;
122+
pinctrl-names = "default";
123+
clocks = <&rcc STM32_CLOCK(AHB3, 16U)>,
124+
<&rcc STM32_SRC_PLL1_Q SDMMC_SEL(0)>;
125+
disk-name = "SD";
126+
status = "okay";
127+
bus-width = <4>;
128+
};
129+
130+
&octospi1 {
131+
pinctrl-0 = <&octospim_p1_ncs_pg6 &octospim_p1_clk_pf10
132+
&octospim_p1_io0_pf8 &octospim_p1_io1_pf9
133+
&octospim_p1_io2_pf7 &octospim_p1_io3_pf6>;
134+
pinctrl-names = "default";
135+
status = "okay";
136+
137+
/* Winbond external flash */
138+
qspi: qspi-nor-flash@0 {
139+
compatible = "st,stm32-ospi-nor";
140+
reg = <0 DT_SIZE_M(8)>; /* 64 Mbits */
141+
ospi-max-frequency = <DT_FREQ_M(133)>;
142+
spi-bus-width = <OSPI_QUAD_MODE>;
143+
data-rate = <OSPI_STR_TRANSFER>;
144+
writeoc = "PP_1_1_4";
145+
size = <DT_SIZE_M(64)>;
146+
status = "okay";
147+
148+
partitions {
149+
compatible = "fixed-partitions";
150+
#address-cells = <1>;
151+
#size-cells = <1>;
152+
153+
storage_partition: partition@0 {
154+
reg = <0x00000000 DT_SIZE_M(8)>; /* 64 Mbits */
155+
};
156+
};
157+
};
158+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
identifier: fk723m1_zgt6
2+
name: FK723M1-ZGT6
3+
type: mcu
4+
arch: arm
5+
toolchain:
6+
- zephyr
7+
- gnuarmemb
8+
- xtools
9+
ram: 432
10+
flash: 1024
11+
supported:
12+
- uart
13+
- gpio
14+
- counter
15+
- i2c
16+
- pwm
17+
- spi
18+
- backup_sram
19+
- usb_device
20+
- rtc
21+
- can
22+
vendor: other

0 commit comments

Comments
 (0)