Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atsamd51
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
hello-world
atsamd51
Commits
b23f1c9a
Commit
b23f1c9a
authored
5 years ago
by
Erik Strand
Browse files
Options
Downloads
Patches
Plain Diff
Add a README
parent
b90a89e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
blink-cmake/README.md
+20
-0
20 additions, 0 deletions
blink-cmake/README.md
with
20 additions
and
0 deletions
blink-cmake/README.md
0 → 100644
+
20
−
0
View file @
b23f1c9a
# Building with CMake
This directory contains a
`cmake`
project for SAMD51, using
`arm-none-eabi-gcc`
.
To compile, first make sure you have
`cmake`
version 3.13 or newer installed. You may need to
compile from source if your package manager is out of date.
Next, create a build directory:
`mkdir build`
. All build artifacts will go here, so you won't end up
with a bunch of
`.o`
or
`.elf`
files hanging out next to your source code.
Tell
`cmake`
to configure a build environment in your new directory:
`cd build`
then
`cmake ..`
.
This tells
`cmake`
to generate a
`Makefile`
for you.
From here on out you can just use the
`Makefile`
like normal:
`make`
builds everything, or
`make
<target>`
builds a particular thing. The
`Makefile`
that
`cmake`
generates is even smart enough to
run the configuration step again automatically if it detects that you've modified any
`cmake`
config
files.
Note that I haven't yet added targets that flash your board. The executable built by
`cmake`
is
`build/hello_world`
; for now you need to load this manually.
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