GCC-based firmware project for the TS100 soldering iron, targeting an STM32F10x medium-density Cortex-M3 MCU.
This repository contains a historical embedded-firmware build using the GNU Arm Embedded toolchain instead of a vendor IDE. The code includes temperature sensing and control, PID regulation, OLED UI, settings storage, watchdog handling, I2C, an MMA8652FC accelerometer, and low-level STM32 peripheral support.
Project status: Historical / reference project. The repository is preserved as an example of a small STM32 firmware system built directly with
arm-none-eabi-gccand Make.
- Bare-metal STM32F10x firmware
- GNU Arm toolchain build (
arm-none-eabi-gcc) - Cortex-M3 / Thumb target
- PID-based soldering-tip temperature control
- ADC and DMA support
- OLED display and UI modes
- MMA8652FC accelerometer over I2C
- Settings storage and calibration handling
- Independent watchdog support
- USB-bootloader-aware vector-table offset
- ELF and Intel HEX build outputs
The application entry point is onboard/main.c. Startup initializes the system clock, interrupt-vector offset, GPIO, external interrupts, timers, ADC/DMA, I2C, OLED, accelerometer, PID controller, calibration/settings, and watchdog before entering the UI loop.
Power-on / Reset
|
v
System clock + NVIC
|
+--> GPIO / EXTI
+--> Timer / heater control
+--> ADC + DMA / temperature sensing
+--> I2C --> MMA8652FC accelerometer
+--> OLED / user interface
+--> PID / temperature regulation
+--> Settings / calibration
+--> Watchdog
|
v
Main loop
|
+--> clear watchdog
+--> process UI
+--> draw UI
+--> delay
The firmware reserves the first 0x4000 bytes of flash for the USB bootloader by relocating the interrupt vector table during initialization.
.
├── Makefile GNU Arm build
├── README.md
├── bin/ Prebuilt ELF / HEX images
└── onboard/ Firmware sources, STM32 support, linker script
├── main.c
├── Analog.c/.h
├── Bios.c/.h
├── I2C.c/.h
├── Interrupt.c/.h
├── MMA8652FC.c/.h
├── Modes.c/.h
├── Oled.c/.h
├── PID.c/.h
├── Settings.c/.h
├── stm32f10x_*.c/.h
├── startup_stm32f10x_md.s
├── system_stm32f10x.c
└── stm32_flash.ld
The Makefile expects the GNU Arm Embedded tools to be available in PATH:
arm-none-eabi-gcc
arm-none-eabi-objcopy
make
The build uses:
-mthumb
-mcpu=cortex-m3
-DSTM32F10X_MD
-DUSE_STDPERIPH_DRIVER
-Os
--specs=nano.specs
From the repository root:
makeExpected outputs:
bin/ts100.elf
bin/ts100.hex
To remove generated objects and images:
make cleanA GDB-oriented build can be selected with:
make DEBUG=GDBThis switches from size optimization to -O0 and enables -ggdb debug information.
| Component | Role |
|---|---|
Analog |
ADC/DMA and analog measurements |
Bios |
Board-level hardware initialization and services |
I2C |
I2C peripheral support |
Interrupt |
Interrupt and timer handlers |
MMA8652FC |
Accelerometer interface |
Modes |
User-interface operating modes |
Oled |
OLED display handling |
PID |
Temperature-control PID logic |
Settings |
Runtime configuration and stored settings |
The main loop is intentionally simple:
while (1) {
Clear_Watchdog();
ProcessUI();
DrawUI();
delayMs(50);
}Time-critical sensing and heater-control functions are handled by the initialized peripheral and interrupt infrastructure rather than by a large foreground scheduler.
The repository currently includes historical prebuilt artifacts:
bin/ts100.elf
bin/ts100.hex
Treat these as reference artifacts. Rebuild from source with a known toolchain before using the firmware on hardware.
- The source identifies the application code as originally created by Ben V. Brown; this repository preserves and builds that firmware in a GCC/Make-based layout.
- The code uses the STM32F10x Standard Peripheral Library style of device support.
- Toolchain versions are not pinned in this historical repository, so modern GNU Arm releases may require compatibility adjustments.
- Flashing procedures, exact TS100 hardware revisions, bootloader compatibility, and electrical safety requirements are not fully documented here. Verify those details before programming real hardware.
No explicit license file is currently present in this repository. Source provenance and upstream licensing should be reviewed before redistribution or derivative use.