Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
d7020e_srp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
d7020e
d7020e_srp
Commits
a7b5561e
Commit
a7b5561e
authored
5 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Installation instructions, including dependencies
parent
b7f9ba12
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gdbinit
+1
-1
1 addition, 1 deletion
.gdbinit
README.md
+52
-0
52 additions, 0 deletions
README.md
with
53 additions
and
1 deletion
.gdbinit
+
1
−
1
View file @
a7b5561e
...
...
@@ -19,7 +19,7 @@ end
# Need to find the IP of the docker host
# Check your gateway: $ ip route
target extended
172.17.0.1
:3333
target extended :3333
monitor reset init
set remote hardware-breakpoint-limit 6
set remote hardware-watchpoint-limit 4
...
...
This diff is collapsed.
Click to expand it.
README.md
+
52
−
0
View file @
a7b5561e
...
...
@@ -13,6 +13,23 @@ The build system handles the switching between "analysis" and "execution" stages
# Installation
## Dependencies
*
Rust compiler, recommended via rustup
*
stlink (for udev rules for stm32)
*
openocd
*
base-devel
*
arm-none-eabi-gcc
*
arm-none-eabi-gdb
*
arm-none-eabi-binutils
*
llvm
*
clang
*
KLEE 2
yay -S rustup stlink openocd base-devel arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-binutils llvm clang
yay klee
Get the actual program (from your regular computer, not the container):
...
...
@@ -23,6 +40,27 @@ cd d7020e_srp
git checkout klee
```
## ITM
```
cargo install itm
```
Start the ITM tracing tool
(Only needed the first time)
```
mkfifo /tmp/swo.log
```
Start the parser:
```
itmdump -Ff /tmp/swo.log
```
Notice, the itmdump tool must be started BEFORE the openocd session (see Debug) in order to capture the ITM trace.
## OpenOCD
Start OpenOCD on the host, connect it to your microcontroller.
```
...
...
@@ -31,6 +69,20 @@ openocd -f st_nucleo_f4_itm.cfg
The st_nucleo_f4_itm.cfg file is located in the git repo.
### Troubleshooting:
Make sure your user is member of uucp (Arch) dailup or serial etc, depending on distro. Access to the serial port is required.
## Configure GDB
Add the following to
`~/.gdbinit`
```
set auto-load safe-path /
```
## Running
To run the suite of tools:
```
...
...
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