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