mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b475598cb8
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
84 lines
3.1 KiB
Plaintext
84 lines
3.1 KiB
Plaintext
/**
|
|
@defgroup boards_nucleo-f302r8 STM32 Nucleo-F302R8
|
|
@ingroup boards_common_nucleo64
|
|
@brief Support for the STM32 Nucleo-F302R8
|
|
|
|
## Overview
|
|
|
|
The [Nucleo-F302R8](http://www.st.com/en/evaluation-tools/nucleo-f302r8.html)
|
|
is
|
|
a board from ST's Nucleo family supporting a ARM Cortex-M4
|
|
[STM32F302R8](http://www.st.com/en/microcontrollers/stm32f302r8.html)
|
|
microcontroller with 16KB of RAM and 64KB of ROM.
|
|
|
|
## Hardware
|
|
|
|
![nucleo image](http://www.open-electronics.org/wp-content/uploads/2015/08/Figura2-500x467.png)
|
|
|
|
|
|
### MCU
|
|
| MCU | STM32F302R8 |
|
|
|:---------- |:--------------------- |
|
|
| Family | ARM Cortex-M4 |
|
|
| Vendor | ST Microelectronics |
|
|
| RAM | 16KB |
|
|
| Flash | 64KB |
|
|
| Frequency | up to 72MHz |
|
|
| FPU | yes |
|
|
| Timers | 9 (5x 16-bit, 1x 32-bit [TIM2], 2x watchdog, 1x systick) |
|
|
| ADCs | 1 with selectable resolution (6,8,10,12-bit) |
|
|
| UARTs | 3 |
|
|
| SPIs | 2 |
|
|
| I2Cs | 3 |
|
|
| RTC | 1 |
|
|
| CAN | 1 |
|
|
| USB | 1 |
|
|
| Vcc | 2.0V - 3.6V |
|
|
| Datasheet | [Datasheet](http://www.st.com/resource/en/datasheet/stm32f302r8.pdf) |
|
|
| Reference Manual | [Reference Manual](http://www.st.com/resource/en/reference_manual/dm00094349.pdf) |
|
|
| Programming Manual | [Programming Manual](http://www.st.com/resource/en/programming_manual/dm00046982.pdf) |
|
|
| Board Manual | [Board Manual](http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00105823.pdf) |
|
|
|
|
|
|
## Implementation Status
|
|
|
|
| Device | ID | Supported | Comments |
|
|
|:------------- |:------------- |:------------- |:------------- |
|
|
| MCU | STM32F302R8 | partly | Energy saving modes not fully utilized |
|
|
| Low-level driver | GPIO | yes | |
|
|
| | PWM | one PWM (D5) | |
|
|
| | UART | three UART | |
|
|
| | I2C | no | |
|
|
| | SPI | one SPI (SPI2) | |
|
|
| | USB | no | |
|
|
| | Timer | one 32 timer (TIM2) | |
|
|
|
|
|
|
## Flashing the device
|
|
|
|
The ST Nucleo-F302R8 board includes an on-board ST-LINK V2-1 programmer.
|
|
The 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
|
|
|
|
```
|
|
make BOARD=nucleo-f302r8 flash
|
|
```
|
|
and debug via GDB by simply typing
|
|
```
|
|
make BOARD=nucleo-f302r8 debug
|
|
```
|
|
|
|
### Troubleshooting
|
|
|
|
For some reason the ST Link programmer can be outdated, making it impossible
|
|
to
|
|
flash or to access the debug UART via USB. To fix this, please use
|
|
the ST Link firmware update tool following
|
|
[this documentation](http://www.st.com/en/embedded-software/stsw-link007.html).
|
|
|
|
## Supported Toolchains
|
|
For using the ST Nucleo-F302R8 board we strongly recommend the usage of
|
|
the [GNU Tools for ARM Embedded Processors](https://launchpad.net/gcc-arm-embedded) toolchain.
|
|
*/
|