diff --git a/speculos/cxlib/stax-api-level-cx-20.elf b/speculos/cxlib/stax-api-level-cx-20.elf new file mode 100644 index 00000000..03539620 Binary files /dev/null and b/speculos/cxlib/stax-api-level-cx-20.elf differ diff --git a/speculos/fonts/stax-fonts-20.bin b/speculos/fonts/stax-fonts-20.bin new file mode 100644 index 00000000..a3f89191 Binary files /dev/null and b/speculos/fonts/stax-fonts-20.bin differ diff --git a/src/bolos/fonts_info.c b/src/bolos/fonts_info.c index ff1591d9..dc08818e 100644 --- a/src/bolos/fonts_info.c +++ b/src/bolos/fonts_info.c @@ -230,6 +230,7 @@ void parse_fonts(void *code, unsigned long text_load_addr, case SDK_API_LEVEL_15: case SDK_API_LEVEL_18: case SDK_API_LEVEL_19: + case SDK_API_LEVEL_20: break; default: // Unsupported API_LEVEL, will not parse fonts! diff --git a/src/launcher.c b/src/launcher.c index 8860ae3b..d94cb9aa 100644 --- a/src/launcher.c +++ b/src/launcher.c @@ -817,7 +817,8 @@ int main(int argc, char *argv[]) sdk_version != SDK_API_LEVEL_8 && sdk_version != SDK_API_LEVEL_9 && sdk_version != SDK_API_LEVEL_10 && sdk_version != SDK_API_LEVEL_11 && sdk_version != SDK_API_LEVEL_12 && sdk_version != SDK_API_LEVEL_13 && - sdk_version != SDK_API_LEVEL_14 && sdk_version != SDK_API_LEVEL_15) { + sdk_version != SDK_API_LEVEL_14 && sdk_version != SDK_API_LEVEL_15 && + sdk_version != SDK_API_LEVEL_20) { errx(1, "invalid SDK version for the Ledger Stax"); } break; diff --git a/src/sdk.h b/src/sdk.h index bd03752d..cd3f70b2 100644 --- a/src/sdk.h +++ b/src/sdk.h @@ -34,6 +34,7 @@ typedef enum { SDK_API_LEVEL_17, SDK_API_LEVEL_18, SDK_API_LEVEL_19, + SDK_API_LEVEL_20, SDK_COUNT } sdk_version_t;