This is the hw04 sample. Please follow the steps below.
-
Fork this repo to your own github account.
-
Clone the repo that you just forked.
-
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.
-
-
Edit or add files if you need to.
-
Make and run like the steps above.
-
Please avoid using hardware dependent C standard library functions like
printf
,malloc
, etc.
-
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).
-
After reset, the device starts to wait until the user button has been pressed, and then starts to blink the blue led forever.
-
Try to define a macro function
READ_BIT(addr, bit)
in reg.h for reading the value of the user button. -
Push your repo to your github. (Use .gitignore to exclude the output files like object files, executable files, or binary files)
-
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)