SWEN-340

SysTick Timer and UART Demo

Overview

This homework assignment is to learn about hardware timer (SysTick) and use UART

Setup

    Nucleo introduction with SysTick based delay time

    Step 1: Follow these instructions to install STM32CubeIDE: Install STM32CubeIDE

    Step 2: Follow these instructions to create a new project for the Nucleo board: Create New Project

    Step 3: Download these to zip files and extract them into a work directory:

    Src.zip

    Inc.zip

    Step 4: Copy Src and Inc files to their repective Src and Inc directories under the Core directory.

    Step 5: Build this project and download it to your board. Observe that the green LED flashes with one second on, one second off cycle.

    Step 6: Modify the demo.c program to switch from using a for loop to get a delay time to using a properly initialized SysTick timer. Set timer such that LED flashes at 2 seconds interval, not 1 second.

    Follow the detailed instructions in demo.c. and refer to the SysTick section in Cortex M4 User Guide starting at page 249.

    Note that the system provided definition of SysTick uses different register names!

    Optional: import your version of the SysTick structure into demo.c and create a pointer to the hardware.

Submission

Submit your updated demo.c to the in MyCourses assignment folder "First Timer".
Please do NOT put your file in a zip file.

Grading

To receive full credit, Code must compile and run as expected without any warnings!