Need some info on Flashx

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Need some info on Flashx

ソリューションへジャンプ
1,304件の閲覧回数
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,025件の閲覧回数
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,026件の閲覧回数
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 件の賞賛
返信