Sergey Lyubka provides a guide written for developers who wish to start programming microcontrollers using the GCC compiler and a bare metal approach. It uses a Nucleo-F429ZI development board with STM32F429 microcontroller. But basic principles are applicable to any other microcontroller.
In this guide, I’ll show how to program a microcontroller using just a compiler and a datasheet, nothing else. Later I’ll explain what are the vendor’s CMSIS headers, how and why they should be used. We’ll learn how to blink LEDs, how to redirect
printf()to UART, how to set up the system clock, how to use interrupts, and even how to run a web server with a device dashboard.
See the entire tutorial on GitHub.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
No comments yet.
Adafruit has a “be excellent to each other” comment policy. Help us keep the community here positive and helpful. Stick to the topic, be respectful of makers of all ages and skill levels. Be kind, and don’t spam – Thank you!