1.. _nucleo_c031c6_board: 2 3ST Nucleo C031C6 4################ 5 6Overview 7******** 8The STM32 Nucleo-64 development board with STM32C031C6 MCU, supports Arduino and ST morpho connectivity. 9 10The STM32 Nucleo board provides an affordable, and flexible way for users to try out new concepts, 11and build prototypes with the STM32 microcontroller, choosing from the various 12combinations of performance, power consumption and features. 13 14The STM32 Nucleo board integrates the ST-LINK/V2-1 debugger and programmer. 15 16The STM32 Nucleo board comes with the STM32 comprehensive software HAL library together 17with various packaged software examples. 18 19.. image:: img/nucleo_c031c6.jpg 20 :align: center 21 :alt: Nucleo C031C6 22 23More information about the board can be found at the `Nucleo C031C6 website`_. 24 25Hardware 26******** 27Nucleo C031C6 provides the following hardware components: 28 29- STM32 microcontroller in 48-pin package featuring 32 Kbytes of Flash memory 30 and 12 Kbytes of SRAM. 31- Extension resource: 32 33 - Arduino* Uno V3 connectivity 34 35- On-board ST-LINK/V2-1 debugger/programmer with SWD connector: 36 37- Flexible board power supply: 38 39 - USB VBUS or external source (3.3V, 5V, 7 - 12V) 40 - Current consumption measurement (IDD) 41 42- Four LEDs: 43 44 - USB communication (LD1), USB power fault LED (LD2), power LED (LD3), 45 user LED (LD4) 46 47- Two push-button: USER and RESET 48 49- USB re-enumeration capability. Three different interfaces supported on USB: 50 51 - Virtual COM port 52 - Mass storage 53 - Debug port 54 55More information about STM32C031C6 can be found here: 56`STM32C0x1 reference manual`_ 57 58Supported Features 59================== 60 61The Zephyr nucleo_c031c6 board configuration supports the following hardware features: 62 63+-----------+------------+-------------------------------------+ 64| Interface | Controller | Driver/Component | 65+===========+============+=====================================+ 66| NVIC | on-chip | nested vector interrupt controller | 67+-----------+------------+-------------------------------------+ 68| UART | on-chip | serial port-polling; | 69| | | serial port-interrupt | 70+-----------+------------+-------------------------------------+ 71| PINMUX | on-chip | pinmux | 72+-----------+------------+-------------------------------------+ 73| GPIO | on-chip | gpio | 74+-----------+------------+-------------------------------------+ 75| CLOCK | on-chip | reset and clock control | 76+-----------+------------+-------------------------------------+ 77| RTC | on-chip | counter | 78+-----------+------------+-------------------------------------+ 79| IWDG | on-chip | independent watchdog | 80+-----------+------------+-------------------------------------+ 81| WWDG | on-chip | window watchdog | 82+-----------+------------+-------------------------------------+ 83| PWM | on-chip | pwm | 84+-----------+------------+-------------------------------------+ 85| ADC | on-chip | ADC Controller | 86+-----------+------------+-------------------------------------+ 87| die-temp | on-chip | die temperature sensor | 88+-----------+------------+-------------------------------------+ 89| I2C | on-chip | i2c | 90+-----------+------------+-------------------------------------+ 91| DMA | on-chip | Direct Memory Access | 92+-----------+------------+-------------------------------------+ 93 94Other hardware features are not yet supported in this Zephyr port. 95 96The default configuration can be found in the defconfig file: 97``boards/arm/nucleo_c031c6/nucleo_c031c6_defconfig`` 98 99Connections and IOs 100=================== 101 102Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as 103input (with or without pull-up or pull-down), or as peripheral alternate function. Most of the 104GPIO pins are shared with digital or analog alternate functions. All GPIOs are high current 105capable except for analog inputs. 106 107Default Zephyr Peripheral Mapping: 108---------------------------------- 109 110- UART_2 TX/RX : PA2/PA3 (ST-Link Virtual Port Com) 111- LD4 : PA5 112 113For mode details please refer to `STM32 Nucleo-64 board User Manual`_. 114 115Programming and Debugging 116************************* 117 118Applications for the ``nucleo_c031c6`` board configuration can be built and 119flashed in the usual way (see :ref:`build_an_application` and 120:ref:`application_run` for more details). 121 122Flashing 123======== 124 125Nucleo C031C6 board includes an ST-LINK/V2-1 embedded debug tool interface. 126 127Flashing an application to Nucleo C031C6 128---------------------------------------- 129 130Here is an example for the :zephyr:code-sample:`blinky` application. 131 132.. zephyr-app-commands:: 133 :zephyr-app: samples/basic/blinky 134 :board: nucleo_c031c6 135 :goals: build flash 136 137You will see the LED blinking every second. 138 139References 140********** 141 142.. target-notes:: 143 144.. _Nucleo C031C6 website: 145 https://www.st.com/en/evaluation-tools/nucleo-c031c6.html 146 147.. _STM32C0x1 reference manual: 148 https://www.st.com/resource/en/reference_manual/rm0490-stm32c0x1-advanced-armbased-64bit-mcus-stmicroelectronics.pdf 149 150.. _STM32 Nucleo-64 board User Manual: 151 https://www.st.com/resource/en/user_manual/um2953-stm32c0-nucleo64-board-mb1717-stmicroelectronics.pdf 152