|
| 1 | +.. zephyr:board:: weact_stm32f446_core |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The WeAct STM32F446 Core Board is an extremely low cost and bare-bones |
| 7 | +development board featuring the STM32F446RE, see `STM32F446RE website`_. |
| 8 | +This is the 64-pin variant of the STM32F446x series, |
| 9 | +see `STM32F446x reference manual`_. More info about the board available |
| 10 | +on `WeAct Github`_. |
| 11 | + |
| 12 | +Hardware |
| 13 | +******** |
| 14 | + |
| 15 | +The STM32F446RE based Core Board provides the following |
| 16 | +hardware components: |
| 17 | + |
| 18 | +- STM32F446RE in QFPN64 package |
| 19 | +- ARM |reg| 32-bit Cortex |reg| -M4 CPU with FPU, Adaptive real-time |
| 20 | + accelerator (ART Accelerator) allowing 0-wait state execution from Flash memory |
| 21 | +- 180 MHz max CPU frequency |
| 22 | +- VDD from 1.7 V to 3.6 V |
| 23 | +- 512 KB Flash |
| 24 | +- 128 Kbytes of SRAM |
| 25 | +- GPIO with external interrupt capability |
| 26 | +- 3x12-bit, 2.4 MSPS ADC up to 16 channels |
| 27 | +- 2x12-bit D/A converters |
| 28 | +- 16-stream DMA controller |
| 29 | +- Up to 17 Timers (twelve 16-bit, two 32-bit, two watchdog timers and a SysTick timer) |
| 30 | +- USART/UART (4) |
| 31 | +- I2C (4) |
| 32 | +- SPI/I2S (4) |
| 33 | +- CAN (2) |
| 34 | +- SDIO |
| 35 | +- USB 2.0 full-speed device/host/OTG controller with on-chip PHY |
| 36 | +- SAI (Serial Audio Interface) |
| 37 | +- SPDIFRX interface |
| 38 | +- HDMI-CEC |
| 39 | +- CRC calculation unit |
| 40 | +- 96-bit unique ID |
| 41 | +- RTC with hardware calendar |
| 42 | + |
| 43 | + |
| 44 | +Supported Features |
| 45 | +================== |
| 46 | + |
| 47 | +.. zephyr:board-supported-hw:: |
| 48 | +
|
| 49 | +Pin Mapping |
| 50 | +=========== |
| 51 | + |
| 52 | +Default Zephyr Peripheral Mapping: |
| 53 | +---------------------------------- |
| 54 | + |
| 55 | +- UART_1 TX/RX : PA9/PA10 (also available on USB-C for console) |
| 56 | +- UART_2 TX/RX : PA2/PA3 |
| 57 | +- I2C1 SCL/SDA : PB6/PB7 |
| 58 | +- I2C2 SCL/SDA : PB10/PB11 |
| 59 | +- SPI1 SCK/MISO/MOSI : PA5/PA6/PA7 |
| 60 | +- SPI2 SCK/MISO/MOSI : PB13/PB14/PB15 |
| 61 | +- CAN1 TX/RX : PB9/PB8 |
| 62 | +- SDMMC1 D0/D1/D2/D3/CLK/CMD : PC8/PC9/PC10/PC11/PC12/PD2 |
| 63 | +- USER_PB : PC13 (Active Low) |
| 64 | +- USER_LED : PB2 (Active High) |
| 65 | +- USB_DM/USB_DP : PA11/PA12 |
| 66 | + |
| 67 | +OnBoard Features |
| 68 | + |
| 69 | +- USB Type-C connector |
| 70 | +- User LED (PB2) - Active High |
| 71 | +- User Key (PC13) - Active Low |
| 72 | +- BOOT0 Key for DFU mode |
| 73 | +- RESET Key |
| 74 | +- 8MHz HSE crystal oscillator |
| 75 | +- 32.768kHz LSE crystal oscillator |
| 76 | +- MicroSD card slot (SDIO interface) |
| 77 | +- SWD debug header (3.3V, GND, SWCLK, SWDIO) |
| 78 | +- 30×2 pin headers exposing GPIO pins |
| 79 | + |
| 80 | +Clock Sources |
| 81 | +------------- |
| 82 | + |
| 83 | +The board has two external oscillators. The frequency of the slow clock (LSE) is |
| 84 | +32.768 kHz. The frequency of the main clock (HSE) is 8 MHz. |
| 85 | + |
| 86 | +The default configuration sources the system clock from the PLL, which is |
| 87 | +derived from HSE, and is set at 180MHz, which is the maximum possible frequency |
| 88 | +for the STM32F446RE. |
| 89 | + |
| 90 | +Programming and Debugging |
| 91 | +************************* |
| 92 | + |
| 93 | +.. zephyr:board-supported-runners:: |
| 94 | +
|
| 95 | +There are 2 main entry points for flashing STM32F4X SoCs, one using the ROM |
| 96 | +bootloader, and another by using the SWD debug port (which requires additional |
| 97 | +hardware). Flashing using the ROM bootloader requires a special activation |
| 98 | +pattern, which can be triggered by using the BOOT0 pin. |
| 99 | + |
| 100 | +Flashing |
| 101 | +======== |
| 102 | + |
| 103 | +Installing dfu-util |
| 104 | +------------------- |
| 105 | + |
| 106 | +It is recommended to use at least v0.8 of `dfu-util`_. The package available in |
| 107 | +debian/ubuntu can be quite old, so you might have to build dfu-util from source. |
| 108 | + |
| 109 | +There is also a Windows version which works, but you may have to install the |
| 110 | +right USB drivers with a tool like `Zadig`_. |
| 111 | + |
| 112 | +Flashing an Application |
| 113 | +----------------------- |
| 114 | + |
| 115 | +Connect a USB-C cable and the board should power ON. Force the board into DFU mode |
| 116 | +by keeping the BOOT0 switch pressed while pressing and releasing the NRST switch. |
| 117 | + |
| 118 | +The dfu-util runner is supported on this board and so a sample can be built and |
| 119 | +tested easily. |
| 120 | + |
| 121 | +.. zephyr-app-commands:: |
| 122 | + :zephyr-app: samples/basic/blinky |
| 123 | + :board: weact_stm32f446_core |
| 124 | + :goals: build flash |
| 125 | + |
| 126 | +.. zephyr-app-commands:: |
| 127 | + :zephyr-app: samples/basic/button |
| 128 | + :board: weact_stm32f446_core |
| 129 | + :goals: build flash |
| 130 | + |
| 131 | +.. zephyr-app-commands:: |
| 132 | + :zephyr-app: samples/subsys/fs/fs_sample |
| 133 | + :board: weact_stm32f446_core |
| 134 | + :goals: build flash |
| 135 | + |
| 136 | + |
| 137 | +Debugging |
| 138 | +========= |
| 139 | + |
| 140 | +The board can be debugged by installing the included 100 mil (0.1 inch) header, |
| 141 | +and attaching an SWD debugger to the 3V3 (3.3V), GND, SCK, and DIO |
| 142 | +pins on that header. |
| 143 | + |
| 144 | +References |
| 145 | +********** |
| 146 | + |
| 147 | +.. target-notes:: |
| 148 | + |
| 149 | +.. _board release notes: |
| 150 | + https://github.com/WeActStudio/WeActStudio.STM32F4_64Pin_CoreBoard/blob/master/README.md |
| 151 | + |
| 152 | +.. _Zadig: |
| 153 | + https://zadig.akeo.ie/ |
| 154 | + |
| 155 | +.. _WeAct Github: |
| 156 | + https://github.com/WeActStudio/WeActStudio.STM32F4_64Pin_CoreBoard |
| 157 | + |
| 158 | +.. _dfu-util: |
| 159 | + http://dfu-util.sourceforge.net/build.html |
| 160 | + |
| 161 | +.. _STM32F446RE website: |
| 162 | + https://www.st.com/en/microcontrollers-microprocessors/stm32f446re.html |
| 163 | + |
| 164 | +.. _STM32F446x reference manual: |
| 165 | + https://www.st.com/resource/en/reference_manual/rm0390-stm32f446xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf |
0 commit comments