flash memory write problem
hello experts ,my device is stm32f103c8t6 ,cubeide 1.14.0
it shows 64kb flash in ide but shows 128kb in stmcube programmer ,my issue is if i write flash from inside the programme while mcu running then it writes fine but when i erase the page and try to write again it does not write , my code is here ,
HAL_FLASH_Unlock();
HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, 0x0800FC00,1000);// page 63
//write fine until here
HAL_Delay(100);
FLASH_PageErase(0x0800FC00); //page 63
//erase page ok but after using erase it doesnt wite anything
HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, 0x0800FC04,1000);//defaults
HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, 0x0800FC06,100);//d
do anyone know problem ?
i am trying to use a memory page as eeprom
