internal flash execution

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

internal flash execution

2,079 Views
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 Kudos
Reply
3 Replies

1,511 Views
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 Kudos
Reply

1,511 Views
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 Kudos
Reply

1,511 Views
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 Kudos
Reply