Need some info on Flashx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need some info on Flashx

Jump to solution
525 Views
mayak
Contributor I

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?

Labels (1)
Tags (1)
0 Kudos
1 Solution
246 Views
c0170
Senior Contributor III

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

 

View solution in original post

0 Kudos
1 Reply
247 Views
c0170
Senior Contributor III

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

 

0 Kudos