Content originally posted in LPCWare by martinayotte on Tue Jan 06 07:31:02 MST 2015
Hi Jacquot,
My chip doesn't want to jump to ISP mode, that's the whole issue since the beginning.
It is jumping straight thru my defective firmware which hang on specific instruction.
According to the definition of CRP3 :
Quote:
In a higher level of protection, the user can also prevent others from downloading their
own code, which would mean some kind of hardware protection, i.e., it will prevent others
from reusing the hardware. In this last case, CRP3 prevents entering ISP by pulling
P2.10 low (hardware mechanism which allows entering ISP when there is valid code in
the user’s flash). In this way, unauthorized users can’t use ISP to access the device
flash, so this mode provides the maximum level of protection.
The user should note that in effect, with CRP3 there is no way to update the user flash,
which means no further code updates are possible. However, the user code could make
use of Re-Invoke ISP (one of the In-Application Commands – IAP) which invokes the
boot loader in ISP mode.
When we use Re-Invoke ISP, we are breaking CRP3 protection, which ultimately means
we are downgrading to level CRP2. Although in this level we can’t read the flash, we can
download a new code. Of course, the user code should already have this “back door”
prepared in order to break CRP3 when necessary, and the mechanism used for this
would be kept secret as it will be the key to break with the hardware protection, as we
saw above.