2006-02-09 07:13 PM
2006-01-31 12:27 AM
2006-02-09 07:13 PM
Hello,
The fact that ''when enabling the code protection , erasing and programming won't work anymore'' is normal because Code protection allows to disable any read or jump to the ST10 embedded Flash from another memory AND also acts as a global write protection and prevents subsequent block erase or programming. (Please refer to the attached AN for more details, section 2.6, page 13). Your CTU code seems to be ok! Regarding your question about code executed before execution of EINIT: this is not allowed because all configurations regarding register SYSCON (enable FLASH, enable CLKOUT, stacksize, etc...) must be selected before the execution of EINIT(End of Initialization). I hope this helps you, Best regards, Najoua. [ This message was edited by: Najoua on 13-02-2006 17:13 ] [ This message was edited by: Najoua on 14-02-2006 08:28 ] ________________ Attachments : AN1496_ST10F269_flash_programming.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0GH&d=%2Fa%2F0X0000000bXT%2F0Br0_3iTiQaw0bpnTQS028.p5XuTcwcDNy_hY5RuiK0&asPdf=false