Skip to content

Commit 9ae9b8b

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 9ae9b8b

File tree

10 files changed

+428
-0
lines changed

10 files changed

+428
-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: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
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+
- USB with USB-C
18+
- FPC10P LCD connector
19+
- FPC20P Camera connector
20+
- 8 pin debug connector
21+
22+
More information about the board can be found at the `FK723M1-ZGT6 Schematic`_.
23+
24+
Hardware
25+
********
26+
27+
FK723M1-ZGT6 provides the following hardware components:
28+
29+
- STM32H723ZG in LQFP144 package
30+
- ARM 32-bit Cortex-M7 CPU with FPU
31+
- Chrom-ART Accelerator
32+
- Hardware JPEG Codec
33+
- 550 MHz max CPU frequency
34+
- VDD from 1.62 V to 3.6 V
35+
- 1 MB Flash
36+
- 562 kB SRAM max (376 kb used currently)
37+
- High-resolution timer (2.1 ns)
38+
- 32-bit timers(2)
39+
- 16-bit timers(12)
40+
- SPI(6)
41+
- I2C(4)
42+
- I2S (3)
43+
- USART(4)
44+
- UART(4)
45+
- USB OTG Full Speed(1)
46+
- CAN FD(2)
47+
- SAI(2)
48+
- SPDIF_Rx(4)
49+
- HDMI_CEC(1)
50+
- Dual Mode Quad SPI(1)
51+
- Camera Interface
52+
- GPIO (up to 114) with external interrupt capability
53+
- 16-bit ADC(3) with 36 channels / 3.6 MSPS
54+
- 12-bit DAC with 2 channels(2)
55+
- True Random Number Generator (RNG)
56+
- 16-channel DMA
57+
- LCD-TFT Controller with XGA resolution
58+
59+
Supported Features
60+
==================
61+
62+
.. zephyr:board-supported-hw::
63+
64+
Default Zephyr Peripheral Mapping:
65+
----------------------------------
66+
67+
The FK723M1-ZGT6 board features one USB port, two 30x2 pin headers, one 4x2 debug header,
68+
one micro SD slot, one FPC10P LCD interface, one FPC20P Camera interface and one built-in external Quad SPI flash.
69+
The board is configured as follows:
70+
71+
- UART_1 TX/RX : PA9/PA10 (debug header UART)
72+
- LD1 : PG7
73+
74+
System Clock
75+
------------
76+
77+
FK723M1-ZGT6 System Clock could be driven by an internal or external
78+
oscillator, as well as the main PLL clock. By default, the System clock is
79+
driven by the PLL clock at 550MHz, driven by an 15MHz high-speed external clock.
80+
81+
Serial Port
82+
-----------
83+
84+
FK723M1-ZGT6 board has 4 UARTs and 4 USARTs. The Zephyr console output is
85+
assigned to UART1. Default settings are 115200 8N1.
86+
87+
Programming and Debugging
88+
*************************
89+
90+
FK723M1-ZGT6 provides a special SWD header.
91+
92+
Flashing
93+
========
94+
95+
The board is configured to be flashed using west `STM32CubeProgrammer`_ runner,
96+
so its :ref:`installation <stm32cubeprog-flash-host-tools>` is required.
97+
98+
Alternatively, OpenOCD or JLink can also be used to flash the board using
99+
the ``--runner`` (or ``-r``) option:
100+
101+
.. code-block:: console
102+
103+
$ west flash --runner openocd
104+
$ west flash --runner jlink
105+
106+
Flashing an application to FK723M1-ZGT6
107+
----------------------------------------
108+
109+
First, connect a SWD capable debugger to the debug header on FK723M1-ZGT6.
110+
Then connect the debugger to the host computer to prepare the board for flashing.
111+
Finally, build and flash your application.
112+
113+
Here is an example for the :zephyr:code-sample:`blinky` application.
114+
115+
Optional: Connect a USB-to-serial adapter to RX and TX (cross connect!).
116+
117+
.. code-block:: console
118+
119+
$ minicom -b 115200 -D /dev/ttyACM0
120+
121+
or use screen:
122+
123+
.. code-block:: console
124+
125+
$ screen /dev/ttyACM0 115200
126+
127+
Build and flash the application:
128+
129+
.. zephyr-app-commands::
130+
:zephyr-app: samples/basic/blinky
131+
:board: fk723m1_zgt6
132+
:goals: build flash
133+
134+
You should see the following messages on the console repeatedly:
135+
136+
.. code-block:: console
137+
138+
$ LED state: ON
139+
$ LED state: OFF
140+
141+
Hello World example can also be used:
142+
143+
.. zephyr-app-commands::
144+
:zephyr-app: samples/hello_world
145+
:board: fk723m1_zgt6
146+
:goals: build flash
147+
148+
Debugging
149+
=========
150+
151+
You can debug an application in the usual way. Here is an example for the
152+
:zephyr:code-sample:`hello_world` application.
153+
154+
.. zephyr-app-commands::
155+
:zephyr-app: samples/hello_world
156+
:board: fk723m1_zgt6
157+
:maybe-skip-config:
158+
:goals: debug
159+
160+
.. _FK723M1-ZGT6 Schematic:
161+
https://community.st.com/ysqtg83639/attachments/ysqtg83639/mcu-boards-hardware-tools-forum/20009/1/FK723M1-ZGT6.zh-CN.en.pdf
162+
163+
.. _STM32H723ZG on www.st.com:
164+
https://www.st.com/en/microcontrollers-microprocessors/stm32h723zg.html
165+
166+
.. _STM32H723 reference manual:
167+
https://www.st.com/resource/en/reference_manual/dm00603761-stm32h723733-stm32h725735-and-stm32h730-value-line-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
168+
169+
.. _STM32CubeIDE:
170+
https://www.st.com/en/development-tools/stm32cubeide.html
171+
172+
.. _STM32CubeProgrammer:
173+
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)