Skip to main content
Visitor II
July 8, 2008
Question

openOCD security bit

  • July 8, 2008
  • 2 replies
  • 1182 views
Posted on July 08, 2008 at 10:40

openOCD security bit

    This topic has been closed for replies.

    2 replies

    udo1Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:54

    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.

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:54

    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 ]