Could somebody explain to me how i could save permanent data in XFlash before shutting down my st10. And how I could read it at the next start. Thank you.
To be able to access the ST10F276 XFLASH module, please make sure that: - flash is enabled by setting ROMEN bit in SYSCON register. - XFLASH is enabled (by setting XFLASHEN bit in XPERCON register and XPEN bit in SYSCON register) in order to be able to access the flash registers. - SMOD bit in FCR0H register is cleared otherwise the write operation will be performed on IFLASH module. Have a look to the ST10F276 datasheet, page 74 (''Write Operation Examples'' section 5.6) where good examples are given and i am sure that they will help you. Najoua.