Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anne Jan Brouwer
firmware
Commits
23f42a94
Verified
Commit
23f42a94
authored
Jun 06, 2019
by
Anne Jan Brouwer
💬
Browse files
Merge branch 'master' of git.card10.badge.events.ccc.de:card10/firmware into micropython
parents
69b99f4a
3ae54c3c
Pipeline
#136
passed with stage
in 4 minutes and 23 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Hello_World/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
Hello_World_FreeRTOS/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
ble/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
bmatest/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
bmetest/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
bootloader/crc_patch.py
100644 → 100755
View file @
23f42a94
#!/usr/bin/env python3
import
sys
import
crc16
crc
=
0
data
=
open
(
sys
.
argv
[
1
]).
read
()
data
=
open
(
sys
.
argv
[
1
]
,
'rb'
).
read
()
crc
=
crc16
.
crc16xmodem
(
data
)
print
(
crc
)
padded
=
data
+
chr
(
crc
>>
8
)
+
chr
(
crc
&
0xFF
)
padded
=
data
+
bytes
([
crc
>>
8
,
crc
&
0xFF
]
)
crc
=
0
crc
=
crc16
.
crc16xmodem
(
padded
)
print
(
crc
)
open
(
sys
.
argv
[
1
],
'w'
).
write
(
padded
)
open
(
sys
.
argv
[
1
],
'w
b
'
).
write
(
padded
)
ecgtest/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
imutest/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
ips/build_image
View file @
23f42a94
...
...
@@ -2,4 +2,4 @@ make clean
make APP=1
make build/max32665.bin
cp build/max32665.bin card10.bin
python
../bootloader/crc_patch.py card10.bin
../bootloader/crc_patch.py card10.bin
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment