315 Commits

Author SHA1 Message Date
Conor Patrick
8b146c4a16 fix issue with bootloader not replying data 2019-10-28 10:51:35 -04:00
Conor Patrick
a1a79b05fd fix solo locked flag for bootloader 2019-10-27 10:25:00 -04:00
Conor Patrick
9ac2aa90c3 store all info in same page, dont use authenticator state 2019-10-27 10:25:00 -04:00
Conor Patrick
96a2cbcb41 remove logs 2019-10-27 10:25:00 -04:00
Conor Patrick
89e218e561 lock flash based on state setting 2019-10-27 10:25:00 -04:00
Conor Patrick
666cd6a0ba migrate certs 2019-10-27 10:25:00 -04:00
Conor Patrick
b4f59ec355 pull certificate from flash page 2019-10-27 10:25:00 -04:00
Chris Cinelli
b7d74cc99f Add default git describe in makefile 2019-10-27 10:11:39 -04:00
Chris Cinelli
aaffce4021 Make dependency on git optinal in the target/stm32l432/Makefile
"git describe" is used to get the version of the firmware from GIT tags ans it is used for build artifacts' names
We would prefer not to have this depency inside Docker
2019-10-27 10:11:39 -04:00
Chris Cinelli
765dc27b15 Fix docker build 2019-10-27 10:10:27 -04:00
Conor Patrick
ff88660027 fix const qualifer warnings 2019-10-08 14:43:24 -04:00
Conor Patrick
9ecfda02c5 remove atomic counter from bootloader to save space 2019-10-08 14:43:24 -04:00
Conor Patrick
08658eb11e
Merge branch 'master' into bootloader-downgrade-protection 2019-10-08 13:44:20 -04:00
Conor Patrick
a2fd507f45 typo 2019-10-08 13:42:37 -04:00
Conor Patrick
bb2929b28f change ctap_atomic_count to increase by user-specified amount 2019-10-08 13:42:37 -04:00
Jan A
5168afa16e Code cosmetics, added missing void statement to empty parameter of
functions
2019-10-08 12:31:08 -04:00
Conor Patrick
c61f15a090 allow get_assertion with disabled UP 2019-09-17 00:13:57 +08:00
merlokk
6652feb4a2 added CID transfer and NAK-ACK sequence 2019-09-05 23:26:15 +08:00
Conor Patrick
a9bbdee35b
Merge branch 'master' into remove-pin-storage 2019-09-02 21:45:21 +08:00
Conor Patrick
321bbe3691
Merge pull request #293 from solokeys/ccid
Ccid
2019-09-02 21:42:38 +08:00
merlokk
1ce191343f add checking some rare case in iso14443-4 chaining. add NAK checking and aborting the data sending. 2019-08-31 02:12:05 +08:00
Conor Patrick
9041e5903c return SW_WRONG_LENGTH for incorrect lc 2019-08-30 16:37:17 +08:00
Szczepan Zalega
a5e1dc2a0c
Correct linker documentation 2019-08-24 11:27:28 +02:00
Szczepan Zalega
a053bbc669
Do not verify version for the hacker edition 2019-08-24 10:26:44 +02:00
Szczepan Zalega
3621f2ed4f
Add missed doc update in the linker script 2019-08-24 10:26:41 +02:00
Szczepan Zalega
3c7bf5a264
Remove obsolete debug messages 2019-08-24 10:26:38 +02:00
Conor Patrick
8bf1921263 dont reference not-enabled ccid 2019-08-24 16:20:52 +08:00
Szczepan Zalega
e3ff136196
Remove obsolete region for the app static firmware version address 2019-08-24 10:17:59 +02:00
Szczepan Zalega
74181406fe
Rename last_addr->last_written_app_address 2019-08-24 10:17:55 +02:00
Szczepan Zalega
987b04523d
Correct memory layout 2019-08-24 10:17:52 +02:00
Szczepan Zalega
8023347c8e
Makefile: add debug info 2019-08-24 10:17:49 +02:00
Szczepan Zalega
9dae7b2e7c
Makefile: fix flashboot recipe 2019-08-24 10:17:46 +02:00
Szczepan Zalega
cb13fb65de
Store version in the bootloader. Debug code. 2019-08-24 10:17:43 +02:00
Szczepan Zalega
7fddd58704
Bootloader: get uploaded application version from the 4 last bytes of its firmware 2019-08-24 10:17:40 +02:00
Szczepan Zalega
3a1ea275cc
Move _extra* debug linker scripts content to main 2019-08-24 10:17:37 +02:00
Szczepan Zalega
22293f82f2
Rename flash2 -> flash_cfg 2019-08-24 10:17:34 +02:00
Szczepan Zalega
40c3c13b07
Correct flash2 region. Rename _bconfig_start->bootloader_configuration. 2019-08-24 10:17:30 +02:00
Szczepan Zalega
7042b0b656
Move app version to the end of the firmware code, without specific address. Move bootloader config 8B forward. 2019-08-24 10:17:27 +02:00
Szczepan Zalega
ea803aab95
Make the flash memory structure depend on the APPLICATION_START_PAGE macro 2019-08-24 10:17:24 +02:00
Szczepan Zalega
1100b159a9
Refactor. Add debug code. Use %u for unsigned. Use volatile pointer instead of memory storage. 2019-08-24 10:17:21 +02:00
Szczepan Zalega
9ddba5dfc3
Add extra linker script changes 2019-08-24 10:17:18 +02:00
Szczepan Zalega
35e52f4968
Initial modification to move bootloader data after the application 2019-08-24 10:17:15 +02:00
Szczepan Zalega
efddd2f3a8
Use the same public bootloader key as before 2019-08-24 10:17:12 +02:00
Szczepan Zalega
17ceb7b9e8
Make the public key generic 2019-08-24 10:17:09 +02:00
Szczepan Zalega
188a34d1da
Add missing Makefile entry. Rename pubkey file. 2019-08-24 10:17:05 +02:00
Szczepan Zalega
9248c6462c
Add missing is_newer and pubkey 2019-08-24 10:17:02 +02:00
Szczepan Zalega
beb5a5892c
Add linker scripts 2019-08-24 10:16:56 +02:00
Szczepan Zalega
e4e0a3a84e
Add code responsible for firmware version verification in the bootloader 2019-08-24 10:16:50 +02:00
Conor Patrick
3ba9b671fc dont use composit for bootloader 2019-08-24 16:01:44 +08:00
Conor Patrick
69c34f9ca9 Merge branch 'master' into ccid 2019-08-24 15:54:51 +08:00