2018-07-26 11:48:55 +02:00
/**
@defgroup boards_nucleo-f103rb STM32 Nucleo-F103RB
@ingroup boards_common_nucleo64
@brief Support for the STM32 Nucleo-F103RB
## Overview
2020-02-13 20:35:21 +01:00
The Nucleo-F103RB is a board from ST's Nucleo family supporting a ARM Cortex-M3
2022-08-04 21:49:42 +02:00
STM32F103RB microcontroller with 20KiB of RAM and 128KiB of Flash.
2018-07-26 11:48:55 +02:00
## Hardware
2020-02-13 20:35:21 +01:00
![Nucleo64 F103RB](http://www.open-electronics.org/wp-content/uploads/2015/08/Figura2-500x467.png)
2018-07-26 11:48:55 +02:00
2023-03-17 15:04:17 +01:00
## Pinout
2024-10-14 17:29:24 +02:00
@image html pinouts/nucleo-f103rb.svg "Pinout for the Nucleo-F103RB (from user manual UM1724, http://www.st.com/resource/en/user_manual/dm00105823.pdf, page 30)" width=50%
2023-03-17 15:04:17 +01:00
2018-07-26 11:48:55 +02:00
### MCU
| MCU | STM32F103RB |
2020-02-13 20:35:21 +01:00
|:---------- |:----------------- |
| Family | ARM Cortex-M3 |
| Vendor | ST Microelectronics |
2022-08-04 21:49:42 +02:00
| RAM | 20KiB |
| Flash | 128KiB |
2020-02-13 20:35:21 +01:00
| Frequency | up to 72MHz |
2020-02-11 19:29:24 +01:00
| FPU | no |
2020-02-13 20:35:21 +01:00
| Timers | 7 (2x watchdog, 1 SysTick, 4x 16-bit) |
| ADCs | 1x 12-bit (16 channels) |
2018-07-26 11:48:55 +02:00
| UARTs | 3 |
| SPIs | 2 |
| I2Cs | 2 |
| RTC | 1 |
2020-02-13 20:35:21 +01:00
| USB | 1 |
| CAN | 1 |
| Vcc | 2.0V - 3.6V |
| Datasheet | [Datasheet](http://www.st.com/resource/en/datasheet/stm32f103rb.pdf) |
| Reference Manual | [Reference Manual](https://www.st.com/resource/en/reference_manual/cd00171190.pdf) |
| Programming Manual | [Programming Manual](https://www.st.com/resource/en/programming_manual/cd00228163.pdf) |
| Board Manual | [Board Manual](http://www.st.com/resource/en/user_manual/dm00105823.pdf) |
2018-07-26 11:48:55 +02:00
## Implementation Status
| Device | ID | Supported | Comments |
|:------------- |:------------- |:------------- |:------------- |
| MCU | STM32F103RB | partly | Energy saving modes not fully utilized |
| Low-level driver | GPIO | yes | |
| | PWM | yes (4 pins available) | |
| | UART | 2 UARTs | USART2 via STLink/USB or D0(RX)/D1(TX), USART1 on PA10(RX)/PA09(TX) and USART3 on PB11(RX)/PB10(TX) |
2024-06-25 10:09:31 +02:00
| | ADC | yes | Pins A0 - A5 |
2018-07-26 11:48:55 +02:00
| | I2C | yes (I2C1 and I2C2) | |
| | SPI | yes (SPI1 and SPI2) | |
| | USB | no | |
| | Timer | 2 16 bit timers (TIM2 and TIM3) | |
## Flashing the device
2022-07-21 22:23:35 +02:00
### Flashing the Board Using OpenOCD
2020-02-13 20:35:21 +01:00
The ST Nucleo-F103RB board includes an on-board ST-LINK V2 programmer. The
2018-07-26 11:48:55 +02:00
easiest way to program the board is to use OpenOCD. Once you have installed
OpenOCD (look [here](https://github.com/RIOT-OS/RIOT/wiki/OpenOCD) for
installation instructions), you can flash the board simply by typing:
```
2020-02-13 20:35:21 +01:00
make BOARD=nucleo-f103rb flash
2018-07-26 11:48:55 +02:00
```
and debug via GDB by simply typing
```
2020-02-13 20:35:21 +01:00
make BOARD=nucleo-f103rb debug
2018-07-26 11:48:55 +02:00
```
2022-07-21 22:23:35 +02:00
### Flashing the Board Using ST-LINK Removable Media
On-board ST-LINK programmer provides via composite USB device removable media.
Copying the HEX file causes reprogramming of the board. This task
could be performed manually; however, the cpy2remed (copy to removable
media) PROGRAMMER script does this automatically. To program board in
this manner, use the command:
```
make BOARD=nucleo-f103rb PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
could be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).
2018-07-26 11:48:55 +02:00
## Supported Toolchains
2020-02-13 20:35:21 +01:00
For using the ST Nucleo-F103RB board we strongly recommend the usage of the
2018-07-26 11:48:55 +02:00
[GNU Tools for ARM Embedded Processors](https://launchpad.net/gcc-arm-embedded)
toolchain.
*/