tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/sdcard/README.md (about)

     1  # SPI sdcard/mmc driver
     2  
     3  This package provides the driver for sdcard/mmc with SPI connection.
     4  
     5  To use a file system on the SDcard, please see the TinyFS repo:
     6  
     7  https://github.com/tinygo-org/tinyfs
     8  
     9  See `examples/sdcard/console` for a low-level access example.
    10  
    11  ## Stack size
    12  
    13  If you use this package, you need to set `default-stack-size` in `targets/*.json`.  
    14  For example, `targets/wioterminal.json` has the following configuration.  
    15  
    16  ```
    17  {
    18      "inherits": ["atsamd51p19a"],
    19      "build-tags": ["wioterminal"],
    20      "flash-1200-bps-reset": "true",
    21      "flash-method": "msd",
    22      "msd-volume-name": "Arduino",
    23      "msd-firmware-name": "firmware.uf2",
    24      "default-stack-size": 2048
    25  }
    26  ```