Why fx_media_open fails, if flash has raw partitions?

Vinay 40 Reputation points
2024-03-21T16:35:17.65+00:00

I am using a flash which has 1024 sectors. During formatting, I have given number of hidden sectors as 256 and total number of sectors as 1024.

Post format of the flash, if I access the memory in hidden sectors using flash_read and flash_write functions, outside of fileX and then call fx_media_open, it always fails.

If I erase the flash, format and the call fx_media_open, then its a success.

Why is this problem occurring?

Why would it matter to filex, if some raw flash read/write are done in the hidden sectors of the flash?

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
333 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.