• Looks like everything's working:

    >require("Flash").getFree()
    =[
      { addr: 442368, length: 4096 },
      { addr: 1610612736, length: 16777216 }
     ]
    

    I used the common Arduino spi pins for the mapping:

      'SPIFLASH' : {
                'pin_cs' : 'D10', # cs
                'pin_mosi' : 'D11', # di
                'pin_miso' : 'D12', # do
                'pin_sck' : 'D13', # clk
                'size' : 8192*1024*2, # 16MB
                'memmap_base' : 0x60000000, # map into the address space (in software)
              },
    

    I wonder if we can just add in spiflash by default on the boards as a placeholder since spi can reuse the pins anyway (at least on the pixl, since it mimics the Arduino layout)? And maybe just pass in the cs pin when trying to use the Flash module just in case you'd want to reuse pin 10 for your own spi peripheral.


    1 Attachment

    • IMG_20201009_063322.jpg
About

Avatar for parasquid @parasquid started