You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Common question : Why is there no startup.s file ?
Explanation : The startup code is included at the bottom of the main.c file in a block, which is written in C instead of assembly as in a startup.s file
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -333,6 +333,7 @@ jump to our boot function.
333
333
334
334
335
335
## Minimal firmware
336
+
Note: The startup code here is written in C, and included in the main.c file. Usually we have a startup.s file which is written in assembly language for initialization.
336
337
337
338
Let's create a file `main.c`, and specify our boot function that initially does
338
339
nothing (falls into infinite loop), and specify a vector table that contains 16
0 commit comments