STM32 MCU Getting Started Guide
Set up with your favorite AI
Gemini & other AI
Copy the setup prompt into your AI. Work through each step together, from checking your kit to getting it running.
Copy the prompt, then paste it into Gemini’s message box.
View prompt
Start developing with the STM32 MCU leaf (AP03). Choose a tool below to find its setup guide.
STM32 MCU
The STM32 processor leaf included in Basic Kit 2. Debugger connection instructions are also available.
Development tools
What to prepare
Section titled “What to prepare”This is a summary of the preparation shared by the guides for uploading through a USB leaf. Check your chosen environment guide and sample page for the detailed configuration and assembly diagram.
- AP03 STM32 MCU
- A PC running Windows, macOS, or Linux, with an internet connection
- A USB leaf and a data cable that fits its connector
- Sensors, power leaves, and mounting parts specified by your chosen sample
If you have Basic Kit 2, check which processor is fitted. Stop all power supplies, including USB, batteries, and external power, before changing leaves.
For the equipment needed to use a debugger, see How to connect the debugger.
How to write a program
Section titled “How to write a program”The Arduino IDE and PlatformIO guides linked above describe board configuration, uploading, and checking the result. For STM32CubeIDE, the English guide covers installation; project creation and upload instructions are available in the Japanese STM32CubeIDE guide.
Start with the check program in the guide for your tool. Once the development environment is working, move on to sensor and communication examples.
What to try next
Section titled “What to try next”The following examples are written for Arduino IDE. Each sample page lists its required leaves, libraries, code, and expected result.
- Temperature and humidity sensor: display temperature and humidity on your PC
- Illuminance sensor: measure ambient light
- Accelerometer: observe changes as the leaf tilts or moves
- STM32 Logger Beacon: try data logging and BLE transmission
For existing projects in PlatformIO, also follow the sample project instructions in the PlatformIO guide.
If you need help
Section titled “If you need help”Start with your development environment guide and the FAQ. The AP03 technical reference shows switch locations and pin assignments.
If the issue continues, contact us with your leaf model numbers, development tools, steps tried, and the complete error message.