Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
c1955179
Commit
c1955179
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Use v1.05 binaries in firmwareprep
parent
40bea2de
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
testjig/firmwareprep.py
+9
-18
9 additions, 18 deletions
testjig/firmwareprep.py
with
9 additions
and
18 deletions
testjig/firmwareprep.py
+
9
−
18
View file @
c1955179
...
...
@@ -7,14 +7,9 @@
#
########################### Configuration ###########################
# Paths for all .hex files to include in the installation image
SOURCE_FILES
=
[
"
../bin/fc-boot-v101.hex
"
,
"
../firmware/fc-firmware.hex
"
,
]
# ELF file corresponding to the firmware under test, for symbol lookups
ELF_FILE
=
"
../firmware/fc-firmware.elf
"
# Firmware image to deploy
HEX_FILE
=
"
../bin/fc-firmware-v105.hex
"
ELF_FILE
=
"
../bin/fc-firmware-v105.elf
"
# Which GDB to use for the firmware image
GDB_COMMAND
=
"
arm-none-eabi-gdb
"
...
...
@@ -43,10 +38,10 @@ output.write("""/*
* Firmware data for Fadecandy production.
* AUTOMATICALLY GENERATED by firmwareprep.py
*
* Date: %s
* Date: %s
* Firmware: %s
* SHA1: %s
*
* Source files:
%s *
* Copyright (c) 2013 Micah Elizabeth Scott
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
...
...
@@ -68,16 +63,12 @@ output.write("""/*
*/
"""
%
(
time
.
asctime
(),
''
.
join
([
"
* %s (%s)
\n
"
%
(
f
,
hashlib
.
sha1
(
open
(
f
,
'
rb
'
).
read
()).
hexdigest
())
for
f
in
SOURCE_FILES
])))
HEX_FILE
,
hashlib
.
sha1
(
open
(
HEX_FILE
,
'
rb
'
).
read
()).
hexdigest
()))
# Load all .hex files into a flat memory image
loader
=
intelhex
.
IntelHex
()
for
path
in
SOURCE_FILES
:
loader
.
loadhex
(
path
)
loader
.
loadhex
(
HEX_FILE
)
image
=
loader
.
tobinstr
()
# Pad to a sector boundary
...
...
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