2007-10-24 02:12 AM
want to erase and write new data in internal flash : B0F7
2007-10-24 02:12 AM
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