• AVR Freaks

Harmony SST26VF064B Driver

Author
Johnny0099
Super Member
  • Total Posts : 158
  • Reward points : 0
  • Joined: 2015/06/20 00:33:20
  • Location: 0
  • Status: offline
2015/09/07 08:47:03 (permalink)
0

Harmony SST26VF064B Driver

Hello Everybody,
 
I'm trying to implement a SST26VF064B Harmony driver starting from SST25VF064C driver, following the notes in this document:
 

 
Trying to read JEDEC code, the SPI does not return any value (SO always low).
 
Does someone get rid of the new SST26VF flash family within Harmony? Is there any particular sequence for memory startup to follow? Looking at the document the only main difference seems to be the unlock procedure. My hardware has #W and #HOLD pins tied to 3.3V
 
CF
#1

3 Replies Related Threads

    arpananand
    Super Member
    • Total Posts : 498
    • Reward points : 0
    • Joined: 2009/11/18 04:35:42
    • Location: 0
    • Status: offline
    Re: Harmony SST26VF064B Driver 2015/09/08 07:20:12 (permalink)
    3 (1)
    i guess your observation is right, there is only difference of unlock between 25V and 26V flash, so you can use the 25V flash driver code, just that you need to unlock the memory in the beginning as additional step.
    #2
    Johnny0099
    Super Member
    • Total Posts : 158
    • Reward points : 0
    • Joined: 2015/06/20 00:33:20
    • Location: 0
    • Status: offline
    Re: Harmony SST26VF064B Driver 2015/09/08 15:54:23 (permalink)
    3 (1)
    Finally worked, I had a few problems with SPI configuration (strange behaviour, working with scope probes, no working without), now works with 16 Mhz with the following configuration:
     
    DRV_SPI_CLOCK_MODE_IDLE_LOW_EDGE  (Reg Value = 1)
    SPI_INPUT_SAMPLING_PHASE_AT_END  (Reg Value = 1)
     
    Main changes from SST25 driver was in unlock procedure, I added 0x98H command followed by status register polling in initializzation state machine.
     
    CF
     

    Attached Image(s)

    #3
    JT
    New Member
    • Total Posts : 23
    • Reward points : 0
    • Joined: 2006/12/15 02:47:22
    • Location: Dijon - FRANCE
    • Status: offline
    Re: Harmony SST26VF064B Driver 2015/12/10 04:23:43 (permalink)
    0
    Hi Johnny099,
     
    I'm trying to do the same thing with a SST26VF032B.
    I don't know why Microchip does not include the SST26VF family drivers in Harmony instead of SST25 !
    Anyway, can you tell me where you put your modification for the Unlock procedure in the file "drv_sst25vf064c.c" ?
    Is it in the "DRV_SST25VF064C_Tasks" or in the "_DRV_SST25VF064C_ProcessBufferTask" ?
     
    Can your share parts of your code with this modification.
     
    Thanks in advance LoL: LoL.
     

    Jannick TRONCIN
    3C CONCEPT S.A.S
    France
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5