AnsweredAssumed Answered

EEPROM Write Timing Problem

Question asked by gergo.herangli on Apr 16, 2013
Latest reply on Apr 27, 2013 by M.E

I found a problem while writing to the EEPROM. The uC type is STM8af6289. This part of the program is the folowing:

initializing part:

void FLASH_Config(void)
    while (FLASH_GetFlagStatus(FLASH_FLAG_DUL) == RESET);

main part program:

int main()



            *(PointerAttr uint8_t*) (uint16_t)0x4001 = 0x55;
        GPIO_WriteReverse(LED2_GPIO_PORT, LED2_GPIO_PINS);


As it says, I should see on the oscilloscope a signal with 1-2 us timing. But I can see a square wave signal having about 50% duty cicle and the timing is about 10 ms.

Do anyone have an idea what should I do? Thank you for your help.