I have a requirement of formatting flash driver in MCF52259.
I'm using
//Enable cache
_io_ioctl(file_ptr1,FLASH_IOCTL_ENABLE_SECTOR_CACHE, NULL);
//format flash
ioctl(file_ptr2,IO_IOCTL_DEFAULT_FORMAT,NULL);
I'm able to format it but this mode is internally allocating RAM buffer of 4KB. how can i free this memory?
Solved! Go to Solution.
Hi mayak,
In the new 3.8 this is fixed. You can download 3.8 MQX from the website.
The IOCTL_ENABLE_SECTOR_CACHE should free the memory after it was allocated and used. If the FLASH_IOCTL_ENABLE_BUFFERING was also called before, then the memory is not deallocated.
Regards,
MartinK
Hi mayak,
In the new 3.8 this is fixed. You can download 3.8 MQX from the website.
The IOCTL_ENABLE_SECTOR_CACHE should free the memory after it was allocated and used. If the FLASH_IOCTL_ENABLE_BUFFERING was also called before, then the memory is not deallocated.
Regards,
MartinK