Skip to content

Board: Nucleo32 F042

Jose Alamos edited this page Aug 9, 2018 · 4 revisions

WARNING: This entry will be deprecated. All content has been moved to doc.riot-os.org

Overview

The Nucleo-F042 is a board from ST's Nucleo family supporting a ARM Cortex-M0 STM32F042K6 microcontroller with 6Kb of SRAM and 32Kb of ROM Flash.

Hardware

Nucleo32-F042

MCU

MCU STM32F042K6
Family ARM Cortex-M0
Vendor ST Microelectronics
RAM 6Kb
Flash 32Kb
Frequency up to 48MHz)
FPU no
Timers 9 (2x watchdog, 1 SysTick, 5x 16-bit, 1x 32-bit)
ADCs 1x 12-bit
UARTs 2
SPIs 2
I2Cs 1
RTC 1
Vcc 2.0V - 3.6V
Datasheet Datasheet
Reference Manual [http://www.st.com/resource/en/datasheet/stm32f042k6.pdf)
Programming Manual Programming Manual
Board Manual Board Manual

Implementation Status

Device ID Supported Comments
MCU STM32F042K6 partly Energy saving modes not fully utilized
Low-level driver GPIO yes
PWM yes (3 pins available)
UART 1 UARTs USART2 via STLink/USB or D0(RX)/D1(TX) and USART1 on PA10(RX)/PA09(TX)
ADC 5 pins
I2C no
SPI no
USB no
Timer 1 32 bit timers

Flashing the device

The ST Nucleo32-F303 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 for installation instructions), you can flash the board simply by typing

make BOARD=nucleo32-f042 flash

and debug via GDB by simply typing

make BOARD=nucleo32-f042 debug

Supported Toolchains

For using the ST Nucleo32-F042 board we strongly recommend the usage of the GNU Tools for ARM Embedded Processors toolchain.

Clone this wiki locally
You can’t perform that action at this time.