Skip to main content
Visitor II
January 9, 2007
Question

programming internal flash

  • January 9, 2007
  • 5 replies
  • 1069 views
Posted on January 10, 2007 at 00:20

programming internal flash

    This topic has been closed for replies.

    5 replies

    jhaug9Author
    Visitor II
    August 25, 2005
    Posted on August 25, 2005 at 09:41

    Hi,

    We are using in our project the STR710FZ2T6-Processor and have the Problem with the in-circuit

    programming (programming the internal Flash):

    We are trying to program data into B1F0/B1F1(Bank1) while the program is running in B0Fx(Bank0).

    Before we start to update our data to Bank1, we try to erase the sector B1F0/B1F1 via

    sectorerase. Any attempt do do this failed, also to write in an erased sector B1Fx!

    (-> we hook on an undefined instruction exception (?invalid Data 0xE6000010?))

    The Flashprogramming-Manual says, that is possible ''The write operation commands must be executed

    from another bank or another memory (internal RAM or external memory)''

    If our program is running in external Memory the programming of Bank1 is successful!

    Is there a mistake in Flashprogramming-Manual?

    Is there any workaround or solution to fix the problem ?

    regards,

    CEL-Team

    PS: The same problem was posted by bazzer at 18-04-2005 at 09:51

    Visitor II
    August 25, 2005
    Posted on August 25, 2005 at 10:45

    Hello,

    Please find attached the Flash example, it work fine.

    This code runs from the Flash bank 0 and writes some data to the sector 0 of the Flash bank 1.

    Best regards,

    Bouha

    ________________

    Attachments :

    flash_example.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtOx&d=%2Fa%2F0X0000000aPV%2FkTxAhF0PbkzXtYbg_h3qXnWWXuz6Zn7ESQ1mLjbawHM&asPdf=false
    Visitor II
    August 30, 2005
    Posted on August 30, 2005 at 05:47

    Hi,

    I have the same problem, but I have not still tried to solve it. Is it a problem of thumb mode? Are you in thumb mode ?

    regards, Ludo

    Visitor II
    August 30, 2005
    Posted on August 30, 2005 at 06:24

    Hello,

    No I'm not in Thumb mode, I think it's a problem of waiting for the last operation.

    Best regards,

    Bouha

    Visitor II
    January 9, 2007
    Posted on January 10, 2007 at 00:20

    you should disable interrupt and disable bank1 write protection, you will be ok ! :D