Why fx_media_open fails, if flash has raw partitions?

Vinay 40 Reputation points

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.
324 questions
{count} votes