Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nereuxofficial/esp-sdcard
An example for using an ESP32 to read an SD-Card with no-std Rust
https://github.com/nereuxofficial/esp-sdcard
embedded esp32 no-std rust sdcard
Last synced: 2 months ago
JSON representation
An example for using an ESP32 to read an SD-Card with no-std Rust
- Host: GitHub
- URL: https://github.com/nereuxofficial/esp-sdcard
- Owner: Nereuxofficial
- License: apache-2.0
- Created: 2023-11-06T09:30:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-08T14:48:15.000Z (over 1 year ago)
- Last Synced: 2024-10-25T10:51:44.392Z (4 months ago)
- Topics: embedded, esp32, no-std, rust, sdcard
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# esp-sdcard
This is an example of how to use an SD Card using no-std Rust on an ESP32.## Wiring
1. GND to GND
2. 5V to VCC
3. MISO to GPIO2
4. MOSI to GPIO15
5. SCK to GPIO14
6. CS to GPIO13
When flashing the ESP32, you need to disconnect the SD Card from the ESP32.## Usage
1. Install [espup](https://github.com/esp-rs/espup)
2. Run `espup install` and follow its instructions
3. Install [espflash](https://github.com/esp-rs/espflash/)
4. Run `cargo run`
Your output should be similar to this:
```
I (240) boot: Disabling RNG early entropy source...
SPI initialized. Initializing SD-Card...
Card size is 8069840896 bytes
Volume 0: Volume(SearchId(5000))
INFO - Logger is setup
Hello world!
Loop...
Loop...
```