Skip to content

Commit d166516

Browse files
authored
Merge pull request #11 from prdktntwcklr/ci/add-devcontainer
ci: add devcontainer
2 parents 4aa01ed + 61ffdff commit d166516

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "Renode Example",
3+
"dockerFile": "../Dockerfile",
4+
"runArgs": [
5+
"--security-opt",
6+
"label=disable"
7+
],
8+
"containerEnv": {
9+
"WORKSPACE_DIR": "${containerWorkspaceFolder}",
10+
"PROMPT_COMMAND": "history -a"
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"ms-vscode.cpptools"
16+
],
17+
"settings": {
18+
"terminal.integrated.defaultProfile.linux": "bash"
19+
}
20+
}
21+
}
22+
}

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Renode Example
22

33
Simple example of how to use [Renode](https://renode.io/) together with
4-
[Robot Framework](https://robotframework.org/) to emulate and test Firmware
4+
[Robot Framework](https://robotframework.org/) to emulate and test firmware
55
on a host PC without the target hardware.
66

77
The project builds for an STM32
88
[NUCLEO-F446RE development board](https://www.st.com/en/evaluation-tools/nucleo-f446re.html).
9-
The default repl (REnode PLatform) file for this board has been modified to
10-
include the blue button functionality. Pressing and releasing this button
9+
The default repl (`REnode PLatform`) file for this board has been modified to
10+
include the blue user button functionality. Pressing and releasing this button
1111
toggles one of the on-board LEDs.
1212

1313
## Toolchain
1414

15-
- Arm GNU Toolchain 12.2
16-
- GNU Make 4.3
15+
- GNU Arm Embedded Toolchain 10-2020-q4-major
16+
- GNU Make 4.2.1
1717
- Renode 1.14.0
1818
- STM32CubeMX 6.8.1 (*for initial project setup only*)
1919

2020
## Building the project
2121

2222
After installing the required packages on your machine (consider using the
23-
provided `Dockerfile`), you can build the project by running:
23+
provided `Dockerfile` together with the
24+
[Dev Containers extension](https://code.visualstudio.com/docs/devcontainers/containers)
25+
for VS Code), you can build the project by running:
2426

2527
```bash
2628
cd nucleo-f446re/ButtonLed
@@ -39,6 +41,6 @@ to test for the expected behavior:
3941
renode-test tests/test-button.robot
4042
```
4143

42-
Sample output from GitHub Actions after a successful test:
44+
Sample output from GitHub Actions after the test has run successfully:
4345

4446
![test_success](docs/test_success.png)

0 commit comments

Comments
 (0)