Pavol Rusnak
|
6b94fd26e4
|
boardloader: rename reset_flags_init to reset_flags_check
|
2017-12-09 14:36:02 +01:00 |
|
Pavol Rusnak
|
d9574bf131
|
trezorhal: enable BOR level 3, PVD level 5, turn off display in PVD handler
|
2017-11-07 18:06:42 +01:00 |
|
mcudev
|
430900ea2c
|
boardloader: ensure check_sdcard fails when read fails
|
2017-11-06 14:36:56 +01:00 |
|
Pavol Rusnak
|
8190e0909e
|
boardloader: set BOR level to 2
|
2017-11-05 16:42:20 +01:00 |
|
mcudev
|
1737f17f43
|
boardloader: flash option bytes, production changes
|
2017-11-05 16:42:20 +01:00 |
|
Pavol Rusnak
|
311a28242b
|
boardloader: fix production build, disable reset_flags_init for now
|
2017-10-29 21:12:40 +01:00 |
|
Pavol Rusnak
|
16f657361c
|
boardloader: disable BOR protection; fix setting OB flags
|
2017-10-29 18:07:05 +01:00 |
|
Pavol Rusnak
|
a08f18c2ce
|
boardloader: use PVD level 4
|
2017-10-29 17:58:33 +01:00 |
|
Pavol Rusnak
|
69c17dae9b
|
trezorhal: use uint32_t* for sdcard_{read,write}_blocks
|
2017-10-29 16:34:09 +01:00 |
|
Pavol Rusnak
|
fa802e9353
|
boardloader: fix test for existence of bootloader on sd card
|
2017-10-29 16:23:25 +01:00 |
|
Pavol Rusnak
|
36143033c4
|
bootloader: check vendor header / image header before flashing
|
2017-10-27 04:49:59 +02:00 |
|
Pavol Rusnak
|
4d36d0e1c1
|
trezorhal: use sectrue where possible
|
2017-10-27 03:58:00 +02:00 |
|
Pavol Rusnak
|
f73eb3effd
|
trezorhal: introduce secbool/sectrue/secfalse and use it where possible
|
2017-10-26 23:51:39 +02:00 |
|
Pavol Rusnak
|
7ddfdf69d6
|
trezorhal: support for non-continous areas in check_image_contents
|
2017-10-26 19:09:53 +02:00 |
|
Pavol Rusnak
|
89cc35b195
|
trezorhal: fix hash offset in check_image_contents
|
2017-10-26 18:53:20 +02:00 |
|
Pavol Rusnak
|
7c891e19e5
|
boardloader, bootloader: check image contents against hashes in the header
|
2017-10-26 17:16:59 +02:00 |
|
Pavol Rusnak
|
63636be0a3
|
trezorhal: rework header checking to new format
|
2017-10-26 15:54:02 +02:00 |
|
Pavol Rusnak
|
0c6ee14ee1
|
trezorhal: move image related defines to image.h
|
2017-10-26 01:17:57 +02:00 |
|
mcudev
|
abf7f822b8
|
boardloader: do not call shutdown directly, return and the startup code handles it
|
2017-10-24 17:17:20 +02:00 |
|
mcudev
|
041dd951d3
|
boardloader: do not use ensure before display_init, just return
|
2017-10-24 17:17:20 +02:00 |
|
mcudev
|
1f6edb448c
|
boardloader: check reset flags for production
|
2017-10-24 17:17:20 +02:00 |
|
mcudev
|
3f58a771b4
|
boardloader: stop clearing standby flag
|
2017-10-24 17:17:20 +02:00 |
|
mcudev
|
b1eea5a434
|
boardloader: enable PVD programmable voltage detector and interrupt
|
2017-10-24 17:17:20 +02:00 |
|
Jan Pochyla
|
f93316bebd
|
cleanup .gitignore files
|
2017-10-24 16:24:59 +02:00 |
|
Pavol Rusnak
|
79fe9162b5
|
trezorhal: simplify api for init functions, use bool and void rather than int
|
2017-10-20 15:25:24 +02:00 |
|
Pavol Rusnak
|
21fac2e2c3
|
boardloader: don't erase sectors in flash_set_option_bytes for now
|
2017-10-20 14:42:51 +02:00 |
|
mcudev
|
d6ae912703
|
boardloader: flash option bytes updates
|
2017-10-20 14:41:01 +02:00 |
|
mcudev
|
fc7b1cfe81
|
flash_init: remove empty function from all stages
|
2017-10-20 14:41:01 +02:00 |
|
mcudev
|
167d476fff
|
image_parse_header: remove undefined behavior and other updates (#61)
boardloader: bootloader: remove undefined behavior in header parsing, code cleanup
|
2017-10-19 18:45:57 +02:00 |
|
mcudev
|
73897c1147
|
boardloader: remove micropython related code that enables debug features to get clock cycle counts (#58)
|
2017-10-17 18:29:51 +02:00 |
|
Pavol Rusnak
|
4a14fb6c4d
|
boardloader: move periph_init to lowlevel.c
|
2017-10-17 11:44:53 +02:00 |
|
mcudev
|
45a4a944d0
|
boardloader, bootloader, firmware: only call periph_init in boardloader (#54)
|
2017-10-17 11:42:57 +02:00 |
|
Pavol Rusnak
|
6ea9b105e5
|
boardloader, bootloader: reorder erasing of sectors, check whether sector was really erased
|
2017-10-16 21:43:07 +02:00 |
|
Pavol Rusnak
|
82050912c4
|
bootloader: implement WipeDevice
|
2017-10-16 20:56:16 +02:00 |
|
Pavol Rusnak
|
001298a90e
|
boardloader: erase storage on failed option_bytes
|
2017-10-16 14:22:10 +02:00 |
|
Pavol Rusnak
|
e8e3ed98f3
|
boardloader: usability fixes
|
2017-10-15 22:20:13 +02:00 |
|
Pavol Rusnak
|
06fc509cbb
|
boardloader: reorder calls so one can abort also by ejecting SD card
|
2017-10-14 13:00:23 +02:00 |
|
Pavol Rusnak
|
8a707ce40d
|
boardloader: check flash_option_bytes at start
|
2017-10-14 12:49:00 +02:00 |
|
mcudev
|
70594a9bfe
|
startup: setup the stack protector for the stage before main function (#46)
|
2017-10-14 12:25:13 +02:00 |
|
Pavol Rusnak
|
bdae87ddde
|
boardloader: small changes to program flow and display output
|
2017-10-13 17:19:14 +02:00 |
|
Pavol Rusnak
|
a7625877ef
|
embed: call clear_otg_hs_memory from fatal_error
|
2017-10-13 00:36:12 +02:00 |
|
mcudev
|
73214017fa
|
clear_otg_hs_memory: Delay after an RCC peripheral clock enabling
|
2017-10-13 00:30:19 +02:00 |
|
Pavol Rusnak
|
c5dfa37f3e
|
boardloader: don't call copy_sdcard twice
|
2017-10-13 00:28:06 +02:00 |
|
Pavol Rusnak
|
2fc69bed61
|
embed: rename trassert to ensure
|
2017-10-12 16:06:53 +02:00 |
|
Pavol Rusnak
|
66b6406b7c
|
boardloader, bootloader: add write-protection and downgrade-protection respectively
|
2017-10-12 14:35:01 +02:00 |
|
Pavol Rusnak
|
9a0c8f4687
|
build: introduce PRODUCTION flag
|
2017-10-12 12:17:04 +02:00 |
|
Pavol Rusnak
|
380d08f1d0
|
embed: introduce trassert (trezor assert)
|
2017-10-12 00:35:14 +02:00 |
|
Pavol Rusnak
|
d003c250d8
|
boardloader: refactor flash_option_bytes from trezorhal to boardloader/lowlevel
|
2017-10-11 23:53:29 +02:00 |
|
mcudev
|
61e0f6c818
|
stm32f427 sram bigger (#39)
|
2017-10-11 23:36:07 +02:00 |
|
Pavol Rusnak
|
7babde646e
|
embed: more cleanup
|
2017-10-11 23:11:59 +02:00 |
|