Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
Monday, July 17, 2017 Facing problem when setting USER Byte on STM32F429VE
rajesh r. Jul 17, 2017 at 06:30 AM (06:30 hours)
Staff: Juan S.

  • When I am trying to set USER byte , it is echanging READ Protection options and write protecting values as well which I don't want.

    Can you tell me is there any sequence I need to follow to change the USER Byte???




    Comments

  • What command are you using to set USER byte?
    What value are you using to set USER byte?

    • I am using USER COMMAND with value "CF"(11001111)

  • "CF" is not a command that our flash algorithm understands. What software are you using?

    If you are using PROGACMP or a Cyclone Stand Alone Image, you can modify the USER byte option using the following command for a STM32F429VE as an example:

    US 2F

    What this command will do is program the User Option Byte to the value of 0x2F:

    Bit 7 = nRST_STDBY = 0
    Bit 6 = nRST_STOP = 0
    Bit 5 = WDG_SW = 1
    Bit 4 = BFB2 = 0
    Bit 3:2 = BOR_LEV = 11
    Bit 1:0 = Not Used = 11

    Please do make sure to use the latest support file. A link to the latest is below:

    http://www.pemicro.com/downloads/main_downloads_temp/201707190223304618246/supportFiles_ARM.zip

    • Hi Juan,
      Thank you so much for your support,
      with the latest algorithms i Can able to write option bytes settings.
      I use
      US CF

      My main intention is to set the watch dog (IWDG) to Hardware mode

      Reagds
      Rajesh

      • Hello Juan,

        Today I was trying to disable read and write protection.
        So I used -> UP REad/Write Unprotect

        When I program this
        Write protection doesn't change but read protection changes.
        Can you please let me know how to unprotect read and write settings.

        Best Regards
        Rajesh

  • Hi Juan, Similarly I want to set option bytes for STM32F302CB,
    What I found was algorithms for this MCU doen't support "US" command.
    In this case how to Update option byte.
    (I check there is a seperate algo for option byte..But no Command. Is it some thing like I need to provide S19 file for this. From where I can get that S19 File)
    Thanks.

  • Hi Rajesh, 

    For the STM32F302CB you would have to generate an S19 file with the option bytes value you wish to program. The option bytes begin at address 0x1FFFF800 and have a length of 0x10.

    Regards,
    Rajesh

    • Hi Juan, Thank you for the clarification.
      Can you please provide me the example/steps to generate S19 file for setting the option bytes.

      Regards
      Rajesh

      • Hi, Juan.

        Can we use BIN2S19 to generate the S19 file for setting the option bytes?

        If yes, how?

        Thanks in advance.

      • Hi Rajesh, 

        Below is an example s19 file content for setting the option bytes:

        S3151FFFF800AA55FFFFFFFFFFFFFFFFFFFFFFFFFFFFDC
        S804000000FB

        Please copy the two lines above into a text file and save it with a .s19 file extension.

        There are 16 option bytes starting at address 0x1FFF_F800:
        RDP nRDP USER nUSER Data0 nData0 Data1 nData1
        1FFFF800 AA 55 FF FF FF FF FF FF
        WRP0 nWRP0 WRP1 nWRP1 WRP2 nWRP2 WRP3 nWRP3
        1FFFF808 FF FF FF FF FF FF FF FF

        After programming the data, you can use the "Launch Option" command for the new values to take effect or just toggle the power of your STM32F302CB

        Regards,
        Juan See

        • Hi Juan,
          Thank you so much for your help.
          Now can able to set the Option bytes by using S19 file.

          Best Regards
          Rajesh

  • Hello Juan,

    Today I was trying to disable read and write protection.
    So I used -> UP REad/Write Unprotect

    When I program this
    Write protection doesn't change but read protection changes.
    Can you please let me know how to unprotect read and write settings.

    Best Regards
    Rajesh

  • Hello Rajesh, 

    Which device where you using "UP REad/Write Unprotect" with?

    • Hello Juan,

      I am using STM32F429VET6
      And PE Micro device is : Cyclone Fx

      regards
      Rajesh

Add comment


   Want to comment? Please login or create a new PEMicro account.







© 2017 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement