cancel
Showing results for 
Search instead for 
Did you mean: 

STM8s E2P (can't manage flash status register bits)

CChia.0
Associate

Hi all, I'm working on STM8S104kT6 mcu and I'm tring to get manage E2P.

I have a couple of problems:

1) EOP Bit is not set (it is always in reset state) even after a writing

2) I can't lock E2P (or flash): PUL & DUL bits in FLASH_IAPSR Register are aways set. This happens from MCU reset even if datasheet says they should set to zero by default (flash & E2P protected). If I force them manually, for esample resetting DUL from IAR, the next programming step they are set again.

I tried with standard peripheral library and by setting values in registers (and, as i told before, I also forced them manually from IDE).

Any ideas?

Thanks a lot!

0 REPLIES 0