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?