![gpio pins on nucleo f401re gpio pins on nucleo f401re](https://opensafetydemo.sourceforge.io/doc/V1.2.0/html/terasic-de2-115_jp5.png)
In any case, feel free, to choose the STM32 evaluation boards that you prefer. In our case we decide to use the STM32F401REand the NUCLEO-F401RE and so we download the F4 library. Low Layer ( LL) APIs, a light-weight, optimized, expert oriented set of APIs designed for both performance and runtime efficiencyīoth the HAL and LL APIs are production-ready and have been developed in compliance with MISRA-C®:2004 guidelines with some documented exceptions (reports available on demand) and ISO/TS 16949.įurthermore, ST-specific validation processes add a deeper-level qualification. The Hardware Abstraction Layer ( HAL) enabling portability between different STM32 devices via standardized API calls Middleware components (USB, TCP/IP, Graphics, FAT file system, etc) It’s also necessary download the STM library package for the STM32 families that you decide to use. See here for know how to install STM32CubeIDE.
![gpio pins on nucleo f401re gpio pins on nucleo f401re](https://core-electronics.com.au/media/catalog/product/cache/1/image/650x/fe1bcd18654db18f328c2faaaf3c690a/n/u/nucleo-f401re_03.jpg)
The official documentation regarding STM32CubeIDE is: UM2609 – STM32CubeIDE user guide
![gpio pins on nucleo f401re gpio pins on nucleo f401re](https://i.stack.imgur.com/65uN4.png)
The pattern set by the sketch is reversed. Note that according to the datasheet, pin C13 (PC13) is the tamper-RTC pin and as such is low current input. The pin mapping that I came up with: Arduino pin 2 = B7Īrduino pin 17 = C13, onboard led, input only. the loop function runs over and over again foreverĭigitalWrite(ledPin, HIGH) // turn the LED on (HIGH is the voltage level)ĭigitalWrite(ledPin, LOW) // turn the LED off by making the voltage LOW initialize digital pin LED_BUILTIN as an output. the setup function runs once when you press reset or power the board Number of accessible GPIO pins on the blue pill. I changed the led pin number starting with 2, progressing all the way to 31,the total Sketch is modified "blink" in the examples folder of the IDE.Īll pins responded to digitalWrite, Look at the datasheet for which pins are ADC and This example code is in the public domain. Model, check the Technical Specs of your board at: If you want to know what pin the on-board LED is connected to on your Arduino Most Arduinos have an on-board LED you can control. Turns an LED on in a set pattern, then off for one second, repeatedly. Modified Blink for "Blue Pill" STM32F103C8T6 I modified the blink sketch a small amount to set a pattern of flashes so there would be no mistake on what I was seeing. If this is helpful for others, it was worth the time I took this morning to do this. I could find no mapping of pins anywhere I looked between what the Arduino IDE would accept and the pin on the "blue pill". Let me start by saying it could be my lack of search abilities.