2008-07-08 01:40 AM
2011-05-17 12:54 AM
Hello,
I'm trying to set the security-bit on a STR912FAW44. I found a PDF (http://www.st.com/stonline/products/literature/pm/11659.pdf) that describes which register needs to be set but I have no idea how to do this using openOCD. I use a wiggler-compliant jtag device to program the processor.2011-05-17 12:54 AM
the security bit is the using the str9xpec driver
so in your config you need the str9xpec driver: flash bank str9x 0x00000000 0x00080000 0 0 0 flash bank str9x 0x00080000 0x00008000 0 0 0 flash bank str9xpec 0x00000000 0x00080000 0 0 0 # assert reset (srst) #jtag_reset 0 1 then to lock the device # enable turbo mode str9xpec enable_turbo 2 # lock str9 str9xpec lock 2 # disable turbo str9xpec disable_turbo 2 # let device run - resetting tap aswell jtag_reset 1 1 jtag_reset 0 0 see the following for more info: http://forum.sparkfun.com/viewtopic.php?t=9451 Cheers sjo [ This message was edited by: sjo on 08-07-2008 14:11 ]