On 03.05.2012 12:15, Robbie Dinn wrote:
> Hi all,
> I have a requirement to be able to set the security bit
> in an Atmel at91sam7 processor. I need this because I
> want to be able to use openocd to do production device
> programming via the jtag port.
>
> (is there a better tool available to do this?)
>
> I have attached a patch to allow this. It is based on a
> copy/paste of the function that does the gpnvm bits.
I's quite easy to do the same without patching sources:
proc set_security {} {
# MC_FMR
# | ((4032000 * 36 / 3 / 1000000) << 16) # MCK
cycles
in 1 us
# | (1 << 8) # 1 FWS
# | (1 << 7) # no erase
before prog
mww 0xFFFFFF60 [expr ((4032000 * 36 / 3 / 1000000) << 16) | (1 << 8) |
(1 << 7)]
# MC_FCR
# | (0x5A << 24) # key
# | 0x0000000F # SET
Security command
mww 0xFFFFFF64 [expr (0x5A << 24) | 0x0000000F]
}
--
Regards,
Sergey A. Borshch mailto: [email protected]
SB ELDI ltd. Riga, Latvia
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel