Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
processer
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
processer
Commits
35570f3d
Commit
35570f3d
authored
7 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Enable running from top level directory
parent
a5f94afc
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
Makefile
+14
-0
14 additions, 0 deletions
Makefile
README.md
+12
-0
12 additions, 0 deletions
README.md
lib/avr/Makefile.common
+21
-6
21 additions, 6 deletions
lib/avr/Makefile.common
with
49 additions
and
7 deletions
.gitignore
+
2
−
1
View file @
35570f3d
*/avr/compiled
*/avr/compiled
*~
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
14
−
0
View file @
35570f3d
all
:
@
echo
"Do 'make PROCESS.LOAD' or 'make PROCESS.FUSE'"
>
&2
@
echo
"where PROCESS is one of"
>
&2
@
for
m
in
*
/
*
/Makefile
;
do
\
echo
"
$$(
dirname
$$(
dirname
$$
m
))
"
>
&2
\
;
done
@
echo
>
&2
@
exit
1
%.LOAD
:
make
-C
$*
/avr
$@
%.FUSE
:
make
-C
$*
/avr
$@
This diff is collapsed.
Click to expand it.
README.md
+
12
−
0
View file @
35570f3d
Software for processes used at Department of Automatic Control
Software for processes used at Department of Automatic Control
==============================================================
==============================================================
batch-2002
How to (re)program a chip
=========================
Clone this repository and change to the top level directory, then
*
If it's the first time this chip is programmed, the fuse bits
need to be programmed, this is done by running
`make PROCESS_NAME.FUSE`
*
Program the chip by running
`make PROCESS_NAME.LOAD`
This diff is collapsed.
Click to expand it.
lib/avr/Makefile.common
+
21
−
6
View file @
35570f3d
...
@@ -68,12 +68,27 @@ OBJECTS=$($(1).C:%=compiled/$(1)/%.o)
...
@@ -68,12 +68,27 @@ OBJECTS=$($(1).C:%=compiled/$(1)/%.o)
-U
flash:w:compiled/
$(
TARGET
)
/
$*
.sr:s
-U
flash:w:compiled/
$(
TARGET
)
/
$*
.sr:s
%.FUSE
:
%.FUSE
:
[
-n
"
$($(
TARGET
)
.FUSE_L
)
"
]
&&
avrdude
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
@
if
[
-n
"
$($(
TARGET
)
.FUSE_L
)
"
]
;
then
\
-U
lfuse:w:
$($(
TARGET
)
.FUSE_L
)
:m
||
true
echo
avrdude
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
[
-n
"
$($(
TARGET
)
.FUSE_H
)
"
]
&&
avrdude
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
-U
lfuse:w:
$($(
TARGET
)
.FUSE_L
)
:m
>
&2
\
-U
hfuse:w:
$($(
TARGET
)
.FUSE_H
)
:m
||
true
;
avrdude
-qq
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
[
-n
"
$($(
TARGET
)
.FUSE_E
)
"
]
&&
avrdude
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
-U
lfuse:w:
$($(
TARGET
)
.FUSE_L
)
:m
\
-U
efuse:w:
$($(
TARGET
)
.FUSE_E
)
:m
||
true
||
(
echo
"failed to program FUSE_L with
$($(
TARGET
)
.FUSE_L
)
"
>
&2
&&
exit
1
)
\
;
fi
@
if
[
-n
"
$($(
TARGET
)
.FUSE_H
)
"
]
;
then
\
echo
avrdude
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
-U
hfuse:w:
$($(
TARGET
)
.FUSE_H
)
:m
>
&2
\
;
avrdude
-qq
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
-U
hfuse:w:
$($(
TARGET
)
.FUSE_H
)
:m
\
||
(
echo
"failed to program FUSE_H with
$($(
TARGET
)
.FUSE_H
)
"
>
&2
&&
exit
1
)
\
;
fi
@
if
[
-n
"
$($(
TARGET
)
.FUSE_E
)
"
]
;
then
\
echo
avrdude
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
-U
efuse:w:
$($(
TARGET
)
.FUSE_E
)
:m
>
&2
\
;
avrdude
-qq
-P
usb
-c
avrisp2
-p
$(
CHIP
)
\
-U
efuse:w:
$($(
TARGET
)
.FUSE_E
)
:m
\
||
(
echo
"failed to program FUSE_E with
$($(
TARGET
)
.FUSE_E
)
"
>
&2
&&
exit
1
)
\
;
fi
%.FUSE_uisp
:
%.FUSE_uisp
:
exit
1
exit
1
...
...
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