Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
STM32L0x1 SAP file for app and security protection
Nick M. Sep 26, 2017 at 02:54 PM (14:54 hours)
Staff: Kevin M.

  • Hi, I know there are some post on the forum already regarding STM32 projects but none of the post quite answered my issue. 

    I need to create a SAP image with main image and set the user option field to enable read protection.

    So far I gathered that I need a SREC file to set the user option field. I have that.

    My biggest question is what sequence do I need to do in order to get it to work?

    SO far I am trying:
    CM: Select ST_STM32L0D4_1x32x4k.arp
    EM: Erase Module
    SS: select application image
    PM: Program Module
    CM: Select ST_STM32L0D4_1x32x8_OptionBytes.arp
    SS: select option field srec file
    EM: Erase Module
    PM: Program Module

    When I test this image, I get an error $00003003, Error number 1 Error: Program operation failed or was cancelled.

    Should I erase the option bytes first and load a srec with the read protect field cleared? I don't see how I can do a verification without this step.




    Comments

  • I can clear the read protection but I am unable to set it back. 

    CM: Select ST_STM32L0D4_1x32x8_OptionBytes.arp
    RU: READ/WRITE UNPROT
    CM: Select ST_STM32L0D4_1x32x4k.arp
    EM: Erase Module
    SS: select application image
    PM: Program Module
    VM: Verify Module

    To test, I used the ST-Link to set the read protection to level 1 and then used the SAP image without error.

    • Sorry incomplete post...

      When I try to set the security back by the SAP file with:
      CM: Select ST_STM32L0D4_1x32x8_OptionBytes.arp
      SS: select option field srec file
      EM: Erase Module
      PM: Program Module

      My Cyclone returns the error $00003003 somewhere around trying to operate on the OptionBytes erase or program.

  • I seem to have it working now. It appears there was an issue with my SREC file to write the protection back.

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