M1nd3r
27eee69310
temp: thp rest
...
[no changelog]
2025-04-16 17:22:33 +02:00
Martin Milata
317e44adfc
refactor(core): device menu modules
...
[no changelog]
2025-04-16 17:11:08 +02:00
Roman Zeyde
c2dd63a6bd
chore(core): move core/prof
into core/src/prof
...
It would allow interning profiling-related QSTRs in debug emulator builds.
[no changelog]
2025-04-14 22:40:52 +03:00
Martin Milata
0ecff7182b
build(core): allow ble feature in emulator
...
[no changelog]
2025-04-09 21:25:37 +02:00
Roman Zeyde
879cc69c63
perf(core): intern non-alphanumeric characters
...
It was found by running `micropython.mem_info()` with the following patch:
```diff
diff --git a/py/gc.c b/py/gc.c
index 604334c95..bff62b754 100644
--- a/py/gc.c
+++ b/py/gc.c
@@ -840,6 +840,7 @@ void gc_dump_info(void) {
(uint)info.total, (uint)info.used, (uint)info.free);
mp_printf(&mp_plat_print, " No. of 1-blocks: %u, 2-blocks: %u, max blk sz: %u, max free sz: %u\n",
(uint)info.num_1block, (uint)info.num_2block, (uint)info.max_block, (uint)info.max_free);
+ qstr_dump_data();
}
void gc_dump_alloc_table(void) {
```
New QSTR definitions:
```
$ tail -n4 ./core/build/unix/genhdr/qstrdefs.generated.h
QDEF(MP_QSTR__paren_close_, 46476, 1, ")")
QDEF(MP_QSTR__paren_open_, 46477, 1, "(")
QDEF(MP_QSTR__lt_, 46489, 1, "<")
QDEF(MP_QSTR__semicolon_, 46494, 1, ";")
```
[no changelog]
2025-04-07 20:19:31 +03:00
cepetr
ced0a1462e
feat(core): emulate hw jpeg decoder using libjpeg
...
[no changelog]
2025-04-04 12:59:44 +02:00
matejcik
d900eb4c54
build(core): update build to newer libtropic
...
* update unix port filename
* update USE_TREZOR_CRYPTO flag to LT_USE_TREZOR_CRYPTO
2025-04-04 10:26:22 +02:00
Martin Milata
199c02adb2
build(core): only include apps.management.ble when needed
...
[no changelog]
2025-04-03 16:17:12 +02:00
cepetr
b9d15cb343
feat(core): introduce system-level event polling
...
[no changelog]
2025-04-01 10:00:26 +02:00
Roman Zeyde
567de7e643
feat(core): increase MicroPython bytecode optimizations
...
[no changelog]
2025-03-28 19:46:24 +03:00
Roman Zeyde
cc416720f0
build(core): explicitly map PYOPT
to MicroPython bytecode optimization level
...
[no changelog]
2025-03-28 19:46:24 +03:00
tychovrahe
b7b8e77ccb
feat(core): enable tropic in firmware/kernel on hw
...
[no changelog]
2025-03-27 11:59:10 +01:00
Ioan Bizău
b1cd4cb469
chore(core/build): don't build with Tropic by default
...
[no changelog]
Co-authored-by: Martin Milata <martin@martinmilata.cz>
2025-03-26 10:32:31 +01:00
Roman Zeyde
4c2c6f13e7
fix(core): add BLE feature flag to MicroPython build sed scripts
...
[no changelog]
2025-03-20 15:22:32 +02:00
Roman Zeyde
2333a6a262
feat(core): log GC info in case of OOM
...
Enabled on debug firmware and non-frozen emulator.
[no changelog]
2025-03-17 20:17:42 +02:00
Roman Zeyde
90d7713592
build(core): fix RUST_PRINT_TYPES_SIZES
passing to SConscript.firmware
...
Use a list to collect RUSTFLAGS, to prevent overwriting them.
Also:
- fix a typo in `SConscript.unix` (it was using `firmware` build directory)
- use keyword arguments for better readability
- reformat Rust library build command string
[no changelog]
2025-03-13 18:18:48 +02:00
Ioan Bizău
3efa0480c6
feat(core): add libtropic to the unix build
...
[no changelog]
2025-03-13 15:08:48 +01:00
Ioan Bizău
50879cd4da
chore(core/nostr): remove Nostr from production build
...
[no changelog]
2025-02-28 14:15:45 +01:00
Ioan Bizău
073038771e
feat(core): introduce Nostr
...
[no changelog]
2025-02-28 14:15:45 +01:00
tychovrahe
57789c7121
refactor(core): remove fonts and no longer used drawing functions from C
...
[no changelog]
2025-02-11 11:25:18 +01:00
tychovrahe
1700841856
refactor(core): unify way how rust is added to build
...
[no changelog]
2025-02-11 11:25:18 +01:00
Martin Milata
dadff32f39
build(core): use internal model names everywhere
...
TREZOR_MODEL=T and TREZOR_MODEL=R
no longer work, please use
TREZOR_MODEL=T2T1 and TREZOR_MODEL=T2B1
[no changelog]
2025-01-13 16:24:35 +01:00
Andrew Kozlik
83a96f7a5a
feat(core): Randomize SCM_REVISION address in firmware
...
[no changelog]
2025-01-03 10:23:41 +01:00
M1nd3r
8eb62fdeca
refactor(core): abstract cache and context
...
[no changelog]
2024-12-02 12:39:15 +01:00
matejcik
b35854471b
build(core): improve CPPDEFINES quoting
...
Here we change all FOO=VALUE defines to be tuples ("FOO", "VALUE").
Also, VALUE is always the raw string you want to end up in the C file,
instead of attempting to shell-escape it while specifying.
By all rights scons _should_ be using shlex.quote() on the CPPDEFINES,
but it doesn't, so we hack it by specifying the define prefix as `-D'`
and suffix as `'`. That way the arguments in shell are '-escaped, and
we're (currently) not using ' in any argument value so this should work
fine.
At the same time, when passing the flags to cargo, we can shlex.quote
the whole thing and get the right strings passed all the way into
build.rs -- as long as no argument contains a comma, which is the split
character...
2024-11-21 14:33:52 +01:00
tychovrahe
c5b3dd72b9
feat(core): add support for SBU on T3W1
...
[no changelog]
2024-11-20 11:17:35 +01:00
cepetr
089db2cadf
refactor(core): restructure embed folder
...
[no changelog]
2024-11-18 09:41:02 +01:00
M1nd3r
4f0f3b2d27
chore(core): adjust build scripts for THP
...
[no changelog]
2024-11-15 08:47:24 +01:00
M1nd3r
ed90f6bd08
fix(core): fix TREZOR_MEMPERF flag
...
[no changelog]
2024-11-14 23:55:57 +01:00
cepetr
d4286ff584
chore(core): remove legacy drawing code (c)
...
[no changelog]
2024-11-13 12:15:38 +01:00
tychovrahe
1efb684544
refactor(core): expose USE_TOUCH and USE_BUTTON to uPy
...
[no changelog]
2024-11-12 16:55:17 +01:00
M1nd3r
74655931ce
feat(core): allow benchmark on BITCOIN_ONLY debug build
...
[no changelog]
2024-10-25 13:16:39 +02:00
cepetr
12a9dca5e1
refactor(emulator): improve SDL event polling logic
...
[no changelog]
2024-10-22 09:06:21 +02:00
cepetr
5845c665af
refactor(core): refactor unit properties detection
...
[no changelog]
2024-10-22 08:30:49 +02:00
Ondřej Vejpustek
2d5d7201d5
feat(core): allow benchmark only in debug
...
[no changelog]
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
e8f8d0e7af
build(core): move argument parsing together
...
[no changelog]
2024-10-11 16:35:34 +02:00
Ondřej Vejpustek
cf38460286
build(core): hide benchmark application behind compilation flag
...
[no changelog]
2024-10-11 16:35:34 +02:00
tychovrahe
d71d9e9c34
feat(core): add T3W1 emulator build
...
[no changelog]
2024-10-09 15:06:40 +02:00
M1nd3r
6ba75b267d
chore(core): exclude THP modules and messages from non-THP builds
...
[no changelog]
2024-10-09 10:44:30 +02:00
tychovrahe
7374700c0a
refactor(core): ui configuration in build scripts
...
[no changelog]
2024-09-27 22:02:08 +02:00
tychovrahe
94af4d98f0
chore(core): clean sconscripts
...
[no changelog]
2024-09-27 09:49:20 +02:00
cepetr
35c6f52133
refactor(core/embed): introduce system, tasks, applets and emergency mode
...
[no changelog]
2024-09-24 12:21:53 +02:00
cepetr
1c991339ce
refactor(core/embed): split firmware into kernel & coreapp
...
[no changelog]
2024-09-24 12:21:53 +02:00
cepetr
7f3cff04f1
refactor(core/embed): introduce new mpu driver
...
[no changelog]
2024-09-24 12:21:53 +02:00
cepetr
8fab22522a
refactor(core/embed): moving specific algorithms into fwutils
...
[no changelog]
2024-09-24 12:21:53 +02:00
cepetr
0666e6ea9a
refactor(core/embed): rename boot_args to bootuils
...
[no changelog]
2024-09-24 12:21:53 +02:00
cepetr
1443f86983
feat(core/embed): introduce systick and systimer drivers
...
[no changelog]
2024-09-24 12:21:53 +02:00
cepetr
a3fcc62655
refactor(core/build): remove hardcoded build path
...
[no changelog]
2024-09-24 12:21:53 +02:00
tychovrahe
24c0552a43
feat(core): switch to new rendering everywhere
...
[no changelog]
2024-09-17 17:46:11 +02:00
Ondřej Vejpustek
eaa12f1cad
chore(crypto): update secp256k1 submodule to 0.5.1
...
[no changelog]
2024-08-23 17:00:52 +02:00