Here's a general approach you can try for the same:
Direct Flash Access: Since you can't rely on FileX to handle partitioning or excluding certain flash regions, you'll need to manage this manually in your application. Use the direct flash access APIs provided by your hardware abstraction layer or flash driver to read from and write to specific flash memory addresses.
Partitioning Logic: Implement logic in your application to determine which flash memory addresses belong to the file system partition and which belong to the partition for storing raw binaries. You'll need to define the boundaries of these partitions based on the total size of the flash memory and any specific requirements or constraints.
File System Management: Within the file system partition, you can use FileX APIs as usual to create directories, manage files, and perform file system operations.
Raw Binary Storage: For the partition dedicated to raw binaries, implement custom logic to manage storage and access. You'll need to define your own data structures and algorithms for storing and retrieving raw binary data from this partition.
Integration: Integrate your partitioning logic with your application's overall architecture. Ensure that other components of your system are aware of and respect the boundaries of the file system and raw binary partitions.
Testing and Validation: Thoroughly test your implementation to ensure that it correctly handles partitioning, file system operations, and raw binary storage. Validate that data integrity is maintained and that there are no unexpected interactions between the partitions.