Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.67 KB

File metadata and controls

52 lines (34 loc) · 1.67 KB

Tutorial 1: Basic IO on STM32

Authors

Hedy Li (hlihc@connect.ust.hk)

Modified from:
Ryan Ku, Ivan Lok, Dicaprio Cheung, Joseph Lam, Binay Gurung, Anshuman Medhi

Contents

  1. Introduction
    • Overview STM32 embedded programming, and STM32 projects
  2. GPIO
    • Set up GPIO configuration in STM32CubeMX
    • Lighting up an LED with the HAL library
    • Reading button inputs
    • Macro shortcuts for GPIO-related functions
    • Classwork 1 (limit switch indicator)
  3. Clock and timers
    • Non-blocking blinker
    • Classwork 2 (GPIO and HAL)
  4. TFT Display
    • Classwork 3 (TFT clock)
  5. Homework

Classworks (graded)

There are three classworks throughout the tutorial. Show your working mainboard to our seniors during the tutorial to get your score recorded.

If you were not able to finish classwork tasks in class, you may also complete them after class and ask seniors to mark them during homework checking sessions, however, you won't be able to get a bonus mark for finishing the classwork during class.

Homework (graded)

Show your working mainboard to our seniors in either DTOL or Hall 9 Lab after the tutorial for homework checking.

The deadline for your homework is usually before your next tutorial session, however for S01 and S02, an extension of two days is given due to the 1st Oct national holiday.

  • S01: Due on 7 Oct 6pm (Wednesday)
  • S02: Due on 9 Oct 6pm (Friday)
  • S03: Due on 9 Oct 6pm (Friday, same as usual)

Begin with the introduction:

Introduction