2018-07-26 11:48:55 +02:00
/**
@defgroup boards_nucleo-f091rc STM32 Nucleo-F091RC
@ingroup boards_common_nucleo64
@brief Support for the STM32 Nucleo-F091RC
## Overview
2020-02-13 20:34:45 +01:00
The Nucleo-F091RC is a board from ST's Nucleo family supporting a ARM Cortex-M0
2022-08-04 21:49:42 +02:00
STM32F091RC microcontroller with 32KiB of RAM and 256KiB of Flash.
2018-07-26 11:48:55 +02:00
## Hardware
2020-02-13 20:34:45 +01:00
![Nucleo64 F091RC](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-12 17:42:40 +02:00
@image html pinouts/nucleo-f091rc.svg "Pinout for the Nucleo-F091RC (from user manual UM1724, http://www.st.com/resource/en/user_manual/dm00105823.pdf, page 29)" width=50%
2018-07-26 11:48:55 +02:00
### MCU
| MCU | STM32F091RC |
2020-02-13 20:34:45 +01:00
|:---------- |:----------------- |
| Family | ARM Cortex-M0 |
| Vendor | ST Microelectronics |
2022-08-04 21:49:42 +02:00
| RAM | 32KiB |
| Flash | 256KiB |
2020-02-13 20:34:45 +01:00
| Frequency | up to 48MHz |
2018-07-26 11:48:55 +02:00
| FPU | no |
2020-02-13 20:34:45 +01:00
| Timers | 12 (8x 16-bit, 1x 32-bit [TIM2], 1x Systick, 2x watchdog) |
| ADCs | 1x 12-bit (up to 16 channels) |
2018-07-26 11:48:55 +02:00
| UARTs | 8 |
| SPIs | 2 |
| I2Cs | 2 |
2020-02-13 20:34:45 +01:00
| CAN | 1 |
| Vcc | 2.0V - 3.6V |
2018-07-26 11:48:55 +02:00
| Datasheet | [Datasheet](http://www.st.com/web/en/resource/technical/document/datasheet/DM00115237.pdf) |
| Reference Manual | [Reference Manual](http://www.st.com/web/en/resource/technical/document/reference_manual/DM00031936.pdf) |
| Programming Manual | [Programming Manual](http://www.st.com/web/en/resource/technical/document/programming_manual/DM00051352.pdf) |
2020-02-13 20:34:45 +01:00
| Board Manual | [Board Manual](http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00105823.pdf) |
2018-07-26 11:48:55 +02:00
### RIOT static pin mapping
please refer to [this](https://docs.google.com/spreadsheets/d/1gnxsux5WpFrn-33Ivb9nGgTBqooqgDYxRkhZms-cvsc/edit?usp=sharing)
document for the pin mapping as implemenented in `boards/nucleo-f091/include/periph_conf.h`
### User Interface
1 Button:
2020-02-13 20:34:45 +01:00
| NAME | USER |
2018-07-26 11:48:55 +02:00
|:----- |:----- |
2020-02-13 20:34:45 +01:00
| Pin | PC13 |
2018-07-26 11:48:55 +02:00
1 LEDs:
2020-02-13 20:34:45 +01:00
| NAME | LD2 |
| ----- | ----- |
| Color | green |
| Pin | PA5 |
2018-07-26 11:48:55 +02:00
## Implementation Status
| Device | ID | Supported | Comments |
|:------------- |:------------- |:------------- |:------------- |
| MCU | STM32F091RC | partly | Energy saving modes not fully utilized |
| Low-level driver | GPIO | no | |
| | PWM | no | |
| | UART | full | |
| | I2C | no | |
| | SPI | no | |
| | USB | no | |
| | Timer | full | |
## Flashing the device
2022-07-20 08:40:41 +02:00
### Flashing the Board Using OpenOCD
2020-02-13 20:34:45 +01:00
The ST Nucleo-F091RC 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:34:45 +01:00
make BOARD=nucleo-f091rc flash
2018-07-26 11:48:55 +02:00
```
and debug via GDB by simply typing
```
2020-02-13 20:34:45 +01:00
make BOARD=nucleo-f091rc debug
2018-07-26 11:48:55 +02:00
```
2022-07-20 08:40:41 +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-f091rc 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:34:45 +01:00
For using the ST Nucleo-F091RC 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.
*/