Shop OBEX P1 Docs P2 Docs Learn Events
Which types of SPI Flash are compatible with ROM for booting? — Parallax Forums

Which types of SPI Flash are compatible with ROM for booting?

I'm trying with a SST26VF064 instead of a Winbond chip and it doesn't seem to work...

Does only Winbond flash work?

Comments

  • jmgjmg Posts: 15,173
    What does a scope show ?
    FWIR, boot uses only a minimal subset of FLASH, with 03H = Std Read, 3 byte Address, so the only issues should come with the very large 32b address parts.
  • evanhevanh Posts: 15,916
    There is a required 10k pullup on pin61 (spi_cs) for triggering the booting of the SPI part.
  • RaymanRayman Posts: 14,646
    I added that pullup by hand...
  • Jump into TAQOZ in ROM and type .SF which will print the ID and serial number for the flash.
    There are plenty of other operations you can do to write and read and dump the flash and even use lsio to check the pins.
  • RaymanRayman Posts: 14,646
    edited 2019-11-15 22:42
    Sounds useful. But, I don't know how to get into TAQOZ. Funny, not mentioned in documentation yet...

    Ok, I found it greater than, space, escape...
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2019-11-15 22:45
    After a reset and from the terminal at any baud but try 115200 (although I use 2M) the 3 characters [>] [SPACE] [ESC]
    This will bring you into TAQOZ
    Cold start
    -------------------------------------------------------------------------------
      Parallax P2  .:.:--TAQOZ--:.:.  V1.1--v33h         190219-1900
    -------------------------------------------------------------------------------
    TAQOZ#
    

    Now try the .SF command
    TAQOZ# .SF --- $EF70_1800 $0F28_0A23_$E468_5CF4 ok
    
    Check for pull-ups etc with lsio
    TAQOZ# lsio --- 
    P:00000000001111111111222222222233333333334444444444555555555566
    P:01234567890123456789012345678901234567890123456789012345678901
    =:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~h ok
    

    Dump some Flash memory:
    TAQOZ# 0 $40 SF DUMP --- 
    00000: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................'
    00010: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................'
    00020: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................'
    00030: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................' ok
    

    Write some stuff (the TAQOZ dictionary) to Flash, then dump it, erase it, and check it.
    TAQOZ# @WORDS 0 $100 SFWRS ---  ok
    TAQOZ# 0 $40 SF DUMP --- 
    00000: 03 44 55 50  73 00 04 4F  56 45 52 77  00 04 53 57     '.DUPs..OVERw..SW'
    00010: 41 50 7E 00  03 52 4F 54  82 00 04 2D  52 4F 54 81     'AP~..ROT...-ROT.'
    00020: 00 04 44 52  4F 50 69 00  03 33 52 44  79 00 03 34     '..DROPi..3RDy..4'
    00030: 54 48 7B 00  05 32 44 52  4F 50 68 00  05 33 44 52     'TH{..2DROPh..3DR' ok
    TAQOZ# SFERASE ---  ok
    TAQOZ# 0 $40 SF DUMP --- 
    00000: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................'
    00010: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................'
    00020: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................'
    00030: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF     '................' ok
    
  • RaymanRayman Posts: 14,646
    Ok, thanks, I'm seeing something that makes it look like it's working:
    623 x 280 - 6K
  • RaymanRayman Posts: 14,646
    edited 2019-11-15 22:48
    Do you need a new loader to program flash with Rev.B?

    That must be it... Can't do flash on Eval board B either...
  • evanhevanh Posts: 15,916
    edited 2019-11-15 23:46
    Eric has started working on that for loadp2, based off Brian's demo - https://forums.parallax.com/discussion/169608/prop2-flash-loader/p1

    At the moment, that demo pasm2 source for binding a programmer/booter to top of target source is only one I think. Maybe Catalina has something, but I think it's only for prop1 I2C chips. EDIT: Looks like Ross has added it to Catalina alright - https://forums.parallax.com/discussion/comment/1472321/#Comment_1472321

  • I'm testing a Rev C eval board I just received. Jumped into TAQOZ and type .SF. What I got back was $FFFF_FFFF $FFFF_FFFF_$FFFF_FFFF ok. Does that look right?
  • Have you got the flash dip-switch turned on ?
  • This old thread might help: http://forums.parallax.com/discussion/171108/spi-boot-rom-compatibility-tests
    On page 2 there's a list of devices I have tested.
    http://forums.parallax.com/discussion/comment/1487989/#Comment_1487989

    It seems that the SST chips don't fit very well to the P2.
  • VonSzarvas was correct. I did not have the flash dip-switch turned on. I misunderstood the documentation. I'll have to review the datasheet for the flash. With the flash dip-switch on, TAQOZ's .sf word gives me: $EF70_1800 $C74F_3C39_$E469_C078 ok. I have to make a note of this. Thanks.
Sign In or Register to comment.