PIC32MX: add unlock cmd

'unlock' performs a full unlock/erase of the device, removing any
code protection.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
Spencer Oliver
2010-03-18 09:35:45 +00:00
parent b48a94f05d
commit ae1c64706a
3 changed files with 83 additions and 2 deletions

View File

@@ -4523,10 +4523,10 @@ flash bank ocl 0 0 0 0 $_TARGETNAME
@deffn {Flash Driver} pic32mx
The PIC32MX microcontrollers are based on the MIPS 4K cores,
and integrate flash memory.
@emph{The current implementation is incomplete.}
@example
flash bank pix32mx 0 0 0 0 $_TARGETNAME
flash bank pix32mx 0x1fc00000 0 0 0 $_TARGETNAME
flash bank pix32mx 0x1d000000 0 0 0 $_TARGETNAME
@end example
@comment numerous *disabled* commands are defined:
@@ -4538,6 +4538,10 @@ Some pic32mx-specific commands are defined:
Programs the specified 32-bit @var{value} at the given @var{address}
in the specified chip @var{bank}.
@end deffn
@deffn Command {pic32mx unlock} bank
Unlock and erase specified chip @var{bank}.
This will remove any Code Protection.
@end deffn
@end deffn
@deffn {Flash Driver} stellaris