Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WallFollowerRobot

/docs: project docs for phase 1 report /old: stmide project for config. reference /Main: the current working project

🛠️ Prerequisites

Make sure you have the following installed on your system (Linux/Ubuntu):

  • ARM GNU Toolchain: gcc-arm-none-eabi
  • Build Tools: cmake and ninja-build
  • Flashing/Debugging: openocd

(Ubuntu/Debian install command: sudo apt install gcc-arm-none-eabi cmake ninja-build openocd)

🚀 How to Build

  1. Navigate to the working project directory:
    cd Main/STM32_Motor_Control
  2. Configure the CMake project (first time only):
    cmake -S . -B build
  3. Compile the code:
    cmake --build build

⚡ Flashing and Viewing Output

We use ARM Semihosting to print messages (like the 3 Ultrasonic distances) directly to the terminal without needing an extra TTL/UART adapter.

  1. Connect your ST-Link v2 to the STM32 and plug it into your PC.
  2. Run the flashing script (from within the Main/STM32_Motor_Control folder):
    sudo ./flash_and_view.sh
  3. The script will automatically flash the MCU, soft reset it, and display the live output prints directly in your terminal!

About

No description, website, or topics provided.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages