Commit Graph

315 Commits (30ff61b588b46ad88be9e2bf8be147555f93898c)

Author SHA1 Message Date
Pavol Rusnak efa918a2f9
prodtest: code cleanup, fix build
7 years ago
Jan Pochyla 905e0bc82a
prodtest: codestyle, touch, fixes
7 years ago
Jan Pochyla 51d00e1de7
trezorhal/usb: add Inf timeout to blocking fns
7 years ago
Jan Pochyla 9cb342fcb6
prodtest: implement commands
7 years ago
Jan Pochyla 95965c3ff7
prodtest: add new target
7 years ago
Pavol Rusnak f73eb3effd
trezorhal: introduce secbool/sectrue/secfalse and use it where possible
7 years ago
Pavol Rusnak 7ddfdf69d6
trezorhal: support for non-continous areas in check_image_contents
7 years ago
Pavol Rusnak 89cc35b195
trezorhal: fix hash offset in check_image_contents
7 years ago
Pavol Rusnak 7c891e19e5
boardloader, bootloader: check image contents against hashes in the header
7 years ago
Pavol Rusnak b4ff9deb6b
bootloader: better wording
7 years ago
Pavol Rusnak 63636be0a3
trezorhal: rework header checking to new format
7 years ago
Pavol Rusnak 9e82a4d348
bootloader, firmware: introduce chunk hashes in the image header
7 years ago
Pavol Rusnak 3c974095aa
trezorhal: increase image header size from 512 to 1024 bytes
7 years ago
Pavol Rusnak 0c6ee14ee1
trezorhal: move image related defines to image.h
7 years ago
Pavol Rusnak 28aca51bc8
firmware: sign just the firmware part, not vendor header
7 years ago
Pavol Rusnak e4003700cd
bootloader, firmware: update visuals
7 years ago
Pavol Rusnak 8bd258db6f
trezorhal: added calls to USBD_LL_FlushEP in deinit functions
7 years ago
Pavol Rusnak 9e31e0f4d4
bootloader: stop/deinit usb for unplug events as well
7 years ago
mcudev b922579173 bootloader: cleanup usb on firmware upload success before jumping to firmware (#68)
7 years ago
Pavol Rusnak d2ecae71d7
trezorhal: return position of last touch event from touch_click
7 years ago
Pavol Rusnak 6e51ee251f
bootloader+firmware: call shutdown instead of inf-loop after main is finished
7 years ago
mcudev abf7f822b8 boardloader: do not call shutdown directly, return and the startup code handles it
7 years ago
mcudev 041dd951d3 boardloader: do not use ensure before display_init, just return
7 years ago
mcudev 1f6edb448c boardloader: check reset flags for production
7 years ago
mcudev 3f58a771b4 boardloader: stop clearing standby flag
7 years ago
mcudev b1eea5a434 boardloader: enable PVD programmable voltage detector and interrupt
7 years ago
Jan Pochyla f93316bebd cleanup .gitignore files
7 years ago
Pavol Rusnak 6b9751d30d
trezorhal: cleanup usb api
7 years ago
Pavol Rusnak 4f041e9f3a
trezorhal: update sdcard api
7 years ago
Pavol Rusnak 3033762618
trezorhal: make touch_init and usb_init return void, use ensure inside
7 years ago
Pavol Rusnak 5f256ce0b0
bootloader: show DOM QR code on welcome screen
7 years ago
Pavol Rusnak b544fd3f81
bootloader: fix usb_init_all api
7 years ago
Pavol Rusnak 79fe9162b5
trezorhal: simplify api for init functions, use bool and void rather than int
7 years ago
Pavol Rusnak b51ca0a16e
trezorhal: remove extra comment
7 years ago
Pavol Rusnak 21fac2e2c3
boardloader: don't erase sectors in flash_set_option_bytes for now
7 years ago
mcudev d6ae912703 boardloader: flash option bytes updates
7 years ago
mcudev fc7b1cfe81 flash_init: remove empty function from all stages
7 years ago
mcudev 167d476fff image_parse_header: remove undefined behavior and other updates (#61)
7 years ago
mcudev a0286bcc29 build: further cleanup common symbols (#63)
7 years ago
Pavol Rusnak 749b80ba03
bootloader: fix touch detection at start
7 years ago
mcudev ee7e6134a2 bootloader, firmware: do not need touch interrupt handlers or to enable touch interrupts (#59)
7 years ago
mcudev 73897c1147 boardloader: remove micropython related code that enables debug features to get clock cycle counts (#58)
7 years ago
Pavol Rusnak e10d40f846
bootloader: restart into firmware after update, don't shutdown
7 years ago
Pavol Rusnak c689b1f2cd
bootloader: remove debug code
7 years ago
mcudev 4bda828cbd boardloader: disable flash data cache (#57)
7 years ago
Pavol Rusnak 17c3d2b56f
bootloader: implement UI according to mockup
7 years ago
Pavol Rusnak fdafae7d8d
trezorhal: remove timer1_get_source_freq function
7 years ago
mcudev 4f16aed757 display: handle TEON and COLMOD the same for both display types (#55)
7 years ago
Pavol Rusnak 4a14fb6c4d
boardloader: move periph_init to lowlevel.c
7 years ago
mcudev 45a4a944d0 boardloader, bootloader, firmware: only call periph_init in boardloader (#54)
7 years ago
mcudev ac89203e7c SDIO: remove SDIO_IRQHandler and interrupt config (#53)
7 years ago
Pavol Rusnak 6ea9b105e5
boardloader, bootloader: reorder erasing of sectors, check whether sector was really erased
7 years ago
Pavol Rusnak b1d9a59a79
unix: fix build
7 years ago
Pavol Rusnak 82050912c4
bootloader: implement WipeDevice
7 years ago
mcudev ca8d93ab5d boardloader, bootloader, firmware: factor out display_pwm_init (#52)
7 years ago
Pavol Rusnak 2010213338
bootloader: first UI steps
7 years ago
mcudev 0e2a1da99b display: remove redundant display commands and increase wait after reset (#51)
7 years ago
Pavol Rusnak 001298a90e
boardloader: erase storage on failed option_bytes
7 years ago
Pavol Rusnak e8e3ed98f3
boardloader: usability fixes
7 years ago
Pavol Rusnak b6f9df10bb
display: set minimum possible values for sram controller
7 years ago
Pavol Rusnak 46a0dd8648
display: fix DataSetupTime for ST7789V
7 years ago
mcudev e2b66436df display: tearing effect cleanup
7 years ago
mcudev 26852e5aee boardloader: display_init stm32f42x updates
7 years ago
mcudev e4aec8f302 code cleanup 3: add note about timer wrap and use increment operator
7 years ago
mcudev a1c33e32f0 code cleanup 2: explicit .bss, linker map, and simpler systick
7 years ago
mcudev 5b634098d9 code cleanup
7 years ago
Pavol Rusnak 06fc509cbb
boardloader: reorder calls so one can abort also by ejecting SD card
7 years ago
Pavol Rusnak 8a707ce40d
boardloader: check flash_option_bytes at start
7 years ago
mcudev 70594a9bfe startup: setup the stack protector for the stage before main function (#46)
7 years ago
Pavol Rusnak 4c9e2d45a5
bootloader: use display_fade
7 years ago
Pavol Rusnak 204f0c55e4
bootloader: use ensure
7 years ago
Pavol Rusnak bdae87ddde
boardloader: small changes to program flow and display output
7 years ago
Pavol Rusnak 4831287357
embed: move call to usb_clear to shutdown function in assembler
7 years ago
Pavol Rusnak 88894e7a8d
embed: disable stack protector for SysTick_Handler
7 years ago
Pavol Rusnak a7625877ef
embed: call clear_otg_hs_memory from fatal_error
7 years ago
mcudev 73214017fa clear_otg_hs_memory: Delay after an RCC peripheral clock enabling
7 years ago
mcudev 7103404b90 RNG: Delay after an RCC peripheral clock enabling
7 years ago
Pavol Rusnak c5dfa37f3e
boardloader: don't call copy_sdcard twice
7 years ago
Pavol Rusnak b60a1ad79f
embed: add shutdown function to fatal_error
7 years ago
Pavol Rusnak 2fc69bed61
embed: rename trassert to ensure
7 years ago
Pavol Rusnak 8cc8272fb3
build: pass gitrev, use it in fatal_error
7 years ago
mcudev 0c1f609675 SystemInit: add more waiting just to be sure (#41)
7 years ago
mcudev be92d9a7ee vector table updates (#40)
7 years ago
Pavol Rusnak 66b6406b7c
boardloader, bootloader: add write-protection and downgrade-protection respectively
7 years ago
Pavol Rusnak 9a0c8f4687
build: introduce PRODUCTION flag
7 years ago
Pavol Rusnak 380d08f1d0
embed: introduce trassert (trezor assert)
7 years ago
Pavol Rusnak d003c250d8
boardloader: refactor flash_option_bytes from trezorhal to boardloader/lowlevel
7 years ago
Pavol Rusnak 3982c19378
fix whitespace
7 years ago
mcudev 61e0f6c818 stm32f427 sram bigger (#39)
7 years ago
Pavol Rusnak 98ad17e1ea
firmware: use __FUNCTION__ in consistency with the rest of the code
7 years ago
Pavol Rusnak 7babde646e
embed: more cleanup
7 years ago
Pavol Rusnak 7653eb699d
embed: use 4bpp fonts again
7 years ago
Pavol Rusnak a43aec0fe3
embed: make F427 the default mcu
7 years ago
Pavol Rusnak 6413c2c23e
embed: rework memory layout, enable stack protector
7 years ago
Pavol Rusnak 7117c59ed9
firmware: drop firmware0 concept
7 years ago
Pavol Rusnak 10ebd43261
firmware: move nlr_jump_fail from common to firmware
7 years ago
Pavol Rusnak 32e48258e4
trezorhal: preparations for F427 support
7 years ago
Pavol Rusnak eb345046d3
trezorhal: move internal constants to common.c
7 years ago
Pavol Rusnak 69953a91c5
trezorhal: code cleanup, combine stm32_it.c + stm32_system.c into stm32.c
7 years ago
Pavol Rusnak a6fd1da237
boardloader: wait 5 seconds before copying bootloader
7 years ago
mcudev ead626404b boardloader: issue 34 (#36)
7 years ago
mcudev 9ea975d37d jump_to: reset registers to zero (#33)
7 years ago
mcudev 8e96978ce2 boardloader, bootloader, firmware stage switching updates (#30)
7 years ago
mcudev dbfeddce79 firmware: issue #12 (#29)
7 years ago
mcudev 08caf86c5b bootloader: issue #12 (#28)
7 years ago
mcudev b0c54e2a4b boardloader: simplify linker script (#27)
7 years ago
Pavol Rusnak 7bbfba1ac0
boardloader, bootloader: moving embed/common/* to embed/trezorhal/*
7 years ago
mcudev 8d3540c858 boardloader, bootloader: jump_to memory clearing and simplify code to asm
7 years ago
mcudev acca6a0945 boardloader: move memset_reg to separate source file
7 years ago
mcudev bb5b4d2e55 boardloader: simplify vector table config with macro
7 years ago
mcudev 08b231a298 boardloader: factor out vector table
7 years ago
mcudev 4ee5872a55 display: backlight handling (#25)
7 years ago
mcudev f4e72aa4cc rng updates (#24)
7 years ago
mcudev a381819ad1 clock updates (#21)
7 years ago
Pavol Rusnak 6693d61aa0
boardloader+bootloader: remove prints during normal operation
7 years ago
Pavol Rusnak 78f57d083c
add vendor trust to vendorheader
7 years ago
Pavol Rusnak 39b614499f
build: update production keys
7 years ago
Pavol Rusnak b962ace27d
build: add production keys
7 years ago
Pavol Rusnak 09340e93d7
firmware+unix: sync mpconfigport.h with upstream
7 years ago
Jan Pochyla cd33fa7293 modtrezorui/unix: remove redundant init values
7 years ago
Jan Pochyla 7c4db458e5 modtrezorui/unix: fix 5c21c4a
7 years ago
Jan Pochyla 3a48307002 modtrezorui/unix: fix 43e8b85
7 years ago
Jan Pochyla 99d3ae5e8b modtrezorui/unix: make sure display is initialized
7 years ago
Jan Pochyla 7d31bdcf78 modtrezorutils: add consteq
7 years ago
Pavol Rusnak 2139e8b02d
fonts: use 2 BPP instead of 4 for fonts
7 years ago
Pavol Rusnak da8cc37a54
tools: move code generating tools to tools/codegen
7 years ago
Pavol Rusnak 63737f59b0
bootloader: vendor nanopb as submodule
7 years ago
Pavol Rusnak 8ddcd74080
build: sign all stuff using ed25519 cosi (2 out of 3)
7 years ago
mcudev 430117dd16 flash_otp_write: uninitialized variable
7 years ago
Pavol Rusnak 2bc37a10fe
use different set of keys for boardloader/bootloader/vendorheader
7 years ago
Pavol Rusnak a055f4e8fb
boardloader+bootloader: remove unneded STM32 include
7 years ago
Pavol Rusnak ad614a364f
bootloader+firmware: move startup scripts to embed, preparation for their change
7 years ago
mcudev 3bcd75fd94 issue 12: startup related changes
7 years ago
Pavol Rusnak 11e223850f
trezorhal: enable CSS (Clock Security System)
7 years ago
Pavol Rusnak d33ce4a666
firmware: fix last commit
7 years ago
Pavol Rusnak cfe9c73c78
firmware: init display when used in standalone (firmware0) mode
7 years ago
mcudev 43e8b85700 display updates
7 years ago
mcudev 58bad110e2 hardfault handler update
7 years ago
Pavol Rusnak d50eeb581a
trezorhal: introduce flash_write_{byte,word}
7 years ago
Pavol Rusnak 67d8d4fa2e
modtrezorio: add FlashOTP class
7 years ago
Pavol Rusnak 66930f2e37
trezorhal: add flash_otp functions
7 years ago
Pavol Rusnak 9019ec7e2b
build: add firmware0 target (firmware with no headers)
7 years ago
Jan Pochyla 1da18c955b trezorhal/sbu: use PA2/PA3
7 years ago
Pavol Rusnak a67be06349
trezorhal: add io.SBU
7 years ago
Pavol Rusnak b715f7463d
modtrezorui: pwm control is now on pin A7
7 years ago
Pavol Rusnak be598582f5
trezorhal: remove trezorhal/hal directory
7 years ago
mcudev 5c21c4a96b better support ILI9341 testing, make tearing effect synch optional, minor fixes
7 years ago
Jan Pochyla 29b90465ce micropython: update submodule
7 years ago
mcudev 7535fb74ea fix minor compile time bug and update docs
7 years ago
Pavol Rusnak d72f026313
firmware: enable input() built-in
7 years ago
Pavol Rusnak a926e5047d
trezor.io: update comment in sdcard read/write methods
7 years ago
Pavol Rusnak fb2eff7ced
trezor.ui: add antialiasing to display.avatar
7 years ago
Pavol Rusnak be9a05b55a
ui.display: add avatar function
7 years ago
Pavol Rusnak ae17af2313
Revert "usb: disable HS mode & U2F iface for now"
7 years ago
Jan Pochyla b61676cf89 usb: disable HS mode & U2F iface for now
7 years ago
Jan Pochyla 115bd995eb trezorhal/usb: fix string descriptors
7 years ago
Jan Pochyla bdc9496ff0 make: remove Makefiles
7 years ago
Jan Pochyla a15f6e3835 modtrezorio: fix missing includes
7 years ago
Jan Pochyla b1b84fb233 modtrezorio: move write() to HID
7 years ago
Jan Pochyla d2781d030d msg: rename to io
7 years ago
Jan Pochyla 4c987454eb modtrezormsg: merge to modtrezorio
7 years ago
Jan Pochyla 3dab5e7797 scons: cleanup defines
7 years ago
Jan Pochyla c357692a43 scons: add SConscript.unix
7 years ago
Jan Pochyla 803e39c2a8 make: adapt to micropython -> embed rename
7 years ago
Jan Pochyla 55bd4a0806 rename /micropython to /embed
7 years ago