From 853f8a2431d0c1f2a1c2b9bd10304bbb40fea168 Mon Sep 17 00:00:00 2001 From: Haithem Rahmani Date: Thu, 27 Nov 2025 14:24:49 +0100 Subject: [PATCH 1/2] Update media driver status initialization FX_DRIVER_INIT request Main Changes ------------ - In fx_media_format(), set fx_media_driver_status to FX_MEDIA_INVALID to indicate the request originates from a format call. - In fx_media_open(), set fx_media_driver_status to FX_MEDIA_NOT_OPEN to indicate the request originates from an open call. Fixed issues ------------- -Issue #79 Signed-off-by: Haithem Rahmani --- common/src/fx_media_format.c | 6 ++++-- common/src/fx_media_open.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/common/src/fx_media_format.c b/common/src/fx_media_format.c index ca1cb22..884076e 100644 --- a/common/src/fx_media_format.c +++ b/common/src/fx_media_format.c @@ -161,9 +161,11 @@ UINT sectors_per_fat, f, s; media_ptr -> fx_media_hidden_sectors = hidden_sectors; /* Initialize the supplied media I/O driver. First, build the - initialize driver request. */ + initialize driver request. Set the fx_media_driver_status to FX_MEDIA_INVALID + to let the driver know that the request is issued from a fx_media_format() call + */ media_ptr -> fx_media_driver_request = FX_DRIVER_INIT; - media_ptr -> fx_media_driver_status = FX_IO_ERROR; + media_ptr -> fx_media_driver_status = FX_MEDIA_INVALID; media_ptr -> fx_media_driver_info = driver_info_ptr; media_ptr -> fx_media_driver_write_protect = FX_FALSE; media_ptr -> fx_media_driver_free_sector_update = FX_FALSE; diff --git a/common/src/fx_media_open.c b/common/src/fx_media_open.c index 994a884..3fa7f91 100644 --- a/common/src/fx_media_open.c +++ b/common/src/fx_media_open.c @@ -261,9 +261,11 @@ FX_INT_SAVE_AREA FX_TRACE_IN_LINE_INSERT(FX_TRACE_MEDIA_OPEN, media_ptr, media_driver, memory_ptr, memory_size, FX_TRACE_MEDIA_EVENTS, 0, 0) /* Initialize the supplied media I/O driver. First, build the - initialize driver request. */ + initialize driver request. Set the fx_media_driver_status to FX_MEDIA_NOT_OPEN + to let the driver understand that the request is issued from a fx_media_open() call. + */ media_ptr -> fx_media_driver_request = FX_DRIVER_INIT; - media_ptr -> fx_media_driver_status = FX_IO_ERROR; + media_ptr -> fx_media_driver_status = FX_MEDIA_NOT_OPEN; media_ptr -> fx_media_driver_info = driver_info_ptr; media_ptr -> fx_media_driver_write_protect = FX_FALSE; media_ptr -> fx_media_driver_free_sector_update = FX_FALSE; From 1839526557f7ab7ff1aadee4832c24a93275616d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Mon, 12 Jan 2026 17:44:19 -0500 Subject: [PATCH 2/2] Updated version number constants --- common/inc/fx_api.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/inc/fx_api.h b/common/inc/fx_api.h index 8ad9f8d..291f6dd 100644 --- a/common/inc/fx_api.h +++ b/common/inc/fx_api.h @@ -138,9 +138,9 @@ extern "C" { #define AZURE_RTOS_FILEX #define FILEX_MAJOR_VERSION 6 #define FILEX_MINOR_VERSION 4 -#define FILEX_PATCH_VERSION 2 -#define FILEX_BUILD_VERSION 202503 -#define FILEX_HOTFIX_VERSION '' +#define FILEX_PATCH_VERSION 5 +#define FILEX_BUILD_VERSION 202504 +#define FILEX_HOTFIX_VERSION ' ' /* Define the following symbols for backward compatibility */ #define EL_PRODUCT_FILEX