Hi,
1)Excuse me, I have some questions. 1. when the flash security is enable, P-flash protection and D-flash protection is not protected, do they need protected? what is the difference between them and flash security?
>>>>>>>The flash protection means that you can not erase or program the flash sector when the falsh sector is protected. The flash Security feature means that the JTAG port is blocked, user can not access the code, register setting, memory contents via JTAG port unless the flash is mass erased.
If you want to set the chip in security mode, you should write the program flash location P:0x40c. For detailed inf, pls refer to section 20.3.1 Flash Configuration Field Description. For detailed code, I suggest you use PE and in the cpu bean, enable the security function, the PE will generate the security code.
2) When MCM_RPCR register has been assigned value 0x03, program has been downloaded into the MCU, the MCU can not been downloaded again. Using flash programmer, it still can not been downloaded. if doing this ,the MCU will be damaged, why?
>>>>>>>>>>I do not suggest you modify the default setting of the MCM module, it is okay to use the default configuration after Reset. In other words, do not write any code for the MCM module.
3) In Peripheral protection, how can I use Power Mode Control Write,GPIO Port D,Peripheral Clock Enable, GPIO and Interal Peripheral Select?
>>>>>>>>>The peripheral protection means that peripheral register can not be modified after it is protected, lest that the peripheral register is modified by mistake for example, the code runs away. I suggest you do not protect the peripheral registers.
Hope it can help you
BR
XiangJun Rong