m52259demomcu. Flash module. CFMCLKD — CFM Clock Divider Register.

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

m52259demomcu. Flash module. CFMCLKD — CFM Clock Divider Register.

ソリューションへジャンプ
2,233件の閲覧回数
Zaas
Contributor I

Dear all,

 

    I have the 52259 internal flash divide in differents slices as (boot - F1 - F2). I want to R/W Flash F2 while the application is running in F1.

    I set CFMCLKD and r/w works nice. After that, I want to still execute my application from F1 but I don't know If I should do some special action to recover the flash bus frequency and how do it or it isn't necessary.

Thanks in advanced.
ラベル(1)
0 件の賞賛
返信
1 解決策
764件の閲覧回数
scifi
Senior Contributor I

Hi Zaas,

 

It is not necessary to do anything special. The register CFMCLKD doesn't set flash bus frequency, it merely configures time base for flash erase/write operations. It is important that those operations are timed properly: too long erase/write could destroy flash cells, while too short one could lead to 'unstable' bits.

When a write or erase operation is performed by code in flash memory, the CPU is stalled for the duration of the operation. It resumes program execution as soon as the operation is complete.

I've created an application similar to yours with a MCF52233. I believe its flash memory is functionally equivalent to that of MCF52259. It works as expected, no special tricks are necessary.

 

Regards,

- mike

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
765件の閲覧回数
scifi
Senior Contributor I

Hi Zaas,

 

It is not necessary to do anything special. The register CFMCLKD doesn't set flash bus frequency, it merely configures time base for flash erase/write operations. It is important that those operations are timed properly: too long erase/write could destroy flash cells, while too short one could lead to 'unstable' bits.

When a write or erase operation is performed by code in flash memory, the CPU is stalled for the duration of the operation. It resumes program execution as soon as the operation is complete.

I've created an application similar to yours with a MCF52233. I believe its flash memory is functionally equivalent to that of MCF52259. It works as expected, no special tricks are necessary.

 

Regards,

- mike

0 件の賞賛
返信