Back to Trending
RepositoryRust
hemashushu

hemashushu/practice-mcu-bare-metal-rust

A bare metal (register level) STM32F103C8T6/STM32F103 MCU program written in pure Rust without any IDE, SDK, HAL or library, and no assembly code, the only tool required is the Rust compiler.

132stars
3forks
0issues
2views

🎯 Bare-metal STM32F103 bằng Rust: Không IDE, không HAL, chỉ có Rust

Bare-metal STM32F103C8T6/STM32F103 bằng Rust thuần, không dùng IDE, SDK, HAL hay thư viện nào, chỉ cần trình biên dịch Rust.

Dự án practice-mcu-bare-metal-rust của hemashushu là một chương trình bare-metal (cấp độ thanh ghi) cho vi điện tử STM32F103C8T6/STM32F103, viết hoàn toàn bằng Rust mà không cần bất kỳ IDE, SDK, HAL hay thư viện nào, cũng không có mã assembly. Mọi thứ chỉ cần có trình biên dịch Rust. Dự án thực hiện các chức năng cơ bản như đọc/ghi GPIO, đặt đồng hồ hệ thống, SysTick và ngắt, cũng như truyền thức UART bằng cách trực tiếp đọc/ghi các thanh ghi phần cứng.

✨ Điểm nổi bật

  • GPIO read and write: Đọc và ghi tín hiệu các chân GPIO.
  • Set system clock: Cấu hình đồng hồ hệ thống cho vi điện tử.
  • SysTick and interrupt: Sử dụng bộ đếm SysTick và xử lý ngắt.
  • UART read and write: Truyền và nhận dữ liệu qua giao thức UART.

💡 Vì sao đáng chú ý

Dự án này khác biệt so với các dự án bare-metal khác bởi việc sử dụng hoàn toàn ngôn ngữ Rust mà không cần bất kỳ thư viện phần cứng (HAL) nào, giúp người dùng hiểu sâu hơn về cách hoạt động của vi điện tử STM32 và các thanh ghi phần cứng. Phù hợp với những người muốn học hỏi về lập trình bare-metal trên STM32 bằng Rust mà không cần phụ thuộc vào công cụ hay thư viện phức tạp.


#BareMetal #Rust #STM32 #Embedded #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
tock/tock

A secure embedded operating system for microcontrollers

6.5k
Nov 18, 2026
RepositoryRust
rtic-rs/rtic

Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers

2.4k
Nov 16, 2026
RepositoryGo
tinygo-org/tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.

17.9k
Nov 17, 2026
RepositoryC
stlink-org/stlink

Open source STM32 MCU programming toolset

5.2k
Oct 9, 2026
RepositoryC
cpq/bare-metal-programming-guide

A bare metal programming guide (ARM microcontrollers)

5.1k
Jul 3, 2026
RepositoryC
but0n/Avem

🚁 轻量级无人机飞控-[Drone]-[STM32]-[PID]-[BLDC]

2.9k
Oct 3, 2023
RepositoryC
ARMmbed/DAPLink

No description provided.

2.9k
Nov 9, 2026
RepositoryC
pikasTech/PikaPython

An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.

1.8k
Sep 11, 2026
RepositoryC
akospasztor/stm32-bootloader

Customizable Bootloader for STM32 microcontrollers. This example demonstrates how to perform in-application-programming of a firmware located on an external SD card with FAT32 file system.

1.1k
Oct 24, 2026