Commit Graph

41 Commits

Author SHA1 Message Date
Pavol Rusnak 65ee44b636
core: add prints to main loop 2017-05-15 19:33:35 +02:00
Pavol Rusnak 4d4364f0b5
TrezorUi -> TrezorUI 2017-05-15 18:12:05 +02:00
Pavol Rusnak c3e5e2b208
update micropython submodule; add REPL to firmware 2017-05-15 17:58:03 +02:00
Pavol Rusnak 3765fb734b
remove trezor.debug module, add trezor.io module 2017-05-15 15:48:47 +02:00
Jan Pochyla 50c100bf34 mphalport: set vcp iface num at runtime 2017-05-09 16:13:40 +02:00
Pavol Rusnak 8b0336862f
make __fatal_error more useful, add make sizecheck target 2017-04-28 15:39:22 +02:00
Jan Pochyla f64330f4eb main.c: remove usb_init_all from C 2017-04-21 16:25:00 +02:00
Jan Pochyla 46f748205d modtrezormsg: WIP python USB API 2017-04-21 16:25:00 +02:00
Pavol Rusnak fffe8abd02
bootloader: rework message creation 2017-04-16 14:16:40 +02:00
Pavol Rusnak 80d8ab7825
bootloader/firmware: update usb strings 2017-04-12 15:20:09 +02:00
Jan Pochyla 87909637bf stmhal: vcp+hid style & comments, vcp tx ring buffer 2017-04-11 18:06:20 +02:00
Jan Pochyla 28d6b38f6f trezorhal: implement vcp read and ctrl-c soft reset, fix write 2017-04-10 18:32:13 +02:00
Jan Pochyla df57f47aa9 trezorhal: minor usb cleanup 2017-04-07 17:40:22 +02:00
Jan Pochyla 9fcf5afaa9 usb_init_all: better report descriptor format 2017-04-06 19:06:05 +02:00
Pavol Rusnak 435ac7081a loader: add usb 2017-04-06 19:06:05 +02:00
Jan Pochyla 38b99b306a trezorhal: add cdc vcp tx
TODO: rx support
TODO: buffering
TODO: cleanup
2017-04-06 19:06:05 +02:00
Jan Pochyla 3a4cbacbff trezorhal: fix missing rx_buffer 2017-04-06 19:06:05 +02:00
Jan Pochyla 56b1d69796 trezorhal/usb: now compiles 2017-04-06 19:06:05 +02:00
Pavol Rusnak 4f9f351a16
bootloader/loader: print version to log 2017-04-06 17:21:03 +02:00
Pavol Rusnak 1eff07f84d
build: don't convert from png in build_vendorheader, remove vendorheader.bin from vcs 2017-04-01 23:16:25 +02:00
Pavol Rusnak 7cb7a90d27
build: include vendorheader.bin in source tree 2017-04-01 20:21:02 +02:00
Pavol Rusnak 6187a8a0c1
build: refactor build_vendorheader 2017-04-01 18:28:10 +02:00
Jochen Hoenicke e0fd890661 Implemented vendor header.
Header is generated with

    ./tools/build_vendorheader 'key1,key2,key3' 2 1.1 SatoshiLabs assets/satoshilabs.png micropython/firmware/vendorheader.bin

where

- keyN is a 64 character hex string encoding the public key
- 2 encodes 2/3 key scheme
- 1.1 is the version number (major, minor)
- SatoshiLabs is the vendor name
- satoshilabs.png is the vendor image

Updated the firmware compilation that it adds vendor header and updated loader
that it handles vendor header to be present.
2017-04-01 17:01:59 +02:00
Pavol Rusnak a440f3d322
trezorhal: update linker scripts 2017-04-01 12:48:15 +02:00
Pavol Rusnak 435e96e1b3
build: refactor binctl and firmware/loader image stuff 2017-04-01 02:53:52 +02:00
Jochen Hoenicke e37619899e Put loader/firmware header into image (#5) 2017-04-01 00:22:24 +02:00
Pavol Rusnak d3ec688d6f
trezorhal: don't set SCB->VTOR in SystemInit 2017-03-30 16:47:02 +02:00
Pavol Rusnak efb722cc97
trezorhal: split memory files, adapt bootloader and loader 2017-03-29 22:00:17 +02:00
Pavol Rusnak 6861e68f21
update to current micropython master 2017-03-26 23:11:57 +02:00
Pavol Rusnak a9d16aa7fa
firmware: extract periph_init into common.c 2017-03-23 16:22:58 +01:00
Pavol Rusnak 416676120b
extract common stuff into trezorhal/common.[ch] 2017-03-21 02:09:17 +01:00
Pavol Rusnak 6c982a64d1
firmware: move modutime to firmware 2017-03-13 20:06:03 +01:00
Jan Pochyla ab1888fe15 firmware: fix crc32 in ubinascii 2017-03-13 13:22:35 +01:00
Jan Pochyla 1db09f88a1 firmware/main.c: simplify 2017-03-08 14:02:55 +01:00
Jan Pochyla 9fd5f05f1f firmware: simplify, move things to mphalport.c 2017-03-08 13:43:24 +01:00
Jan Pochyla e793870082 trezorhal: remove USE_DEVICE_MODE 2017-03-07 19:06:38 +01:00
Pavol Rusnak 935e9b2912
trezorhal: fix i2c, more reorg 2017-03-07 15:52:19 +01:00
Pavol Rusnak 3f0026912c
i2c: reorganize sources 2017-03-07 15:11:21 +01:00
Jan Pochyla 929f708e5c trezorhal: split to subsystems 2017-03-07 14:50:09 +01:00
Pavol Rusnak 2cde9511da
micropython: update submodule; fix build 2017-03-07 00:56:35 +01:00
Jan Pochyla 78d82386d1 trezorhal: adjust to new structure 2017-03-06 17:33:48 +01:00