|
| 1 | +.. _stm32f072_eval_board: |
| 2 | + |
| 3 | +ST STM32F072-EVAL |
| 4 | +################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The STM32F072-EVAL Discovery kit features an ARM Cortex-M0 based STM32F072VBT6 MCU |
| 10 | +with a wide range of connectivity support and configurations. |
| 11 | +Here are some highlights of the STM32F072-EVAL board: |
| 12 | + |
| 13 | +- Four 5 V power supply options: power jack, ST-LINK/V2 USB connector, user USB connector, or daughter board |
| 14 | +- Stereo audio jack, which supports a headset with microphone connected to DAC and ADC of STM32F072VBT6. |
| 15 | +- 2G Byte (or more) SPI interface MicroSD card |
| 16 | +- I2C compatible serial interface temperature sensor |
| 17 | +- RF E2PROM |
| 18 | +- RS232 and RS485 communication |
| 19 | +- IrDA transceiver |
| 20 | +- IR LED and IR receiver |
| 21 | +- SWD debug support, ST-LINK/V2 embedded |
| 22 | +- 240x320 TFT color LCD connected to SPI interface of STM32F072VBT6 |
| 23 | +- Joystick with 4-direction control and selector |
| 24 | +- Reset and tamper buttons |
| 25 | +- Four color user LEDs and two LEDs as MCU low power alarm |
| 26 | +- Extension connector for daughter board or wrapping board |
| 27 | +- MCU voltage choice: fixed 3.3 V or adjustable from 1.65 V to 3.6 V |
| 28 | +- USB full-speed connector |
| 29 | +- Touch sensing buttons |
| 30 | +- RTC with backup battery |
| 31 | +- CAN2.0A/B compliant connector |
| 32 | +- Light Dependent Resistor (LDR) |
| 33 | +- Potentiometer |
| 34 | +- Two HDMI connectors with DDC and CEC |
| 35 | +- Smart Card slot |
| 36 | +- Motor control connector |
| 37 | + |
| 38 | + |
| 39 | +.. image:: img/stm32f072_eval.jpg |
| 40 | + :width: 540px |
| 41 | + :align: center |
| 42 | + :height: 549px |
| 43 | + :alt: STM32F072-EVAL |
| 44 | + |
| 45 | +More information about the board can be found at the `STM32F072-EVAL website`_. |
| 46 | + |
| 47 | +Hardware |
| 48 | +******** |
| 49 | + |
| 50 | +STM32F072-EVAL Discovery kit provides the following hardware components: |
| 51 | + |
| 52 | +- STM32F072VBT6 in LQFP100 package |
| 53 | +- ARM |reg| 32-bit Cortex |reg| -M0 CPU |
| 54 | +- 48 MHz max CPU frequency |
| 55 | +- VDD from 2.0 V to 3.6 V |
| 56 | +- 128 KB Flash |
| 57 | +- 16 KB SRAM with HW parity |
| 58 | +- GPIO with external interrupt capability |
| 59 | +- one 12-bit ADC with 16 channels |
| 60 | +- one 12-bit D/A converters with 2 channels |
| 61 | +- RTC |
| 62 | +- Advanced-control Timer |
| 63 | +- General Purpose Timers (8) |
| 64 | +- Watchdog Timers (2) |
| 65 | +- USART (4) |
| 66 | +- I2C (2) |
| 67 | +- SPI (2) |
| 68 | +- CAN |
| 69 | +- USB 2.0 OTG FS with on-chip PHY |
| 70 | +- CRC calculation unit |
| 71 | +- DMA Controller |
| 72 | +- HDMI CEC Controller |
| 73 | +- 24 capacitive sensing channels for touchkey, linear, and rotary touch sensors |
| 74 | +- Up to 87 fast I/Os: 68 I/Os with 5V tolerant capability and 19 with independent supply |
| 75 | + |
| 76 | +More information about STM32F072VB can be found here: |
| 77 | + - `STM32F072VB on www.st.com`_ |
| 78 | + - `STM32F072 reference manual`_ |
| 79 | + |
| 80 | +Supported Features |
| 81 | +================== |
| 82 | + |
| 83 | +The Zephyr stm32f072_eval board configuration supports the following hardware features: |
| 84 | + |
| 85 | ++-----------+------------+-------------------------------------+ |
| 86 | +| Interface | Controller | Driver/Component | |
| 87 | ++===========+============+=====================================+ |
| 88 | +| NVIC | on-chip | nested vector interrupt controller | |
| 89 | ++-----------+------------+-------------------------------------+ |
| 90 | +| UART | on-chip | serial port-polling; | |
| 91 | +| | | serial port-interrupt | |
| 92 | ++-----------+------------+-------------------------------------+ |
| 93 | +| PINMUX | on-chip | pinmux | |
| 94 | ++-----------+------------+-------------------------------------+ |
| 95 | +| GPIO | on-chip | gpio | |
| 96 | ++-----------+------------+-------------------------------------+ |
| 97 | +| PWM | on-chip | pwm | |
| 98 | ++-----------+------------+-------------------------------------+ |
| 99 | +| CLOCK | on-chip | reset and clock control | |
| 100 | ++-----------+------------+-------------------------------------+ |
| 101 | +| IWDG | on-chip | independent watchdog | |
| 102 | ++-----------+------------+-------------------------------------+ |
| 103 | + |
| 104 | +Other hardware features are not yet supported on this Zephyr porting. |
| 105 | + |
| 106 | +The default configuration can be found in the defconfig file: |
| 107 | + |
| 108 | + ``boards/arm/stm32f072_eval/stm32f072_eval_defconfig`` |
| 109 | + |
| 110 | + |
| 111 | +Pin Mapping |
| 112 | +=========== |
| 113 | + |
| 114 | +STM32F072-EVAL Discovery kit has 6 GPIO controllers. These controllers are responsible for pin muxing, |
| 115 | +input/output, pull-up, etc. |
| 116 | + |
| 117 | +For mode details please refer to `STM32F072-EVAL board User Manual`_. |
| 118 | + |
| 119 | +Default Zephyr Peripheral Mapping: |
| 120 | +---------------------------------- |
| 121 | +- UART_2_TX : PD5 |
| 122 | +- UART_2_RX : PD6 |
| 123 | +- TAMPER_PB : PC13 |
| 124 | +- JOYSTICK_RIGHT_PB : PE3 |
| 125 | +- JOYSTICK_LEFT_PB : PF2 |
| 126 | +- JOYSTICK_UP_PB : PF9 |
| 127 | +- JOYSTICK_DOWN_PB : PF10 |
| 128 | +- JOYSTICK_SEL_PB : PA0 |
| 129 | +- LD1 : PD8 |
| 130 | +- LD2 : PD9 |
| 131 | +- LD3 : PD10 |
| 132 | +- LD4 : PD11 |
| 133 | + |
| 134 | +System Clock |
| 135 | +============ |
| 136 | + |
| 137 | +STM32F072-EVAL System Clock could be driven by an internal or external oscillator, |
| 138 | +as well as the main PLL clock. By default the System clock is driven by the PLL clock at 48MHz, |
| 139 | +driven by an 8MHz high speed internal clock. |
| 140 | + |
| 141 | +Serial Port |
| 142 | +=========== |
| 143 | + |
| 144 | +STM32F072-EVAL Discovery kit has up to 4 UARTs. The Zephyr console output is assigned to UART2. |
| 145 | +Default settings are 115200 8N1. |
| 146 | + |
| 147 | +Programming and Debugging |
| 148 | +************************* |
| 149 | + |
| 150 | +Applications for the ``stm32f072_eval`` board configuration can be built and |
| 151 | +flashed in the usual way (see :ref:`build_an_application` and |
| 152 | +:ref:`application_run` for more details). |
| 153 | + |
| 154 | +Flashing |
| 155 | +======== |
| 156 | + |
| 157 | +STM32F072-EVAL Discovery kit includes an ST-LINK/V2 embedded debug tool interface. |
| 158 | +This interface is supported by the openocd version included in Zephyr SDK. |
| 159 | + |
| 160 | +Flashing an application to STM32F072-EVAL |
| 161 | +------------------------------------------- |
| 162 | + |
| 163 | +Here is an example for the :ref:`blinky-sample` application. |
| 164 | + |
| 165 | +.. zephyr-app-commands:: |
| 166 | + :zephyr-app: samples/basic/blinky |
| 167 | + :board: stm32f072_eval |
| 168 | + :goals: build flash |
| 169 | + |
| 170 | +You will see the LED blinking every second. |
| 171 | + |
| 172 | +Debugging |
| 173 | +========= |
| 174 | + |
| 175 | +You can debug an application in the usual way. Here is an example for the |
| 176 | +:ref:`blinky-sample` application. |
| 177 | + |
| 178 | +.. zephyr-app-commands:: |
| 179 | + :zephyr-app: samples/basic/blinky |
| 180 | + :board: stm32f072_eval |
| 181 | + :maybe-skip-config: |
| 182 | + :goals: debug |
| 183 | + |
| 184 | + |
| 185 | +.. _STM32F072-EVAL website: |
| 186 | + http://www.st.com/en/evaluation-tools/stm32072b-eval.html |
| 187 | + |
| 188 | +.. _STM32F072-EVAL board User Manual: |
| 189 | + http://www.st.com/resource/en/user_manual/dm00104135.pdf |
| 190 | + |
| 191 | +.. _STM32F072VB on www.st.com: |
| 192 | + http://www.st.com/en/microcontrollers/stm32f072vb.html |
| 193 | + |
| 194 | +.. _STM32F072 reference manual: |
| 195 | + http://www.st.com/resource/en/reference_manual/dm00031936.pdf |
0 commit comments