Skip to content

Commit

Permalink
fix(core): don't use RSOD_INFINITE_LOOP on models using DSI/LTDC disp…
Browse files Browse the repository at this point in the history
…lays

[no changelog]
  • Loading branch information
TychoVrahe committed Feb 6, 2025
1 parent ef1f44c commit 85bbc89
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/embed/models/T2B1/model_T2B1.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define IMAGE_HASH_BLAKE2S

#define DISPLAY_JUMP_BEHAVIOR DISPLAY_RETAIN_CONTENT
#define RSOD_INFINITE_LOOP 1

// SHARED WITH MAKEFILE
// common
Expand Down
1 change: 1 addition & 0 deletions core/embed/models/T2T1/model_T2T1.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define IMAGE_HASH_BLAKE2S

#define DISPLAY_JUMP_BEHAVIOR DISPLAY_RETAIN_CONTENT
#define RSOD_INFINITE_LOOP 1

// SHARED WITH MAKEFILE
// common
Expand Down
1 change: 1 addition & 0 deletions core/embed/models/T3B1/model_T3B1.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#define IMAGE_HASH_SHA256

#define DISPLAY_JUMP_BEHAVIOR DISPLAY_RETAIN_CONTENT
#define RSOD_INFINITE_LOOP 1

// SHARED WITH MAKEFILE, LINKER SCRIPT etc.
// misc
Expand Down
1 change: 1 addition & 0 deletions core/embed/models/T3T1/model_T3T1.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#define IMAGE_HASH_SHA256

#define DISPLAY_JUMP_BEHAVIOR DISPLAY_RETAIN_CONTENT
#define RSOD_INFINITE_LOOP 1

// SHARED WITH MAKEFILE, LINKER SCRIPT etc.
// misc
Expand Down
6 changes: 4 additions & 2 deletions core/embed/sys/startup/stm32/bootutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@

// Battery powered devices (USE_POWERCTL) should not stall
// after showing RSOD, as it would drain the battery.
#ifndef USE_POWERCTL
#define RSOD_INFINITE_LOOP
#ifdef USE_POWERCTL
#ifdef RSOD_INFINITE_LOOP
#error "RSOD_INFINITE_LOOP is not supported on battery powered devices"
#endif
#endif

#ifdef STM32U5
Expand Down

0 comments on commit 85bbc89

Please sign in to comment.