initialize digital pin LED_BUILTIN as an output. the setup function runs once when you press reset or power the board LD1 is not attached to PA5/D13 pin, instead LD2). STM32 Nucleo-64 development board with STM32F401RE MCU, supports Arduino portability of Arduino to STM32 Nucleo F401RE pin Blink exampleīy powering On and Off alternatively one Arduino D13 aka Nucleo PA5 pin, you should see Green LED2 blinking (I noticed a labeling error on the official image above. More info on Nucleo development board following link: The image below assign some STM32 Nucleo F401RE version board pin as used on Arduino UNO board (Green coloured labels). To perform this task follow link: STM32Duino getting started Pin compatibility to Nucleo STM32F401RE Installing STM32 Core devices on Arduino IDEīefore to use STM32 Core microcontroller by Arduino IDE editing and programming platform, you have to upload as a new Device the STM32 Core Devices. FILE -> EXAMPLES -> LiquidCrystal -> HelloWorld.FILE -> EXAMPLES -> BASICS -> AnalogReadSerial.FILE -> EXAMPLES -> BASICS -> DigitalReadSerial.
#NUCLEO F401RE ARDUINO LIBRARY SERIAL#
send an information trough a Serial port.measure a voltage by internal ADC converter.measure the voltage on a Digital input pin (BUTTON).change the state of a GPIO pin (BLINK a LED).In the Arduino IDE are built in simple examples like: I’m going to show what happen when you use Arduino C programming language on a STM32F401RE Nucleo board. I tested how is the grade of portability of Arduino C language on STM Core microcontroller board.