internal flash execution

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

internal flash execution

1,674件の閲覧回数
alex_br
Contributor I

 

Hi,
We are considering to use Kinetis part with flex memory of 128K. I would like to partition our flexNVM:
sector 1) 48 K program code
sector 2) 48 K program code
sector 3) 32 K Eprom data storage.
If my program is executing from internal flash flexNVM in sector 1, can this program write into sector 2 or sector 3.
   
Thank you for your help,
Alex B.

 

0 件の賞賛
3 返答(返信)

1,106件の閲覧回数
dani85
Contributor I

Hi, 

Because sector 1 and 2 are on the same flexNVM block, read data cannot be guaranteed from a Flash block that is being writen.

0 件の賞賛

1,106件の閲覧回数
alex_br
Contributor I

Thanks for respose, 

 

Can you please explain in more details why read data is not garantee during writing to the same block? Is it just protection issue?

 

 

 

 

0 件の賞賛

1,106件の閲覧回数
alex_br
Contributor I

 

I found the explanation in the K60 manual:

"

Flash Reads and Ignored Writes

The FTFL module requires only the flash address to execute a flash memory read. MCU

read access is available to all flash blocks.

The MCU must not read from the flash memory while commands are running (as

evidenced by CCIF=0) on that block. Read data cannot be guaranteed from a flash block

while any command is processing within that block. The block arbitration logic detects

any simultaneous access and reports this as a read collision error (see the

FSTAT[RDCOLERR] bit).

"

 

 

0 件の賞賛