Skip to content

MingChang0329/ESEmbedded_HW04

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HW04

This is the hw04 sample. Please follow the steps below.

Build the Sample Program

  1. Fork this repo to your own github account.

  2. Clone the repo that you just forked.

  3. Under the hw04 dir, use:

    • make to build.

    • make flash to flash the binary file into your STM32F4 device.

    • make clean to clean the ouput files.

Build Your Own Program

  1. Edit or add files if you need to.

  2. Make and run like the steps above.

  3. Please avoid using hardware dependent C standard library functions like printf, malloc, etc.

HW04 Requirements

  1. Please practice to reference the user manuals mentioned in Lecture 04, and try to use the user button (the blue one on the STM32F4DISCOVERY board).

  2. After reset, the device starts to wait until the user button has been pressed, and then starts to blink the blue led forever.

  3. Try to define a macro function READ_BIT(addr, bit) in reg.h for reading the value of the user button.

  4. Push your repo to your github. (Use .gitignore to exclude the output files like object files, executable files, or binary files)

  5. The TAs will clone your repo, build from your source code, and flash to see the result.


  • If you volunteer to give the presentation (demo) next week, check this.

Take your note here if you want. (Optional)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.3%
  • Makefile 7.6%
  • Assembly 1.1%