Commit Graph

6376 Commits

Author SHA1 Message Date
PrisionMike
328cd08d48 feat(tron): clear sign Approve flow
[no changelog]
2026-02-18 14:48:50 +05:30
PrisionMike
870f0db189 feat(tron): Adding FreezeBalanceV2 contract logic
- Main logic for Staking Tron for energy or bandwidth.
- Scaffolding in preceding commit.

[no changelog]
2026-02-17 22:54:19 +05:30
PrisionMike
1189138408 feat(tron): adding FreezeBalanceV2 message support
- Updated message definitions. Introduced new strings.
- Mostly generated code. Main changes in subsequent commit.

[no changelog]
2026-02-17 22:54:19 +05:30
bleska
c6bdec5b77 refactor(core): dma2d_wait() busy wait removal
dma_transfer_in_progress boolean variable has been added for tracking of dma2d current state (transferring/idle). The variable is set after dma2d successful transfer start and cleared inside the dma2d_wait() function after the dma2d transfer has finished.

dma2d_wait() function has been refactored from HAL based busy waiting variant to a priodical polling of dma2d status flags (TC, TE, CE) and sleep/wake concept using the dma2d to wake MCU when such event occurs.

WFE (Wait For Event) instruction is used for MCU sleep entry. The "SCB.SCR.SEVONPEND" bit is used to enable MCU wake-up with NVIC disabled IRQs.

[no changelog]
2026-02-17 13:36:54 +01:00
bleska
36811b9616 refactor(core): dma2d_wait() busy wait removal
Removing the "KERNEL_MODE" guards as the whole file is guarded. Removing the dma2d_wait() function call as it's called twice in the near location.

[no changelog]
2026-02-17 13:36:54 +01:00
bleska
f45b187a85 fix(core): adding SECMON_MONOTONIC_VERSION counter to DISC2
[no changelog]
2026-02-17 13:03:58 +01:00
Roman Zeyde
3fe213622e feat(core): add iterative data confirmation flows
[no changelog]
2026-02-17 07:58:03 +01:00
Roman Zeyde
9922ba0c80 chore(core): support subtitle on Delizia should_show_more()
[no changelog]
2026-02-17 07:58:03 +01:00
Roman Zeyde
00b74ad088 chore(core): hide empty "info" button on Caesar confirm_with_info()
[no changelog]
2026-02-17 07:58:03 +01:00
Roman Zeyde
f939782a95 chore(core): hide empty "info" button on Bolt confirm_with_info()
The return type is changed to `Gc<LayoutObj>`, since the `buttons` object may be `CancelConfirm` or `CancelInfoConfirm`.

[no changelog]
2026-02-17 07:58:03 +01:00
Roman Zeyde
b75eb856ba fix(core): use TEXT_MONO_DATA for Delizia confirm_with_info()
[no changelog]
2026-02-17 07:58:03 +01:00
bleska
4e19779310 fix(core): PLL_DSI_NDIV wrongly set for DISC2
The PLL_DSI_NDIV macro has been redefined to be calculated out of the other PLL_DSI parameters and the HSE_VALUE.

[no changelog]
2026-02-16 11:18:14 +01:00
Ioan Bizău
a10866988a docs: add context on PropertyType
[no changelog]
2026-02-16 09:56:15 +02:00
Roman Zeyde
ec46aca238 chore(core): skip empty confirmation footer on Delizia
[no changelog]
2026-02-13 13:32:55 +01:00
Roman Zeyde
226fcd7c9b refactor(core): support ICON_DOWN for confirm_with_info() in Caesar
Also, simplify info-related button creation.

[no changelog]
2026-02-13 13:32:39 +01:00
Roman Zeyde
9b6995a527 chore(core): add confirmation-related English string entries
[no changelog]
2026-02-13 13:30:42 +01:00
Roman Zeyde
40c222e960 refactor(core): use non-async function ETH staking detection
[no changelog]
2026-02-12 18:48:38 +01:00
Michal Kazda
553d33e5cc chore(l10n): blanked en.json with the new rules
[no changelog]
2026-02-11 16:26:54 +01:00
Michal Kazda
7089a9e119 chore(l10n): add new rules
[no changelog]
2026-02-11 16:26:54 +01:00
obrusvit
5b97dd3bbf chore: translations blanker script
- a helper script to blank certain translations for layouts if they are
not used in the said layout
- the script uses rules JSON

[no changelog]
2026-02-11 16:26:54 +01:00
Ioan Bizău
341ecd5276 fix: make total_amount nullable
[no changelog]
2026-02-11 14:47:23 +02:00
Ioan Bizău
40a37ffe6c chore: remove untranslated string
[no changelog]
2026-02-11 14:47:23 +02:00
Ioan Bizău
60294d4cd0 feat(delizia): back button on summary
[no changelog]
2026-02-11 14:47:23 +02:00
Ioan Bizău
3a8d869e91 refactor(core): improve PropertyType consistency
[no changelog]
2026-02-11 14:47:23 +02:00
Ioan Bizău
7e85413cea fix(delizia): show_properties layout consistency
before: you could call `show_properties` either with a string or with a
list of properties
 * if you would call it with a string it would use `ConfirmValue`
 * if you would call it with a list of properties, it would use
`ShowInfoParams` to show multiple properties

after:
 * if you call it with a list of properties that only has one property
it defaults to the same behaviour as the case when you call it with a
single string

[no changelog]
2026-02-11 14:47:23 +02:00
tychovrahe
df2d0f0176 feat(core/prodtest): add command to check CRC status
[no changelog]
2026-02-10 13:51:13 +01:00
tychovrahe
d706b8c55f fix(core/prodtest): exclude the space before CRC value from its calculation
[no changelog]
2026-02-10 13:51:13 +01:00
Roman Zeyde
c6564b0110 fix(core): include telemetry-related source in emulator builds
[no changelog]
2026-02-10 10:07:07 +01:00
cepetr
fa6c5108e2 fix(core): fix double evaluation of status in TSH_CHECK_xxx
[no changelog]
2026-02-09 12:16:54 +01:00
cepetr
8aece50384 feat(core): increase default logging level to WARN
[no changelog]
2026-02-09 12:16:54 +01:00
cepetr
0c0a4d6fdb feat(core): add automatic logging in TSH_CHECK macros
[no changelog]
2026-02-09 12:16:54 +01:00
cepetr
a0bbfe819f refactor(core): improve app_loader error handling
[no changelog]
2026-02-09 12:16:54 +01:00
cepetr
ec392659fd refactor(core): simplify reconfiguration of MPU for systask
[no changelog]
2026-02-09 12:16:54 +01:00
cepetr
aed0378b67 feat(core): introduce TS_ACCES error code
[no changelog]
2026-02-09 12:16:54 +01:00
PrisionMike
adf70c8e2f feat(tron): Clear sign some TRC20 transfers.
[no changelog]
2026-02-08 15:00:01 +05:30
Martin Pastyřík
589fd84b4b chore(core): remove double check when changing pin
[no changelog]
2026-02-06 16:17:37 +01:00
cepetr
b4a58ddebd fix(core): call SDL drawing function in kernel task context
[no changelog]
2026-02-06 09:49:58 +01:00
bleska
5ba0333910 feat(core): TS7 display refresh rate scaling and configuration optimization
In order to lower the power consumption in standard operation mode, the goal is to regulate the display refresh rate based on the current needs (animations - 60Hz, static images - 30 Hz).
 - Introduction of the on-the-fly refresh rate change functionality (interrupt based).

Configuration optimizations' investigations:
 - Since the display visible dimensions are 520x380 and the display controller doesn't support this resolution directly, the closest variant 520x480 is used with 50px offset. Changing the resolution used to 520x430 and shortening the HACT region by 50px effectivly increasing the blanking period.
 - Using RGB565 DSI color format, changing pixel clock to 15.5 MHz, changing HFP to 20 to maintain the 60 Hz refresh rate for the new pixel clock.
 - DSI lane byte clock vs LTDC pixel clock ratio (max, min) tests.
 - Etc. - different configuration profiles have been tested and TS7 input power consumption measured.

Formalizing the code to official one:
 - adding preprocessor definitions to panels' configuration header files
 - adding ifdefs to display_driver and display_fb source files to integrate the refresh rate scaling code based on panel's used
 - the refresh rate change is to be performed to high one as soon as new image is to be shown, and to the low one after a timeout expires

[no changelog]
2026-02-05 14:26:07 +01:00
bleska
b82f59990f refactor(core): panel configuration refactoring.
The arguments' passed to the HAL_DSI_LongWrite() function calls were corrected. Since the code is used in "KERNEL_MODE" => adding the respective preprocessor directives.

[no changelog]
2026-02-05 14:26:07 +01:00
Roman Zeyde
103146f39f feat(common): introduce Failure_InProgress code
It will be used to indicate that an non-interruptible workflow is
currently running on the device.

[no changelog]
2026-02-04 17:21:24 +01:00
Roman Zeyde
fee2f28330 chore(common): remove unused Failure_BufferError code
[no changelog]
2026-02-04 17:21:24 +01:00
Roman Zeyde
c1ff04c475 build(core): split English strings blob into multiple lines
Otherwise, concurrent string updates result in a merge conflict.

[no changelog]
2026-02-04 14:08:47 +01:00
Michal Kazda
8c2deb4020 fix(l10n): gen, style, fixtures [no changelog] 2026-02-04 13:24:51 +01:00
Michal Kazda
73f41e3f9c fix(l10n): various en.json fixes [no changelog] 2026-02-04 13:24:51 +01:00
bleska
858e928778 refactor(core): buffer usage check refactoring
Improving the code legibility of pwm_data[] buffer usage check.

[no changelog]
2026-02-03 17:37:38 +01:00
bleska
3706a65363 fix(core): pwm_data[] buffer clear check fix
A bug in pwm_data[] buffer clear check has been found and fixed. The pwm_data[][1] array element is used when the respective buffer is used for setting of new pulses' value to TPS61062 IC.

[no changelog]
2026-02-03 17:37:38 +01:00
M1nd3r
aaa3477262 chore(core): adjust core to be compatible with libtropic 3.1.0
[no changelog]
2026-02-03 15:30:03 +01:00
matejcik
f371ee5742 fix(core): raise proper exception for unexpected message in pairing phase
[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
776355e003 refactor(python): streamline record_screen functionality
The function as written didn't really belong into debuglink, so it was
moved to trezorctl, and emu.py can import it from there. Also improved
type annotations, simplified implementation, and made sure that
recording is properly stopped even on an error.

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
6e3018509b refactor(python): rework session-based API
Co-authored-by: M1nd3r <petrsedlacek.km@seznam.cz>
Co-authored-by: Roman Zeyde <roman.zeyde@satoshilabs.com>

[no changelog]
2026-02-03 14:47:31 +01:00