The STM-32 NUCLEO-F401RE is a development board manufactured by STMicroelectronics, featuring the STM32F401RE microcontroller. This microcontroller is based on the ARM Cortex-M4 core, offering high performance and low power consumption. The board is designed to provide a flexible platform for prototyping and developing embedded applications. It supports a wide range of connectivity options, including USB, UART, I2C, and SPI, and is compatible with both Arduino Uno R3 and ST morpho headers, enabling easy expansion with additional shields and modules.
The STM-32 NUCLEO-F401RE features multiple pin headers for connectivity. Below is a summary of the key pin configurations:
Pin Name | Functionality | Description |
---|---|---|
A0-A5 | Analog Input | 6 analog input pins (12-bit ADC) |
D0-D13 | Digital I/O | 14 digital I/O pins (6 PWM-capable) |
VIN | Power Input | External power input (7-12V) |
5V | Power Output | 5V output (USB or external power) |
3.3V | Power Output | 3.3V regulated output |
GND | Ground | Common ground |
RESET | Reset | Resets the microcontroller |
Pin Name | Functionality | Description |
---|---|---|
PAx, PBx | GPIO Pins | General-purpose I/O pins |
VDD | Power Supply | 3.3V power supply |
GND | Ground | Common ground |
NRST | Reset | Microcontroller reset pin |
OSC_IN | External Clock Input | Input for external clock source |
OSC_OUT | External Clock Output | Output for external clock source |
Powering the Board:
Programming the Board:
Connecting Peripherals:
Running the Code:
The following example demonstrates how to blink an LED connected to pin D13:
// Blink an LED on pin D13 (built-in LED on the NUCLEO-F401RE)
void setup() {
pinMode(13, OUTPUT); // Set pin D13 as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
The board is not detected by the computer:
Code upload fails:
The board does not power on:
Peripherals are not working as expected:
Q: Can I use the STM-32 NUCLEO-F401RE with the Arduino IDE?
A: Yes, the board is compatible with the Arduino IDE. Install the STM32 core to program it using Arduino libraries.
Q: What is the maximum current output of the GPIO pins?
A: Each GPIO pin can source or sink up to 25 mA. However, it is recommended to limit the current to 8 mA for safe operation.
Q: Can I use the board without an external programmer?
A: Yes, the board includes an integrated ST-LINK/V2-1 debugger/programmer for programming and debugging.
Q: How do I reset the board?
A: Press the RESET button on the board to perform a hardware reset.
Q: Is the board compatible with 5V logic?
A: The STM32F401RE operates at 3.3V logic levels. Use level shifters if interfacing with 5V devices.