Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minimal-esp32c3-samples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projekt Telematik SS23 QEMU
minimal-esp32c3-samples
Commits
56fed878
Commit
56fed878
authored
1 year ago
by
davip00
Browse files
Options
Downloads
Patches
Plain Diff
Use custom MDK fork for now
parent
9ee02fbe
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitmodules
+2
-1
2 additions, 1 deletion
.gitmodules
Makefile
+1
-1
1 addition, 1 deletion
Makefile
README.md
+1
-0
1 addition, 0 deletions
README.md
mdk
+1
-1
1 addition, 1 deletion
mdk
src/nothing.c
+6
-9
6 additions, 9 deletions
src/nothing.c
with
11 additions
and
12 deletions
.gitmodules
+
2
−
1
View file @
56fed878
[submodule "mdk"]
path = mdk
url = https://github.com/cpq/mdk
url = https://git.imp.fu-berlin.de/projekt-telematik-ss23-qemu/mdk
branch = emulator-hack
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
56fed878
...
...
@@ -5,7 +5,7 @@ SOURCES = src/nothing.c
# Comment this line out if you prefer building in docker
TOOLCHAIN
=
riscv32-unknown-elf
EXTRA_CFLAGS
?=
EXTRA_CFLAGS
?=
-Og
-g
EXTRA_LINKFLAGS
?=
include
mdk/esp32c3/build.mk
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
56fed878
...
...
@@ -3,6 +3,7 @@ This repository contains small demo programs for the ESP32-C3, used to validate
They're built against
[
mdk
](
https://github.com/cpq/mdk
)
, as this allows finer control
over what hardware features exactly are required, enabling gradual emulator development.
We have patched the SDK slightly. Our fork is
[
here
](
https://git.imp.fu-berlin.de/projekt-telematik-ss23-qemu/mdk
)
.
## Getting started
...
...
This diff is collapsed.
Click to expand it.
mdk
@
f197453a
Subproject commit
e2c1d4e4bd9b152dfa32b48a7c0ae5f5a8b8276d
Subproject commit
f197453a15a3130ca62b8ccbb6af65a78942d9e5
This diff is collapsed.
Click to expand it.
src/nothing.c
+
6
−
9
View file @
56fed878
/*
This sample program is simply meant to prove that code is executed.
Asides from MDK's init functions, nothing is done.
*/
#include
<mdk.h>
int
main
(
void
)
{
for
(;;)
{
}
for
(;;)
{
// So compiler doesn't optimize out the loop
__asm__
volatile
(
"nop"
);
}
return
0
;
}
\ No newline at end of file
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment