• AVR Freaks

In Harmony V3, what function is for unlock sequence ?

Author
ysaitoysaito
Super Member
  • Total Posts : 407
  • Reward points : 0
  • Joined: 2010/08/13 08:31:35
  • Location: 0
  • Status: offline
2020/05/22 19:24:10 (permalink)
0

In Harmony V3, what function is for unlock sequence ?

 In Harmony V2, I have used  SYS_DEVCON_SystemUnlock() and SYS_DEVCON_SystemLock() for unlock sequence.
 
I would like to know the Harmony V3 functions for SYS_DEVCON_SystemUnlock() and  SYS_DEVCON_SystemLock().
 
 
Any advice make me pleased.
 
 
ysaito
#1

2 Replies Related Threads

    optimus_jack
    Junior Member
    • Total Posts : 78
    • Reward points : 0
    • Joined: 2017/02/16 03:02:47
    • Location: 0
    • Status: offline
    Re: In Harmony V3, what function is for unlock sequence ? 2020/05/24 23:48:25 (permalink)
    0
    Hi,
    I think there is no API to do so in H3.
    But if you are calling any PLIB function which requires the unlock sequence to be performed, it is taken care internally.
     
    Like NVM write/Erase operations
    #2
    ysaitoysaito
    Super Member
    • Total Posts : 407
    • Reward points : 0
    • Joined: 2010/08/13 08:31:35
    • Location: 0
    • Status: offline
    Re: In Harmony V3, what function is for unlock sequence ? 2020/05/26 01:48:41 (permalink)
    0
    Dear optimus_jack

     Thank you very much for kind advice.  4 days has passed, after I posted this thread.  It seems that you are right.
     
      So for the moment at least  I use below, which is a little bit "clumsy"  but works well as unlock/lock sequence for PIC32MZ.
     
       
     
     
      SYS_DEVCON_SystemUnlock()
      -->
         SYSKEY = 0;             
         SYSKEY = 0xAA996655;    // Write Key1 to SYSKEY
         SYSKEY = 0x556699AA;    // Write Key2 to SYSKEY
     
     
      SYS_DEVCON_SystemLock()
      -->
         SYSKEY = 0x33333333;
         
         
    Best Regards

    ysaito


    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5