Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MPPK-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
XP-el
MPPK-rust
Commits
7f5193e9
Commit
7f5193e9
authored
Sep 2, 2020
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Styling
parent
be5606f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ch2_02_windows_installation.md
+12
-12
12 additions, 12 deletions
src/ch2_02_windows_installation.md
with
12 additions
and
12 deletions
src/ch2_02_windows_installation.md
+
12
−
12
View file @
7f5193e9
...
@@ -14,28 +14,28 @@ In the MinGW Installation Manager select ```All Packages``` then mark for instal
...
@@ -14,28 +14,28 @@ In the MinGW Installation Manager select ```All Packages``` then mark for instal
-
mingw32-gdb (lic)
-
mingw32-gdb (lic)
-
mingw32-gdb (man)
-
mingw32-gdb (man)
then in the Installation menu choose
`
Apply Changes
`
,
then in the Installation menu choose
**
Apply Changes
**
,
you should see at the bottom of the window that there is going to be
you should see at the bottom of the window that there is going to be
several packages in
`new/upgraded packages will be installed`
several packages in
`new/upgraded packages will be installed`
if so then click
`
Apply
`
.
if so then click
**
Apply
**
.
If everything went as expected then you should have the
`gdb.exe`
file is
If everything went as expected then you should have the
`gdb.exe`
file is
your MinGW install folder under
`/bin`
.
your MinGW install folder under
`/bin`
.
However to effectively use gdb you need to set the environment variable.
However to effectively use gdb you need to set the environment variable.
Go to the Control panel -> System and Security -> System -> Advanced system settings,
Go to the
**
Control panel -> System and Security -> System -> Advanced system settings
**
,
click the
`
Environment Variables...
`
button.
click the
**
Environment Variables...
**
button.
In this window in the System variables view click
`
Edit...
`
then
`
New
`
In this window in the
**
System variables
**
view click
**
Edit...
**
then
**
New
**
and type in the path to the
`gdb.exe`
file
and type in the path to the
`gdb.exe`
file
(should be something like
```C:\MinGW\bin```
).
(should be something like
```C:\MinGW\bin```
).
Then click
OK
in all the windows.
Then click
**OK**
in all the windows.
To check that everything went as expected open a new terminal with
To check that everything went as expected open a new terminal with
`CTRL+r`
and type cmd
then
`ENTER`
.
`CTRL+r`
and type
`
cmd
`
followed by pressing the
**enter**
-key
.
If you now type
`gdb`
you should be prompted with a text saying something like
If you now type
`gdb`
you should be prompted with a text saying something like
"
GNU gdb (GDB) 7.6.1
"
.
`
GNU gdb (GDB) 7.6.1
`
.
GDB is now installed!
GDB is now installed!
...
@@ -57,16 +57,16 @@ We recommend the Ubuntu distro.
...
@@ -57,16 +57,16 @@ We recommend the Ubuntu distro.
To open a distro terminal: Ctrl+r and write
`cmd`
and run.
To open a distro terminal: Ctrl+r and write
`cmd`
and run.
In the terminal type
`bash`
, this will spawn a ubuntu terminal.
In the terminal type
`bash`
, this will spawn a ubuntu terminal.
Using the terminal, update the distro:
Using the terminal, update the distro
and install build-essential and gdb
:
```
shell
```
shell
sudo
apt update
sudo
apt update
sudo
apt upgrade
sudo
apt
install
build-essential
sudo
apt
install
build-essential
sudo
apt
install
gdb
sudo
apt
install
gdb
sudo
apt upgrade
```
```
The ordinary
`C:`
drive will be found under
`/mnt/c`
The ordinary
`C:`
drive will be found under
`/mnt/c`
...
@@ -114,7 +114,7 @@ I would create a shortcut with the target:
...
@@ -114,7 +114,7 @@ I would create a shortcut with the target:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe .\openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/stm32f4x.cfg
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe .\openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/stm32f4x.cfg
```
```
and make it start in the openocd/bin folder i.e
`C:\OpenOCD\bin`
.
and make it start in the
`
openocd/bin
`
folder i.e
`C:\OpenOCD\bin`
.
If you want it to be really fancy then under layout you can change where the
If you want it to be really fancy then under layout you can change where the
window should spawn as well as how it should look like.
window should spawn as well as how it should look like.
...
...
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