This is the hw03 sample. Please follow the steps below.
-
Fork this repo to your own github account.
-
Clone the repo that you just forked.
-
Under the hw03 dir, use:
-
make
to build. -
make clean
to clean the ouput files.
-
-
Extract
gnu-mcu-eclipse-qemu.zip
into hw03 dir. Under the path of hw03, start emulation withmake qemu
.See Lecture 02 ─ Emulation with QEMU for more details.
-
The sample is a minimal program for ARM Cortex-M4 devices, which enters
while(1);
after reset. Use gdb to get more details.See ESEmbedded_HW02_Example for knowing how to do the observation and how to use markdown for taking notes.
-
Edit main.c.
-
Make and run like the steps above.
-
Please avoid using hardware dependent C Standard library functions like
printf
,malloc
, etc.
-
How do C functions pass and return parameters? Please describe the related standard used by the Application Binary Interface (ABI) for the ARM architecture.
-
Modify main.c to observe what you found.
-
You have to state how you designed the observation (code), and how you performed it.
Just like how you did in HW02.
-
If there are any official data that define the rules, you can also use them as references.
-
Push your repo to your github. (Use .gitignore to exclude the output files like object files or executable files and the qemu bin folder)
- If you volunteer to give the presentation next week, check this.
★★★ Please take your note here ★★★