NOR flash - Can I partition the memory of 1 device?

Mike Wilson 20 Reputation points
2023-03-22T19:57:20.3666667+00:00

I am using Azure FileX on an embedded processor (the Micron MT25TL01G chip), and it is working. But I would prefer to partition the memory into 2 sections (this will allow speeding up initialization when the chip is unformatted - I only need to initially initialize a small amount of the flash). Is it possible to just partition a small section of the chip, and even better, can I initialize 2 or more partitions? How would I go about doing this?

Mike

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
383 questions
Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
324 questions
{count} votes

Accepted answer
  1. Xiuwen Cai 366 Reputation points Microsoft Employee
    2023-03-30T08:09:25.0066667+00:00

    @Mike Wilson Yes, you can format a small section of the memory by specifying a smaller sector count when calling fx_media_format. When formatting other partitions, you can use hidden_sectors parameter to specify start sector number for the partition. But FileX does not support writing partition tables, you may need to implement your own code to build partition table. Additional logic may be needed in the driver to find the starting sector for each partition when handling FX_DRIVER_BOOT_READ and FX_DRIVER_BOOT_WRITE requests. For example, you may use driver_info_ptr to pass the start sector number of the partition to the driver, then driver can access to correct partition.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful