well, I don’t have the manual command figured out yet; but look at this flash protect behavior.
Open On-Chip Debugger
> flash info 0
#1: at91sam7 at 0x00000000, size 0x00000000, buswidth 0, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 0 0 on
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee9, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 0 0 off
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 1 1 off
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 1 1 on
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeef8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 1 1 off
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 2 2 on
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xefe8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 2 2 on
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xefe8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 2 2 off
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 3 3 on
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xfee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
> flash protect 0 3 3 off
> flash info 0
#1: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
at91sam7 information:
cidr: 0x260a0941, arch: 0x0060, eproc: ARM7TDMI, version:0x001, flashsize: 0x00
040000
master clock(estimated): 48209kHz
pagesize: 256, lockbits: 16 0xeee8, pages in lock region: 64
securitybit: 0, nvmbits: 0x0
>