|
| 1 | +.. _nucleo_f103rb_board: |
| 2 | + |
| 3 | +ST Nucleo F103RB |
| 4 | +################ |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | +The STM32 Nucleo-64 development board with STM32F103RB MCU, supports Arduino and ST morpho connectivity. |
| 9 | + |
| 10 | +The STM32 Nucleo board provides an affordable, and flexible way for users to try out new concepts, |
| 11 | +and build prototypes with the STM32 microcontroller, choosing from the various |
| 12 | +combinations of performance, power consumption, and features. |
| 13 | + |
| 14 | +The Arduino* Uno V3 connectivity support and the ST morpho headers allow easy functionality |
| 15 | +expansion of the STM32 Nucleo open development platform with a wide choice of |
| 16 | +specialized shields. |
| 17 | + |
| 18 | +The STM32 Nucleo board integrates the ST-LINK/V2-1 debugger and programmer. |
| 19 | + |
| 20 | +The STM32 Nucleo board comes with the STM32 comprehensive software HAL library together |
| 21 | +with various packaged software examples. |
| 22 | + |
| 23 | +.. image:: img/nucleo_f103rb.jpg |
| 24 | + :width: 500px |
| 25 | + :height: 367px |
| 26 | + :align: center |
| 27 | + :alt: Nucleo F103RB |
| 28 | + |
| 29 | +More information about the board can be found at the `Nucleo F103RB website`_. |
| 30 | + |
| 31 | +Hardware |
| 32 | +******** |
| 33 | +Nucleo F103RB provides the following hardware components: |
| 34 | + |
| 35 | +- STM32 microcontroller in QFP64 package |
| 36 | +- Two types of extension resources: |
| 37 | + |
| 38 | + - Arduino* Uno V3 connectivity |
| 39 | + - ST morpho extension pin headers for full access to all STM32 I/Os |
| 40 | + |
| 41 | +- ARM* mbed* |
| 42 | +- On-board ST-LINK/V2-1 debugger/programmer with SWD connector: |
| 43 | + |
| 44 | + - Selection-mode switch to use the kit as a standalone ST-LINK/V2-1 |
| 45 | + |
| 46 | +- Flexible board power supply: |
| 47 | + |
| 48 | + - USB VBUS or external source (3.3V, 5V, 7 - 12V) |
| 49 | + - Power management access point |
| 50 | + |
| 51 | +- Three LEDs: |
| 52 | + |
| 53 | + - USB communication (LD1), user LED (LD2), power LED (LD3) |
| 54 | + |
| 55 | +- Two push-buttons: USER and RESET |
| 56 | +- USB re-enumeration capability. Three different interfaces supported on USB: |
| 57 | + |
| 58 | + - Virtual COM port |
| 59 | + - Mass storage |
| 60 | + - Debug port |
| 61 | + |
| 62 | +- Support of wide choice of Integrated Development Environments (IDEs) including: |
| 63 | + |
| 64 | + - IAR |
| 65 | + - ARM Keil |
| 66 | + - GCC-based IDEs |
| 67 | + |
| 68 | +More information about STM32F103RB can be found here: |
| 69 | + |
| 70 | +- `STM32F103 reference manual`_ |
| 71 | +- `STM32F103 data sheet`_ |
| 72 | + |
| 73 | +Supported Features |
| 74 | +================== |
| 75 | + |
| 76 | +The Zephyr nucleo_f103rb board configuration supports the following hardware features: |
| 77 | + |
| 78 | ++-----------+------------+-------------------------------------+ |
| 79 | +| Interface | Controller | Driver/Component | |
| 80 | ++===========+============+=====================================+ |
| 81 | +| NVIC | on-chip | nested vector interrupt controller | |
| 82 | ++-----------+------------+-------------------------------------+ |
| 83 | +| UART | on-chip | serial port-polling; | |
| 84 | +| | | serial port-interrupt | |
| 85 | ++-----------+------------+-------------------------------------+ |
| 86 | +| PINMUX | on-chip | pinmux | |
| 87 | ++-----------+------------+-------------------------------------+ |
| 88 | +| GPIO | on-chip | gpio | |
| 89 | ++-----------+------------+-------------------------------------+ |
| 90 | +| CLOCK | on-chip | reset and clock control | |
| 91 | ++-----------+------------+-------------------------------------+ |
| 92 | +| FLASH | on-chip | flash memory | |
| 93 | ++-----------+------------+-------------------------------------+ |
| 94 | +| WATCHDOG | on-chip | independent watchdog | |
| 95 | ++-----------+------------+-------------------------------------+ |
| 96 | +| ADC | on-chip | ADC Controller | |
| 97 | ++-----------+------------+-------------------------------------+ |
| 98 | + |
| 99 | +Other hardware features are not yet supported in this Zephyr port. |
| 100 | + |
| 101 | +The default configuration can be found in the defconfig file: |
| 102 | +``boards/arm/nucleo_f103rb/nucleo_f103rb_defconfig`` |
| 103 | + |
| 104 | +Connections and IOs |
| 105 | +=================== |
| 106 | + |
| 107 | +Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as |
| 108 | +input (with or without pull-up or pull-down), or as peripheral alternate function. Most of the |
| 109 | +GPIO pins are shared with digital or analog alternate functions. All GPIOs are high current |
| 110 | +capable except for analog inputs. |
| 111 | + |
| 112 | +Board connectors: |
| 113 | +----------------- |
| 114 | +.. image:: img/nucleo_f103rb_connectors.png |
| 115 | + :width: 800px |
| 116 | + :align: center |
| 117 | + :height: 619px |
| 118 | + :alt: Nucleo F103RB connectors |
| 119 | + |
| 120 | +Default Zephyr Peripheral Mapping: |
| 121 | +---------------------------------- |
| 122 | + |
| 123 | +- UART_1 TX/RX : PA9/PA10 |
| 124 | +- UART_2 TX/RX : PA2/PA3 (ST-Link Virtual COM Port) |
| 125 | +- SPI1 NSS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7 (Arduino SPI) |
| 126 | +- SPI2 SCK/MISO/MOSI : PB12/PB13/PB14/PB15 |
| 127 | +- PWM1_CH1: PA8 |
| 128 | +- USER_PB : PC13 |
| 129 | +- LD1 : PA5 |
| 130 | + |
| 131 | +For mode details please refer to `STM32 Nucleo-64 board User Manual`_. |
| 132 | + |
| 133 | +Programming and Debugging |
| 134 | +************************* |
| 135 | + |
| 136 | +Applications for the ``nucleo_f103rb`` board configuration can be built and |
| 137 | +flashed in the usual way (see :ref:`build_an_application` and |
| 138 | +:ref:`application_run` for more details). |
| 139 | + |
| 140 | +Flashing |
| 141 | +======== |
| 142 | + |
| 143 | +Nucleo F103RB board includes an ST-LINK/V2-1 embedded debug tool interface. |
| 144 | +This interface is supported by the openocd version included in the Zephyr SDK. |
| 145 | + |
| 146 | +Flashing an application to Nucleo F103RB |
| 147 | +---------------------------------------- |
| 148 | + |
| 149 | +Here is an example for the :ref:`blinky-sample` application. |
| 150 | + |
| 151 | +.. zephyr-app-commands:: |
| 152 | + :zephyr-app: samples/basic/blinky |
| 153 | + :board: nucleo_f103rb |
| 154 | + :goals: build flash |
| 155 | + |
| 156 | +You will see the LED blinking every second. |
| 157 | + |
| 158 | +Debugging |
| 159 | +========= |
| 160 | + |
| 161 | +You can debug an application in the usual way. Here is an example for the |
| 162 | +:ref:`blinky-sample` application. |
| 163 | + |
| 164 | +.. zephyr-app-commands:: |
| 165 | + :zephyr-app: samples/basic/blinky |
| 166 | + :board: nucleo_f103rb |
| 167 | + :maybe-skip-config: |
| 168 | + :goals: debug |
| 169 | + |
| 170 | +References |
| 171 | +********** |
| 172 | + |
| 173 | +.. target-notes:: |
| 174 | + |
| 175 | +.. _Nucleo F103RB website: |
| 176 | + http://www.st.com/en/evaluation-tools/nucleo-f103rb.html |
| 177 | + |
| 178 | +.. _STM32F103 reference manual: |
| 179 | + http://www.st.com/resource/en/reference_manual/cd00171190.pdf |
| 180 | + |
| 181 | +.. _STM32F103 data sheet: |
| 182 | + http://www.st.com/resource/en/datasheet/stm32f103rb.pdf |
| 183 | + |
| 184 | +.. _STM32 Nucleo-64 board User Manual: |
| 185 | + http://www.st.com/resource/en/user_manual/dm00105823.pdf |
0 commit comments