Discussing SD Drivers (depreciated fsrw)

1234568»

Comments

  • Cluso99 wrote: »
    And of course there is the SD pasm code that was running in late 2017 on the FPGA and was the precursor to what went into the ROM :sunglasses:
    https://forums.parallax.com/discussion/167839/p2-sd-card-boot-code-for-rom

    Remember I had different versions of Tachyon running on the P2 FPGA om my DE2-115 board in 2015 with multiple SD cards and FAT32.

    I was even using it in a project based on the P2 BeMicro CV-A9 FPGA early in 2016, in the faint hope that P2 silicon would soon be available :) :(
    The TAQOZ ROM code does this same high-speed multiblock read that I do in TAQOZ RELOADED where I read in excess of 3MB/s at 300MHz.

    Here is where I ask TAQOZ to "print DISK" information:
    TAQOZ# .DISK ---  CARD: SANDISK   SD SC64G REV$80 #35190404 DATE:2018 /10
    
                       *** OCR *** 
        VALUE........................... $C0FF_8000
        RANGE........................... 2.7V to 3.6V
    
                       *** CSD *** 
        CARD TYPE....................... SDHC
        LATENCY......................... 1ms+1400 clocks 
        SPEED........................... 50MHz 
        CLASSES......................... 0 1 0 1 1 0 1 1 0 1 0 1 
        BLKLEN.......................... 512
        SIZE............................ 62,367MB
        Iread Vmin...................... 10ma
        Iread Vmax...................... 25ma
        Iwrite Vmin..................... 60ma
        Iwrite Vmax..................... 35ma
    
                     *** SPEEDS *** 
        LATENCY......................... 486us,253us,727us,637us,253us,1459us,771us,351us,
        SECTOR.......................... 387us,408us,428us,439us,409us,1608us,473us,454us,
        BLOCKS.......................... 3,151kB/s @300MHz
    
                       *** MBR *** 
        PARTITION....................... 0 00 INACTIVE
        FILE SYSTEM..................... FAT32 LBA
        CHS START....................... 1023,254,63
        CHS END......................... 0,0,0
        FIRST SECTOR.................... $0000_8000
        TOTAL SECTORS................... 124,702,720 = 63,847MB
    
    00170: 0000_0000 0000_0001 0002_0000 506F_7250     '............ProP'
    
                      *** FAT32 *** 
        OEM............................. TAQOZ P2
        Byte/Sect....................... 512
        Sect/Clust...................... 64 = 32KB
        FATs............................ 2
        Media........................... F8
        Sect/Track...................... $003F
        Heads........................... $00FF
        Hidden Sectors.................. 32,768 = 16MB
        Sect/Part....................... 124,702,720 = 63,847MB
        Sect/FAT........................ 15,222 = 7MB
        Flags........................... 0
        Ver............................. 00 00 
        ROOT Cluster.................... $0000_0002 SECTOR: $0000_F70C
        INFO Sector..................... $0001 = $0000_8001
        Backup Sector................... $0006 = $0000_8006
        res............................. 00 00 00 00 00 00 00 00 00 00 00 00 
        Drive#.......................... 128
        Ext sig......................... $29 OK!
        Part Serial#.................... $6269_0201 #1651048961
        Volume Name..................... P2 CARD    FAT32    ok
    TAQOZ#
    

  • Ahle2 wrote: »
    Dave,

    How is p2gcc coming along? I would love program the P2 in C++ with all the bells and whistles (but I would only use a subset that is known to perform well on MCU's of course)

    /Johannes

    @ntosme2 was working on a GCC port for P2 last year and had some success but it has gone quiet and I think he needed more help/work to progress further... this thread is the one discussing it.

    https://forums.parallax.com/discussion/comment/1478650/#Comment_1478650
  • Cluso99 wrote: »
    And of course there is the SD pasm code that was running in late 2017 on the FPGA and was the precursor to what went into the ROM :sunglasses:
    https://forums.parallax.com/discussion/167839/p2-sd-card-boot-code-for-rom

    Remember I had different versions of Tachyon running on the P2 FPGA om my DE2-115 board in 2015 with multiple SD cards and FAT32.

    I was even using it in a project based on the P2 BeMicro CV-A9 FPGA early in 2016, in the faint hope that P2 silicon would soon be available :) :(
    The TAQOZ ROM code does this same high-speed multiblock read that I do in TAQOZ RELOADED where I read in excess of 3MB/s at 300MHz.

    Here is where I ask TAQOZ to "print DISK" information:
    TAQOZ# .DISK ---  CARD: SANDISK   SD SC64G REV$80 #35190404 DATE:2018 /10
    
                       *** OCR *** 
        VALUE........................... $C0FF_8000
        RANGE........................... 2.7V to 3.6V
    
                       *** CSD *** 
        CARD TYPE....................... SDHC
        LATENCY......................... 1ms+1400 clocks 
        SPEED........................... 50MHz 
        CLASSES......................... 0 1 0 1 1 0 1 1 0 1 0 1 
        BLKLEN.......................... 512
        SIZE............................ 62,367MB
        Iread Vmin...................... 10ma
        Iread Vmax...................... 25ma
        Iwrite Vmin..................... 60ma
        Iwrite Vmax..................... 35ma
    
                     *** SPEEDS *** 
        LATENCY......................... 486us,253us,727us,637us,253us,1459us,771us,351us,
        SECTOR.......................... 387us,408us,428us,439us,409us,1608us,473us,454us,
        BLOCKS.......................... 3,151kB/s @300MHz
    
                       *** MBR *** 
        PARTITION....................... 0 00 INACTIVE
        FILE SYSTEM..................... FAT32 LBA
        CHS START....................... 1023,254,63
        CHS END......................... 0,0,0
        FIRST SECTOR.................... $0000_8000
        TOTAL SECTORS................... 124,702,720 = 63,847MB
    
    00170: 0000_0000 0000_0001 0002_0000 506F_7250     '............ProP'
    
                      *** FAT32 *** 
        OEM............................. TAQOZ P2
        Byte/Sect....................... 512
        Sect/Clust...................... 64 = 32KB
        FATs............................ 2
        Media........................... F8
        Sect/Track...................... $003F
        Heads........................... $00FF
        Hidden Sectors.................. 32,768 = 16MB
        Sect/Part....................... 124,702,720 = 63,847MB
        Sect/FAT........................ 15,222 = 7MB
        Flags........................... 0
        Ver............................. 00 00 
        ROOT Cluster.................... $0000_0002 SECTOR: $0000_F70C
        INFO Sector..................... $0001 = $0000_8001
        Backup Sector................... $0006 = $0000_8006
        res............................. 00 00 00 00 00 00 00 00 00 00 00 00 
        Drive#.......................... 128
        Ext sig......................... $29 OK!
        Part Serial#.................... $6269_0201 #1651048961
        Volume Name..................... P2 CARD    FAT32    ok
    TAQOZ#
    
    I'm sure if we look back at P2HOT we'll see things running on it too :)
  • msrobots wrote: »
    One thing I really liked with @lonesock's SD SPI driver is the read ahead and write behind feature.

    Sadly I lost all my files for the RAISD project (4 SDs on one quickstart) thru a messed up Windows Update, I had managed to use @lonesocks SD SPI block driver inside @Kye's Fat_Engine, and both (Fsrw and Fat_Engine) could do transfers around 1,200 kbytes/second on a P1 with 80 Mhz.

    Mike


    Hey Mike,

    Its been a while & saw an email notification on this thread. I still happened to have your old codes with me. Not sure if it helps but let me zip them up & forward to you via email.


  • I have archives upon archives. I'm not sure which was the lastest but this is 2.6
  • RaymanRayman Posts: 10,895
    edited 2020-05-26 - 14:26:16
    I'm pretty sure FSRW 2.6 for P1 is in OBEX...
  • Here's what I have, sorry it's a bit of a mess.

    Jonathan
  • RaymanRayman Posts: 10,895
    edited 2020-05-26 - 15:41:19
    @lonesock You're still here! That's great. Feel free to take over my part in the FSRW for P2 project.
    There are a lot of improvements that can be made. Things like "release" and timeout and read-ahead, write-behind for example...

    It works well enough for what I need, but there's a lot that could be done to make it better.
  • Well, I still exist, but unfortunately I haven't had much time for prop development. [8^(

    I do pop into the forum every once in a while to try to keep tabs on the P2's progress, but I am certainly not well versed enough in the P2 internals to do the kind of code dev that would be considered elegant. I will try to get back in, but I don't know when that will be, sorry!

    thanks,
    Jonathan
Sign In or Register to comment.