Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

SLOW Flash write and erase

Using the HAL function alt_write_flash(..) it takes appr. 2100 mSec to write one block of 131072 bytes to a Numonyx 1 Gbit flash with 1024 blocks. I am writing to block 1007.

Same problem with alt_erase_flash_block(..) which takes appr. 900 mSec to erase the same block.

I am testing this in debug mode getting the system time before and after these calls, but have seen the same slow behaviour in optimized release mode. I run NIOS II on a Cyclone III EP3C55 with uC-OSII

How can I speed up things here !?

Other functions to call ??

K

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I think these are usual erase/programming times for a common NOR flash.

    What flash device are you using? I have here the datasheet for a Numonyx Strataflash memory and it specifies values similar to yours.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am using a Numonyx Axcell PC28F00AP33EF-65nm 1 GBit Flash memory. According to Program and Erase characteristics I see that erase time for a 128 KByte block is typ 800 mSec which fits my measurements. Then perhaps programming times are as expected as well.

    I guess I will look into "Buffered Programming" in the datasheet and/or put my code in a dedicated thread then.Thanks for your comment.

    Best regards K2