cancel
Showing results for 
Search instead for 
Did you mean: 

want to erase and write new data in internal flash : B0F7

christophe239955
Associate II
Posted on October 24, 2007 at 11:12

want to erase and write new data in internal flash : B0F7

1 REPLY 1
christophe239955
Associate II
Posted on October 24, 2007 at 11:12

I'm trying to erase bank B0F7 and to write data in it.

STR710

code in internal ram

EIC_IRQConfig( DISABLE );

FLASH_WritePrConfig(FLASH_B0F7,DISABLE); FLASH_SectorErase(FLASH_B0F7);

printf(''\n\ttest copy to flash : @ 0x30000 : wr 0xAABBCCDD'');

u32 dataflash;

dataflash=0xAABBCCDD;

FLASH_WordWrite(0x00030000,dataflash); EIC_IRQConfig( ENABLE );

result :

we don't reach : printf(''\n\ttest copy to flash : @ 0x30000 : wr 0xAABBCCDD'');

It seems that the software stops in the FLASH_SectorErase function.

How can we erase and write data in flash program?

It seems that to erase B0F7 it affects all the BANK 0 : normal?

Thanks