GithubHelp home page GithubHelp logo

SD Card filesystem access about sam32 HOT 2 OPEN

maholli avatar maholli commented on September 14, 2024
SD Card filesystem access

from sam32.

Comments (2)

maholli avatar maholli commented on September 14, 2024

mounting an SD card on the ESP32 (SAM32v1):

  1. set SD_CS low in SAMD51 main.
  2. enter the esp32 REPL prompt. Current (sketchy) method is using the attached main.py
    main.py.txt
import uos
uos.sdconfig(uos.SDMODE_SPI, clk=5, mosi=18, miso=19, cs=14, maxspeed=16)
import os
os.mountsd(True)
os.listdir('/sd')

REPL output should look something like this:
image

from sam32.

maholli avatar maholli commented on September 14, 2024

running files on ESP32 from SD card

  1. Save desired file to sd card (externally)
  2. boot with attached main.py main.py.txt
  3. mount sd like so:
    image
  4. run os.getcwd() and make sure you're in /sd, otherwise do os.chdir('/sd')
  5. now you you can do: import FILENAMEHERE.py

from sam32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.