Need some info on Flashx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Need some info on Flashx

跳至解决方案
1,337 次查看
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?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,058 次查看
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 项奖励
回复
1 回复
1,059 次查看
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 项奖励
回复