Arduino is a great place to start if you're just getting started with microcontrollers. It uses a simplified programming structure with C or C++.
Arduino support is provided on the ThunderPack by the STM32duino project.
- Arduino
- Then install STM32 Cores 1.8+ in your Arduino application.
- STM32CubeProgrammer
ℹ️ Mac users: There is a known issue with installing STM32CubeProgrammer on mac. You'll likely need to install it through your terminal application. more info
Open your Arduino application and make the following selections under the Tools menu:
- Board: Generic STM32L0 series
- Board part number: ThunderPack
- Upload method: STM32CubeProgrammer (DFU)
- Open the
ino
file (i.e. Blink.ino) in your Arduino application. - Plug your ThunderPack into your computer with a USB cable.
- Put the ThunderPack in bootloader mode by pressing the tactile button while you turn it on. (i.e. press both buttons at the same time)
- Click Sketch > Upload
Now the program will be compiled and automatically uploaded to your ThunderPack (this might take a couple minutes). If all goes well, and no errors occur, the example program should start automatically.
Instructions on how to build an example and program it to your ThunderPack with Arduino.