Commit Graph

285 Commits

Author SHA1 Message Date
Roman Zeyde
c6564b0110 fix(core): include telemetry-related source in emulator builds
[no changelog]
2026-02-10 10:07:07 +01:00
cepetr
da71e34241 feat(core): implement micropython app_loader/cache wrapper
[no changelog]
2026-01-16 09:20:57 +01:00
cepetr
08f32990b2 feat(core): introduce EXTAPP_SUPPORT build option
[no changelog]
2026-01-16 09:20:57 +01:00
cepetr
959f9fa9fb refactor(core): refactor coreapp emu startup, run coreapp as a task
[no changelog]
2026-01-16 09:20:57 +01:00
cepetr
29ad7f9c9f feat(core): introduce coreapp api
[no changelog]
2026-01-16 09:20:57 +01:00
cepetr
1d41508265 feat(core): introduce an IPC mechanism
[no changelog]
2026-01-16 09:20:57 +01:00
Roman Zeyde
98ba19b081 build(core): fix Rust library path in SConscript
[no changelog]
2026-01-14 11:16:47 +01:00
cepetr
f0d12275d3 refactor(core): move rsod to io/gfx and sec/rsod
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
47a7ba723f refactor(core): move gfx to io/gfx
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
cd8b7b62d6 refactor(core): move translatations module to io layer
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
2cc46b0f08 refactor(core): move image module to sec layer
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
0fb65da661 refactor(core): move scm_revision to rtl layer
[no changelog]
2026-01-13 11:18:26 +01:00
Jun Luo
4375c211f9 feat(tron): add TransferContract support
Allows native TRX transfer
[no changelog]

Co-authored-by: PrisionMike <su.sh2396@gmail.com>
2026-01-06 03:57:42 -05:00
matejcik
ed435ab960 build(core/rust): use dev profile for debug builds of emulator
this enables debug_assert!s and other internal checks for detectable UBs
that are omitted in a release build

[no changelog]
2026-01-05 19:06:13 +01:00
Roman Zeyde
ef0cb404e3 build(core): remove unused import shlex
[no changelog]
2025-12-22 09:58:05 +01:00
Roman Zeyde
6a637bd49f build(core): exclude embed/rtl/printf.c from non-prodtest builds
Otherwise, nightly CI fails with:
https://github.com/trezor/trezor-firmware/actions/runs/20320385493/job/58431441939

We currently use `printf()` only in prodtest / non-production builds[^1].

[no changelog]

[^1]: https://github.com/trezor/trezor-firmware/pull/6208#discussion_r2610006444
2025-12-18 19:07:27 +01:00
cepetr
80c5444a2e fix(core): remove rsod screens from rtl error handling
[no changelog]
2025-12-16 11:49:07 +01:00
cepetr
f804a1fbe9 feat(core): introduce centralized logging
[no changelog]
2025-12-12 15:18:35 +01:00
cepetr
b1af516621 feat(core): add extended formatting capabilities to snprintf
[no changelog]
2025-12-12 15:18:35 +01:00
cepetr
b969d71cd3 refactor(core): do not use mini_snprintf in board/bootloader
[no changelog]
2025-12-12 15:18:35 +01:00
Roman Zeyde
cf5f1dc534 build(core): enable Tropic by default for non-emulator targets
Disable it by default only for at `SConscript.unix` (since currently `emu.py` doesn't start Tropic emulator).

[no changelog]
2025-11-20 10:13:26 +01:00
PrisionMike
0468fa14aa fix(tron): update tron to use session
- Minor code fixes to old PR by overcat
- Only build Tron for debug builds
- Updated message index
- Updated text fixtures
[no changelog]
2025-11-12 10:07:50 +01:00
Jun Luo
590d3e98b2 feat(common,core,python,tests): add tron.get_address support.
[no changelog]
2025-11-12 10:07:50 +01:00
Martin Pastyřík
d2516f1d07 feat(core): functions for Evolu spam protection
[no changelog]
2025-11-05 10:22:37 +01:00
Roman Zeyde
5c33f760f2 fix(core): add missing get_serial_number handler
Also, correct the `exclude` expression at `SConscript.unix`.
2025-10-31 15:16:30 +01:00
Roman Zeyde
cb23774065 feat(core): allow exporting unit serial number
[no changelog]
2025-10-03 17:37:10 +03:00
cepetr
6f789233fc refactor(core): originate random number always from sec/rng
[no changelog]
2025-09-24 15:51:02 +02:00
obrusvit
cb6da02dfc refactor(core): move power management modules
- better code organization

[no changelog]
2025-09-16 14:30:06 +02:00
Suyash Shandilya
f51a8fe8bf feat(translations): allow dev-signed translation blobs in non-production builds
Changed the feature lock on accepting dev signed translation blobs from `debug` to `dev_keys` (new). This is enabled for all non-production builds so QA can test translations even on production ready, unsigned builds.
[no changelog]
2025-09-12 11:16:07 +02:00
cepetr
71d6052652 refactor(core): simplify usb driver api
[no changelog]
2025-08-28 14:57:24 +02:00
cepetr
9951c962c3 refactor(core): remove circular dependencies, new 'storage' feature
[no changelog]
2025-08-12 13:47:39 +02:00
cepetr
8a8ecdfcc8 refactor(core): cleanup storage syscalls, prepare early initialization
[no changelog]
2025-08-12 13:47:39 +02:00
tychovrahe
74c3deaf27 refactor(core): rewrite debug overlay in rust
[no changelog]
2025-08-11 16:41:35 +02:00
M1nd3r
936c767db4 chore: adjust SConscripts to THP 2025-07-31 20:29:05 +02:00
obrusvit
059d795ec3 feat(core): implement autodim in app firmware
- similarly to bootloader, firmware sets backlight to LOW (45) after 30s
of inactivity when the device is not connected via USB
- implemented via IdleTimer

[no changelog]
2025-07-25 17:12:47 +02:00
Martin Milata
200eac6384 refactor(core): exclude THP related string identifiers from non-THP builds
[no changelog]
2025-06-13 15:58:33 +02:00
obrusvit
f04edf3a28 feat(core): battery updates in FW event loop
[no changelog]
2025-06-11 23:39:28 +02:00
Martin Milata
2c45bac81a refactor(core): ignore BLE exceptions on boot
[no changelog]
2025-06-05 15:53:23 +02:00
cepetr
8a115eff03 chore(core): reformat FEATURES_WANTED list for readability
[no changelog]
2025-06-04 16:58:15 +02:00
cepetr
bbb74c03a4 feat(core): introduce secure monitor
[no changelog]
2025-06-04 16:58:15 +02:00
tychovrahe
5a3156d782 refactor(core/unix): use unix common files in scons
[no changelog]
2025-06-02 09:16:53 +02:00
Martin Milata
39a1c81154 refactor(core): device menu modules
[no changelog]
2025-05-30 17:38:16 +02:00
Roman Zeyde
556e29b068 perf(core): enable MICROPY_ROM_TEXT_COMPRESSION
Also, use `__builtin_strcmp` instead of `strcmp`.

[no changelog]
2025-05-15 09:55:40 +03:00
Roman Zeyde
7cdb0cf244 feat(vendor): update MicroPython to allow excluding line numbers from bytecode
Setting `MICROPY_ENABLE_SOURCE_LINE=0` helps reducing the debug firmware size by ~2%:
```
$ TREZOR_MODEL=T3T1 MICROPY_ENABLE_SOURCE_LINE=0 PYOPT=0 make -C core build_firmware
<snip>
           FLASH:     1,629,456 B      1664 KB     95.63%
```

Before this PR:
```
           FLASH:     1,662,224 B      1664 KB     97.55%
```

[no changelog]
2025-05-13 17:07:37 +03:00
Roman Zeyde
3a7850f6a0 chore: remove BNB Beacon Chain support 2025-05-13 09:04:48 +03:00
cepetr
452e63c4fb feat(core): add display feature to SConscript
[no changelog]
2025-05-12 07:57:46 +02:00
cepetr
daa6ea25fb feat(core): add powerctl feature to SConscript
[no changelog]
2025-05-12 07:57:46 +02:00
obrusvit
4005e136e0 feat(emu): add LED capability to emulator
[no changelog]
2025-05-06 15:47:04 +02:00
Eugene Rossokha
ffbdea202a feat(core): add loadable solana tokens 2025-04-29 14:54:41 +02:00
M1nd3r
10f9254f7a chore(core): remove wire_log from non-debug builds
[no changelog]
2025-04-28 23:52:47 +02:00