Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions samples/siwx91x_ota/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=4096
CONFIG_MBEDTLS_TLS_VERSION_1_2=y
CONFIG_MBEDTLS_CIPHER_ALL_ENABLED=y
CONFIG_MBEDTLS_HASH_ALL_ENABLED=y
CONFIG_MBEDTLS_USE_PSA_CRYPTO=n
CONFIG_PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT=y
CONFIG_MBEDTLS_MD_C=y
CONFIG_MBEDTLS_RSA_C=y
CONFIG_MBEDTLS_PKCS1_V15=y
CONFIG_MBEDTLS_PKCS1_V21=y
CONFIG_MBEDTLS_ASN1_PARSE_C=y
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=y

CONFIG_ASSERT=y

Expand Down
2 changes: 1 addition & 1 deletion samples/siwx91x_ota/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static int ota_load_firmware(struct app_ctx *ctx)
__ASSERT(ctx->flash_buffer_len > 0, "No firmware data to process");

if (ctx->range_start == 0) {
buf_offset = sizeof(sl_si91x_firmware_header_t);
buf_offset = sizeof(sl_wifi_firmware_header_t);
status = sl_wifi_get_firmware_size(ctx->flash_buffer, &ota_calc_image_size);
if (status != SL_STATUS_OK) {
printf("Unable to fetch firmware size. Status: 0x%08x\n", status);
Expand Down
Loading