Commit Graph

337 Commits (c0c2718c1e4ca449bca492eb69539ff5ac95e2cb)

Author SHA1 Message Date
Ondrej Mikle f591ce6789 feat(core): update systemview sources to 3.20
3 years ago
Ondrej Mikle 8fa3745838 feat(core): define RTT locking by enabling/disabling interrupts
3 years ago
Ondrej Mikle ce3a6b649c feat(core): systemview header
3 years ago
Ondrej Mikle 4a692cc63b feat(core): segger dependencies
3 years ago
Ondrej Mikle 5f837e12b9 feat(core): send messaged through systemview
3 years ago
Ondrej Mikle 60e4e06aa5 feat(core): measure systick with systemview
3 years ago
Ondrej Mikle c5e986b1ba feat(core): enable SystemView at firmware start
3 years ago
Martin Milata c293b52bd6 feat(core): bootloader_ci: do not ui_fadein/ui_fadeout
3 years ago
Martin Milata 2643ee2ab8 feat(core): bootloader_ci: wipe device without confirmation
3 years ago
Tomas Susanka 1006c8a0f1 chore(core,legacy): change versions to 1.9.5 and 2.3.6
3 years ago
Pavol Rusnak 92535dc090
chore(core,legacy): change versions back to 1.9.4 and 2.3.5
3 years ago
Pavol Rusnak 43ed13b323 feat(core): disable SECP256K1_ZKP feature flag
3 years ago
Pavol Rusnak f3d5de15ef refactor(core): turn SECP256K1_ZKP into a firmware feature flag
3 years ago
Jan Pochyla f3a64435f1
fix(core): root ui callback for trezorconfig mod (#1412)
3 years ago
Martin Milata db5b65a420 perf(core): enable rendering of substrings to avoid slicing
3 years ago
Pavol Rusnak 93215ae3c7 style: reformat with clang-format 11
3 years ago
Rafael Korbas edf9b4ee85 Refactor mnemonic_to_entropy to not (misleadingly) return checksum
4 years ago
Tomas Susanka d2e3269ede chore(core): bump version to 2.3.6
4 years ago
Andrew Kozlik aeb021b159 chore(core): Improve naming of SLIP39's T9 mask lookup.
4 years ago
Andrew Kozlik 7fc1851279 fix(crypto): Improve naming and robustness of SLIP39's T9 mask lookup.
4 years ago
Pavol Rusnak 0519c8bd13
Revert "chore(core): bump version to 2.3.6"
4 years ago
Tomas Susanka 01d1058048 chore(core): bump version to 2.3.6
4 years ago
Pavol Rusnak b9c0b3969b
legacy+core: unify error codes in bootloaders (#1347)
4 years ago
Pavol Rusnak 50fdd183c2
ci: enable editorconfig checks, fix whitespace issues
4 years ago
Pavol Rusnak ded61a4ccf
chore(vendor): update micropython to v1.13
4 years ago
Andrew Kozlik c67ecb984b chore(crypto): Move XPUB_MAXLEN and ADDRESS_MAXLEN from modtrezorcrypto to bip32.h.
4 years ago
Andrew Kozlik c21ca81a1e fix(core): Prevent sensitive data from being left on the call stack in modtrezorcrypto.
4 years ago
Pavol Rusnak d8534b5ee6
perf(core/extmod): replace HMAC Python implementation with C
4 years ago
Pavol Rusnak 649e31cef0 chore(core/bootloader): regenerate messages with nanopb 0.4.3
4 years ago
Tomas Susanka 0317877297 chore(core): bump version to 2.3.5
4 years ago
matejcik 7e5d9e295b fix(core): help mypy understand micropython's module management
4 years ago
Martin Milata f3fd98a7ba core: remove 1px of space on the left of each glyph
4 years ago
Martin Milata b8bb63fbef core: drop unused FONT_SIZE constant
4 years ago
Tomas Susanka d080464cc5 core, legacy: bump versions (also in changelogs)
4 years ago
Ondrej Mikle 8d3d3be09c
core/bootloader_ic: introduce CI bootloader for TT device tests (#1182)
4 years ago
Martin Milata 1b982659c4
core: fix boot loop after uploading invalid homescreen (#1205)
4 years ago
Pavol Rusnak 5536fbb98a python: use stdlib blake2s on python 3.6+
4 years ago
Pavol Rusnak 4e11735d22 core/modtrezorui: remove prefill from text functions
4 years ago
matejcik 5385617eda core: increase address length limit to accomodate CRW (fixes #1139)
4 years ago
Ondřej Vejpustek 59002118c0 core/extmod: explicitly initialize automatic variables
4 years ago
Pavol Rusnak efc5ccdaf0
core: remove src1
4 years ago
Martin Milata e5bdca655a core: don't scale emulator background image
4 years ago
matejcik 8502412dbc core/emulator: assume `-m main` when no arguments are provided
4 years ago
Pavol Rusnak a6451dad46
core/fonts: update headers
4 years ago
Pavol Rusnak 47e7550423
core/extmod: add font_pixeloperator{,mono}, use this font for T1
4 years ago
Pavol Rusnak cec87bba50
core: remove mono bold font variant (not used anywhere)
4 years ago
Pavol Rusnak 8bc32d035b
core/extmod: enable display_text* methods for other models than T
4 years ago
Pavol Rusnak df03534955
core: print inverted question mark for nonprintable characters
4 years ago
Pavol Rusnak 89d701ed08
core+legacy: bump versions (also in changelogs)
4 years ago
Pavol Rusnak 8dacad0782
core/bootloader: update protobuf definitions
4 years ago
matejcik fa757f4b7f core: improve type annotation for bip32.derive_path
4 years ago
matejcik 0c3bc53aee core: clean up types for field caching, fix count_message
4 years ago
matejcik f723dca7b1 core: enable PYSTACK
4 years ago
matejcik 85d74ece76 core: implement synchronous v1 codec
4 years ago
Andrew Kozlik 4005f4832f core/embed: Set VCP write timeout to 0.
4 years ago
Ondrej Mikle 33d2bf417b core: replace bootloader only in production. Fix device for T1 core port JLink upload
4 years ago
Tomas Susanka f8b2f0bb7b changelogs: change also bootloader changelogs to the new format
4 years ago
Tomas Susanka 56fe5adcfc Merge branch 'release/2020-06'
4 years ago
Pavol Rusnak 179645e3ad core: unify usage of TREZOR_MODEL
4 years ago
Ondrej Mikle c877dc8dd6 core: port storage to T1
4 years ago
matejcik 872e0fb0e0 core: lower scheduler resolution to milliseconds
4 years ago
matejcik 2cedc687e6 core: disable trezor-crypto BIP32 cache
4 years ago
matejcik 837c4df61f core: expose storage_is_unlocked() as config.is_unlocked()
4 years ago
matejcik 87433995b0 core: add BITCOIN_ONLY to mock file
4 years ago
Tomas Susanka 8859d103f4 core, legacy: bump versions
4 years ago
Ondřej Vejpustek 24ceb0ab6b crypto/bignum: change limb size to 29, add tests
4 years ago
Ondrej Mikle b01b24f090 core: change startup firmware file from .s to .S which enables preprocessing and fixes TT boot
4 years ago
Ondrej Mikle 10f0f107e0 core: Adds T1 core port FW flashing options for for openocd and jlink
4 years ago
Ondrej Mikle 0d65d684f0 core: T1 port can run on T1 bootloader with MEMORY_PROTECT=0
4 years ago
matejcik aa52fc3903 core/extmod: drop unused rfc6979 module
4 years ago
matejcik 050936d0d7 core: enable finalizers on extmod classes
4 years ago
matejcik 7f2e7b0003 core: add Ethereum constants to mocks
4 years ago
Ondrej Mikle 7eddafe487 core: better formatting for common parts of T1 and TT header
4 years ago
Ondrej Mikle c4c341b3f9 core: setup stack when running core on T1
4 years ago
Ondrej Mikle e429085e96 core: copy firmware header for T1 port into final binary
4 years ago
Ondrej Mikle d8115a7992 core: firmware header for T1 port
4 years ago
Pavol Rusnak 25cc836660
core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'
4 years ago
Tomas Susanka 47f104bceb core, legacy: bump versions
4 years ago
Ondřej Vejpustek c461692f3a core: implement random delay interrupts
4 years ago
matejcik 2ccebd3175 core: raise SystemExit when exitting emulator (now that sys.exit is removed)
4 years ago
matejcik 4bddeefea0 core: unify mpconfigports for emulator and board
4 years ago
matejcik d0f709b8cc core: fix and use MAKEMODULEDEFS instead of explicit registration
4 years ago
matejcik a6976355c3 core: remove readline from built firmware
4 years ago
Pavol Rusnak a7806d08d7
core/crypto: remove unused bip32.deserialize function
4 years ago
Pavol Rusnak 1695228d80
core/crypto: remove unused serialize_private function
4 years ago
Pavol Rusnak f07ff17fad
core/crypto: add missing field to Blake2b constructor
4 years ago
Pavol Rusnak 336a417233 core/bootloader: distinguish between a vendor change and downgrade with wipe
4 years ago
Ondrej Mikle 634ed5aabc
core: commands for flashing via JLink (#911)
4 years ago
matejcik 3789a3372b core/sdcard: modify exception handling in fatfs
4 years ago
Andrew Kozlik bfd834d1de storage: Add storage_ensure_not_wipe_code().
4 years ago
Dusan Klinec 2658e253fa xmr/bp: memory optimizations and improvements
4 years ago
Tomas Susanka 86b010a18b
Merge pull request #878 from trezor/matejcik/fatfs-corruption
4 years ago
matejcik 9ab84d2455 core/tests: thoroughly test modified APIs
4 years ago
matejcik b24411b900 core/sdcard: unmount instance when powering off sdcard
4 years ago
matejcik c81be584fb core/fatfs: ensure functions can only be called on a mounted filesystem
4 years ago
matejcik fa746e2990 core/fatfs: rework low-level FatFS API
4 years ago
Pavol Rusnak c896f02eb3
core/boardloader: use SRAM as SD card read buffer
4 years ago
Andrew Kozlik 2133f7cf29 core: Prevent data loss when writing to USB VCP.
4 years ago
Pavol Rusnak 39ce100608
Merge pull request #864 from trezor/prusnak/bootloader-text-break
4 years ago
matejcik 4ed6487a19 core/sdcard: add out-of-bounds checks to emulator
4 years ago
matejcik d0b1b171f1 core/sdcard: ensure emulator initializes the SD card when first needed
4 years ago
matejcik 5bd8d9b5bb core/sdcard: make allocating new SD card for emulator fast
4 years ago
matejcik b2084a19be core/trezorio: move sdcard functions to a submodule
4 years ago
matejcik 30529d218d core/sdcard: change SDCard methods to plain functions
4 years ago
matejcik 06b89c57c5 core/sdcard: return proper disk status flags to fatfs
4 years ago
Pavol Rusnak dc66bbe3d5
core/bootloader: split long vendor string
4 years ago
Pavol Rusnak 74802a107e
core/modtrezorui: add display_text_split
4 years ago
Pavol Rusnak c4babd3c0b
Merge pull request #846 from trezor/bootloader-read-retry
4 years ago
Pavol Rusnak 581e46ff87
Merge pull request #845 from trezor/prusnak/webusb-popup
4 years ago
Pavol Rusnak 2958a97c87
Merge pull request #830 from trezor/tsusanka/fw-upgrade
4 years ago
Pavol Rusnak 63dfd6c6ab
core/bootloader: make read more benevolent and read error more helpful
4 years ago
Pavol Rusnak 07cd73ce57
core: show webusb popup only in bootloader and only if firmware is not installed
4 years ago
matejcik c14429c445 all: shut down emulator on error_shutdown
4 years ago
Tomas Susanka 2c0504ad1c
Merge pull request #803 from trezor/passphrase
4 years ago
Pavol Rusnak 32f8f1cb61
core/embed: update fatfs to 0.14; use upstream version
4 years ago
Pavol Rusnak 73ed2f3450
legacy: small nitpicks related to the new passphrase handling
4 years ago
Tomas Susanka 1343583d21
core: bump version to 2.3.0
4 years ago
Tomas Susanka a02d7e3daf core/bootloader: request vendor header first
4 years ago
matejcik d28e33ef02 core/headertool: support generating vendor headers with explicit size
4 years ago
Pavol Rusnak 6dbed1424f
core+legacy: update nanopb api to version 0.4
4 years ago
Pavol Rusnak 3eb7775659
core/bootloader: regenerate protobuf messages
4 years ago
Pavol Rusnak 4647e7d686
core+legacy: use nanopb generator from pipenv
4 years ago
matejcik 75264a07a8
Emulator launcher scripts (#796)
4 years ago
Pavol Rusnak 3de1b3aa54
core/embed: switch to unprivileged in main.c
4 years ago
Pavol Rusnak 7a2e0c3412
core/embed: don't call functions via supervisor if in privileged mode
4 years ago
matejcik 27c4c2dd50 core: do not let frozen emulator import live files
4 years ago
matejcik 9341f0d584
core: improve building of vendor headers
4 years ago
Pavol Rusnak 500156b9ba
core/embed: don't use local copy of inflate
4 years ago
Tomas Susanka 7c41b40dff
tests: introduce UI tests for core with diffs (#784)
4 years ago
Milan Rossa 8b31c6fcf4
core: increase stack size for unix port
5 years ago
Pavol Rusnak 9bc3af08b2
core: update mpconfigport.h from upstream (for both stm32 and unix)
5 years ago
Jan Pochyla 655ec0a70c core/unix: update main.c from upy 1.12
5 years ago
Jan Pochyla 7deade5a10 core/firmware: PendSV_Handler is defined in pendsv.c
5 years ago
Jan Pochyla ecc4313a34 core/usb: avoid naks in hid/webusb rx interfaces
5 years ago
Tomas Susanka 51ef963738 tests: introduce UI tests for core
5 years ago
Pavol Rusnak 8572a5a942
core: fix interrupt usage in usbd_conf
5 years ago
Ondrej Mikle 0064fda203
core: check whether USB structures are correct to avoid faults in shutdown
5 years ago
Pavol Rusnak 6198509948
core: bump version to 2.2.1; update changelog
5 years ago
Milan Rossa 6d932a8a1d core/embed/unix/flash: Don't reopen flash emulation file.
5 years ago
Pavol Rusnak a9454b216d
core: move delay.c from trezorhal to firmware, fix prodtest build
5 years ago
Pavol Rusnak a9e5149b95
core: reorganize source code to allow boardloader build
5 years ago
Pavol Rusnak 046ff607d3
Merge branch 'sdcard-dma'
5 years ago
Milan Rossa 91007bafe9 core/unix/main: Print memory info (peak memory) when TREZOR_LOG_MEMORY env var is set. Part of #194
5 years ago
Pavol Rusnak 43da0d754a
core/embed: decrease SD card operations timeout to 5s
5 years ago
Pavol Rusnak b34675401c
core/embed: add explicit fault handlers
5 years ago
Pavol Rusnak c8c27dcd2f
core/embed: enable/disable SDIO/DMA interrupts via supervisor calls
5 years ago
Pavol Rusnak 990a91cd13
core/embed: enable DMA for SDIO operations
5 years ago
Andrew Kozlik a3b608d8dd storage, core: Reveal the wipe code status after the device is unlocked.
5 years ago
Andrew Kozlik a168d661cf core: Add support for ChangeWipeCode message.
5 years ago
Pavol Rusnak d761a57689
storage: introduce FLAGS_APPID
5 years ago