Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
STM32F407
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
E7020E Embedded Systems
STM32F407
Commits
5b22528b
Commit
5b22528b
authored
9 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Added Initial README and gitignore from earlier projects
parents
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+10
-0
10 additions, 0 deletions
.gitignore
README.md
+61
-0
61 additions, 0 deletions
README.md
with
71 additions
and
0 deletions
.gitignore
0 → 100644
+
10
−
0
View file @
5b22528b
Debug
Lab4-serial.elf.launch
stm32f4_flash.ld
.cproject
.settings
serial.elf.launch
.project
kuppe.elf
kuppe.hex
src/.main.c.swp
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
61
−
0
View file @
5b22528b
Project base for STM32 Cortex MCUs
----------------------------------
Install arm-none-eabi-
*
series of tools
[](
https://www.archlinux.org/packages/community/x86_64/arm-none-eabi-gcc/
)
[](
https://packages.debian.org/jessie/devel/gcc-arm-none-eabi
)
Install st-link
[](
https://github.com/texane/stlink
)
After cloning the project add code in:
src/main.c
Compile with regular GNU make:
make
Modify the Makefile and linker scripts to suit your requirements.
Possibly change the memory size in stm32_linker.ld,
included libraries in the Makefile.
Connect your MCU and connect st-link.
Sometimes it will complain it cannot find the chip, try erasing first:
st-flash --reset erase
Then connect with st-util:
st-util
On my laptop some powermanagement settings interfere with longer debugging sessions,
a workaround is to enable very verbose logging functioning as a keep-alive.
st-util -v99
Launch your debugger with the compiled executable:
arm-none-eabi-gdb stm32f4.elf
Useful regular GDB commands (which of most are possible to shorten to just the initial character):
continue
run
print
step
Useful non-regular GDB commands:
reload
This one is provided by the
.gdbinit
file included in this project. It will kill the current program and reload from the same file again.
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