AnsweredAssumed Answered

About programming data using Flash

Question asked by cerly on Apr 28, 2011
Latest reply on May 9, 2011 by ColinJ

Hi,

 

I am new to DSP++ and I am doing some algorithms in EZ-KIT-BF537 board.

Currently I want to realize a functionality that can write data into flash memory while running the program. For example, I want to capture a image by the cemera and then store it in the flash.

Now I am using some command like this and run them on board:

 

                 Flash_EraseSector((unsigned long)FLASH_START_ADDRESS, (unsigned long) pFlashAddr0-FLASH_START_ADDRESS);

      Flash_ProgramWord(FLASH_START_ADDRESS,  (pFlashAddr0 - FLASH_START_ADDRESS) , data );

 

The thing is I found Flash_ProgramWord is very slow. For one Byte it takes me around half minute. Do you think there is something wrong with it?

Also the result is not right, which may due to my own mistake.

 

Regards,

Yang

Outcomes