Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
app
Commits
111fa3d7
Commit
111fa3d7
authored
6 years ago
by
Per Lindgren
Browse files
Options
Downloads
Patches
Plain Diff
openocd.gdb comment fixed and ext itm launch config added
parent
8906f26e
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
.vscode/launch.json
+28
-0
28 additions, 0 deletions
.vscode/launch.json
openocd.gdb
+1
-1
1 addition, 1 deletion
openocd.gdb
with
29 additions
and
1 deletion
.vscode/launch.json
+
28
−
0
View file @
111fa3d7
...
...
@@ -62,6 +62,7 @@
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
//
sets
a
breakpoint
at
the
HardFault
(won't
show
in
`vscode`
,
but
`gdb`
will
break)
"b HardFault"
],
"cwd"
:
"${workspaceRoot}"
...
...
@@ -96,6 +97,33 @@
},
"cwd"
:
"${workspaceRoot}"
},
//
launch
configuration
for
using
an
external
itm
viewer
//
$
tail
-f
/tmp/itm.log
//
or
,
prior
to
launching
the
bebug
session
//
$
mkfifo
/tmp/itm.log
//
$
itmdump
-f
/tmp/itm.log
-F
{
"type"
:
"cortex-debug"
,
"request"
:
"launch"
,
"servertype"
:
"openocd"
,
"name"
:
"itm 16Mhz /tmp/itm.log (debug)"
,
"preLaunchTask"
:
"cargo build --example itm"
,
"executable"
:
"./target/thumbv7em-none-eabihf/debug/examples/itm"
,
//
uses
local
config
files
"configFiles"
:
[
"./stlink.cfg"
,
"./stm32f4x.cfg"
],
"postLaunchCommands"
:
[
//
sets
the
core
clock
to
16000000
(see
./stm
32
f
4
x.cfg)
"monitor reset init"
,
//
16000000
must
match
the
core
clock
frequency
"monitor tpiu config internal /tmp/itm.log uart off 16000000"
,
//
enable
ITM
port
0
"monitor itm port 0 on"
],
"cwd"
:
"${workspaceRoot}"
},
{
"type"
:
"cortex-debug"
,
"request"
:
"launch"
,
...
...
This diff is collapsed.
Click to expand it.
openocd.gdb
+
1
−
1
View file @
111fa3d7
...
...
@@ -23,7 +23,7 @@ monitor tpiu config internal /tmp/itm.log uart off 16000000
# 2000000 is the frequency of the SWO pin
# monitor tpiu config external uart off 8000000 2000000
#
# enable ITM port 0
# enable ITM port 0
monitor itm port 0 on
load
...
...
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