AnsweredAssumed Answered

m25p16_Write() works only for one Element

Question asked by a.st on Jan 15, 2014
Latest reply on Jan 20, 2014 by CraigG

Hello,

I am using a ADSP-21469 Ez-Kit and I want to write an array of 16 chars into the serial flash. For this purpose I took the according code Examples.

The Problem is, that the function:

m25p16_Write( dac_vol_flash, FLASH_START_ADDR, 16 )

only writes the first element into the flash. If I use a for-loop it works just fine:

int i;

for (i=0;i<16;i++)

{

     flash_error = m25p16_Write(dac_vol_flash + i,FLASH_START_ADDR + i, 0x1);

}

Am I doing something wrong, or is it a known issue? When I looked through the example code, I saw that the function in question is only used elementwise.

 

Thank you in advance.

Outcomes