Skip to main content
Visitor II
May 23, 2007
Question

ST10F276 Program perform

  • May 23, 2007
  • 1 reply
  • 637 views
Posted on May 23, 2007 at 14:33

ST10F276 Program perform

    This topic has been closed for replies.

    1 reply

    raffaeleAuthor
    Visitor II
    May 23, 2007
    Posted on May 23, 2007 at 14:33

    I have been erase all flash, and now i whant program it.

    I have execute that

    mov R7,02h

    exts 0eh,1

    mov R6,[R7]

    bset R6.7

    exts 0eh,1

    mov [R7],R6

    mov R7,02h

    exts 0eh,1

    mov R6,[R7]

    or R6,02000h

    exts 0eh,1

    mov [R7],R6

    mov R7,10h

    mov R6,0

    exts 0eh,1

    mov [R7],R6

    mov R7,12h

    mov R6,01h

    exts 0eh,1

    mov [R7],R6

    mov R7,08h

    mov R6,0aa55h

    exts 0eh,1

    mov [R7],R6

    mov R7,0ah

    mov R6,0aa55h

    exts 0eh,1

    mov [R7],R6

    mov R7,02h

    exts 0eh,1

    mov R6,[R7]

    or R6,08000h

    exts 0eh,1

    mov [R7],R6

    But after this istruction flash is the same before like 0xFFFFFFFF

    I don't understand for what... my code is ok ?

    Thanks

    :o