The STM3210C-EVAL evaluation board is a complete development platform for STMicroelectronic’s ARM Cortex-M3 core-based STM32F107VCT microcontroller.
The range of hardware features on the board help you to evaluate all peripherals (USB-OTG FS, ethernet, motor control, CAN, microSD CardTM, smartcard, USART, audio DAC, MEMS, EEPROM and more) and develop your own applications.
Extension headers make it easy to connect a daughterboard or wrapping board for your specific application.
STM3210C-EVAL provides the following hardware components:
- Three 5 V power supply options:
- Power jack
- USB connector
- Boot from user Flash, system memory or SRAM.
- I2S audio DAC, stereo audio jack.
- 2 GByte (or more) microSD CardTM.
- Both type A and B smartcard support.
- I2C compatible serial interface 64 Kbit EEPROM, MEMS and I/O expander.
- RS-232 communication.
- IrDA transceiver.
- USB-OTG full speed, USB microAB connector.
- IEEE-802.3-2002 compliant ethernet connector.
- Two channels of CAN2.0A/B compliant connection.
- Inductor motor control connector.
- JTAG and trace debug support.
- 3.2” 240x320 TFT color LCD with touch screen.
- Joystick with 4-direction control and selector.
- Reset, Wakeup, Tamper and User button.
- 4 color LEDs.
- RTC with backup battery.
- MCU consumption measurement circuit.
- Extension connector for daughterboard or wrapping board.
The Zephyr stm3210c_eval board configuration supports the following hardware features:
|NVIC||on-chip||nested vector interrupt controller|
|UART||on-chip||serial port-polling; serial port-interrupt|
|CLOCK||on-chip||reset and clock control|
Other hardware features are not yet supported in this Zephyr port.
The default configuration can be found in the defconfig file
Connections and IOs¶
Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as input (with or without pull-up or pull-down), or as peripheral alternate function. Most of the GPIO pins are shared with digital or analog alternate functions. All GPIOs are high current capable except for analog inputs.
Default Zephyr Peripheral Mapping:¶
- UART_2_TX : PD5
- UART_2_RX : PD6
- USER_PB : PB9
- LED2 : PD13
Programming and Debugging¶
STM3210C-EVAL board includes an ST-LINK/V2-1 embedded debug tool interface. At power-on, the board is in firmware-upgrade mode (also called DFU for “Device Firmware Upgrade”), allowing the firmware to be updated through the USB. This interface is supported by the openocd version included in Zephyr SDK.
Flashing an application to STM3210C-EVAL¶
Connect the STM3210C-EVAL to your host computer using the USB port, then build and flash an application in the usual way.
Here is an example for the Blinky Application application.
# On Linux/macOS cd $ZEPHYR_BASE/samples/basic/blinky mkdir build && cd build # On Windows cd %ZEPHYR_BASE%\samples\basic\blinky mkdir build & cd build # Use cmake to configure a Ninja-based build system: cmake -GNinja -DBOARD=stm3210c_eval .. # Now run ninja on the generated build system: ninja ninja flash
You will see the LED blinking every second.
You can run a serial host program to connect with your STM3210C-EVAL board. For example, on Linux:
$ minicom -D /dev/ttyACM0
You can debug an application in the usual way. Here is an example for the Hello World application.
# On Linux/macOS cd $ZEPHYR_BASE/samples/hello_world # If you already made a build directory (build) and ran cmake, just 'cd build' instead. mkdir build && cd build # On Windows cd %ZEPHYR_BASE%\samples\hello_world # If you already made a build directory (build) and ran cmake, just 'cd build' instead. mkdir build & cd build # If you already made a build directory (build) and ran cmake, just 'cd build' instead. # Use cmake to configure a Ninja-based build system: cmake -GNinja -DBOARD=stm3210c_eval .. # Now run ninja on the generated build system: ninja debug