|
| 1 | +.. zephyr:board:: art_pi2 |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The ART-Pi2 is an open-source hardware platform designed by the |
| 7 | +RT-Thread team specifically for embedded software engineers |
| 8 | +and open-source makers, offering extensive expandability for DIY projects. |
| 9 | + |
| 10 | +Key Features |
| 11 | + |
| 12 | +- STM32H7R7L8HxH microcontroller featuring 64 Kbytes of Flash and 620 Kbytes of SRAM in an TFBGA225 package |
| 13 | +- On-board ST-LINK/V2.1 debugger/programmer |
| 14 | +- SDIO TF Card slot |
| 15 | +- SDIO WIFI:CYWL6208 |
| 16 | +- HDC UART BuleTooth:CYWL6208 |
| 17 | +- 32-MB HyperRAM |
| 18 | +- 64-MB HyperFlash |
| 19 | +- One Power LED (blue) for 3.3 V power-on |
| 20 | +- Two user LEDs blue and red |
| 21 | +- Two ST-LINK LEDs: blue and red |
| 22 | +- Two push-buttons (user and reset) |
| 23 | +- Board connectors: |
| 24 | + |
| 25 | + - USB OTG with Type-C connector |
| 26 | + - RGB888 FPC connector |
| 27 | + |
| 28 | +More information about the board can be found at the `ART-Pi2 website`_. |
| 29 | + |
| 30 | +Hardware |
| 31 | +******** |
| 32 | + |
| 33 | +ART-Pi2 provides the following hardware components: |
| 34 | + |
| 35 | +The STM32H7R7xx devices are a high-performance microcontrollers family (STM32H7 |
| 36 | +Series) based on the high-performance Arm |reg| Cortex |reg|-M7 32-bit RISC core. |
| 37 | +They operate at a frequency of up to 600 MHz. |
| 38 | + |
| 39 | +More information about STM32H7R7 can be found here: |
| 40 | + |
| 41 | +- `STM32H7R7L8 on www.st.com`_ |
| 42 | +- `STM32H7Rx reference manual`_ |
| 43 | + |
| 44 | + |
| 45 | +Supported Features |
| 46 | +================== |
| 47 | + |
| 48 | +.. zephyr:board-supported-hw:: |
| 49 | +
|
| 50 | +Default Zephyr Peripheral Mapping: |
| 51 | +---------------------------------- |
| 52 | + |
| 53 | +The ART-Pi2 board features a On-board ST-LINK/V2.1 debugger/programmer. Board is configured as follows: |
| 54 | + |
| 55 | +- UART4 TX/RX : PD1/PD0 (ST-Link Virtual Port Com) |
| 56 | +- LED1 (red) : PO1 |
| 57 | +- LED2 (blue) : PO5 |
| 58 | +- USER PUSH-BUTTON : PC13 |
| 59 | + |
| 60 | +System Clock |
| 61 | +------------ |
| 62 | + |
| 63 | +ART-Pi2 System Clock could be driven by an internal or external |
| 64 | +oscillator, as well as the main PLL clock. By default, the System clock is |
| 65 | +driven by the PLL clock at 250MHz, driven by an 24MHz high-speed external clock. |
| 66 | + |
| 67 | +Serial Port |
| 68 | +----------- |
| 69 | + |
| 70 | +ART-Pi2 board has 4 UARTs and 3 USARTs plus one LowPower UART. The Zephyr console |
| 71 | +output is assigned to UART4. Default settings are 115200 8N1. |
| 72 | + |
| 73 | +Backup SRAM |
| 74 | +----------- |
| 75 | + |
| 76 | +In order to test backup SRAM you may want to disconnect VBAT from VDD. You can |
| 77 | +do it by removing ``SB13`` jumper on the back side of the board. |
| 78 | + |
| 79 | +Programming and Debugging |
| 80 | +************************* |
| 81 | + |
| 82 | +.. zephyr:board-supported-runners:: |
| 83 | +
|
| 84 | +ART-Pi2 board includes an ST-LINK/V2.1 embedded debug tool interface. |
| 85 | + |
| 86 | +.. note:: |
| 87 | + |
| 88 | + Check if your ST-LINK V2.1 has newest FW version. It can be done with `STM32CubeProgrammer`_ |
| 89 | + |
| 90 | +Flashing |
| 91 | +======== |
| 92 | + |
| 93 | +The board is configured to be flashed using west `STM32CubeProgrammer`_ runner, |
| 94 | +so its :ref:`installation <stm32cubeprog-flash-host-tools>` is required. |
| 95 | + |
| 96 | +Flashing an application to ART-Pi2 |
| 97 | +---------------------------------- |
| 98 | + |
| 99 | +First, connect the art_pi2 to your host computer using |
| 100 | +the USB port to prepare it for flashing. Then build and flash your application. |
| 101 | + |
| 102 | +Here is an example for the :zephyr:code-sample:`hello_world` application. |
| 103 | + |
| 104 | +Run a serial host program to connect with your art_pi2 board. |
| 105 | + |
| 106 | +.. code-block:: console |
| 107 | +
|
| 108 | + $ minicom -b 115200 -D /dev/ttyACM0 |
| 109 | +
|
| 110 | +or use screen: |
| 111 | + |
| 112 | +.. code-block:: console |
| 113 | +
|
| 114 | + $ screen /dev/ttyACM0 115200 |
| 115 | +
|
| 116 | +Build and flash the application: |
| 117 | + |
| 118 | +.. zephyr-app-commands:: |
| 119 | + :zephyr-app: samples/hello_world |
| 120 | + :board: art_pi2 |
| 121 | + :goals: build flash |
| 122 | + |
| 123 | +You should see the following message on the console: |
| 124 | + |
| 125 | +.. code-block:: console |
| 126 | +
|
| 127 | + *** Booting Zephyr OS build v4.1.0-1907-g415ab379a8af *** |
| 128 | + Hello World! art_pi2/stm32h7r7xx |
| 129 | +
|
| 130 | +Blinky example can also be used: |
| 131 | + |
| 132 | +.. zephyr-app-commands:: |
| 133 | + :zephyr-app: samples/basic/blinky |
| 134 | + :board: art_pi2 |
| 135 | + :goals: build flash |
| 136 | + |
| 137 | +Debugging |
| 138 | +========= |
| 139 | + |
| 140 | +You can debug an application in the usual way. Here is an example for the |
| 141 | +:zephyr:code-sample:`hello_world` application. |
| 142 | + |
| 143 | +.. zephyr-app-commands:: |
| 144 | + :zephyr-app: samples/hello_world |
| 145 | + :board: art_pi2 |
| 146 | + :maybe-skip-config: |
| 147 | + :goals: debug |
| 148 | + |
| 149 | +References |
| 150 | +********** |
| 151 | +.. target-notes:: |
| 152 | + |
| 153 | +.. _ART-Pi2 website: |
| 154 | + https://github.com/RT-Thread-Studio/sdk-bsp-stm32h7r-realthread-artpi2 |
| 155 | + |
| 156 | +.. _STM32H7R7L8 on www.st.com: |
| 157 | + https://www.st.com/en/microcontrollers-microprocessors/stm32h7r7l8.html |
| 158 | + |
| 159 | +.. _STM32H7Rx reference manual: |
| 160 | + https://www.st.com/resource/en/reference_manual/rm0477-stm32h7rx7sx-armbased-32bit-mcus-stmicroelectronics.pdf |
| 161 | + |
| 162 | +.. _STM32CubeProgrammer: |
| 163 | + https://www.st.com/en/development-tools/stm32cubeprog.html |
0 commit comments