Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ESP32 Port - SDCard Mount - Width parameter with esp32spiram version of firmware #5072

Closed
@Hecatron

Description

@Hecatron

Hi,
I've raised this as a seperate issue as I think it's different from the other SDCard related problem over at
#4722

After doing a bit of testing using the ESP-WROVER-KIT 4.1
It looks like if you try to specify the width parameter when using machine.SDCard()
this works fine with the esp32 firmware but breaks under esp32spiram

This works fine with both stock firmwares esp32 and esp32spiram

import machine
uos.mount(machine.SDCard(), "/sd")
uos.listdir('/sd')
uos.umount('/sd')

This works okay with esp32-20190905-v1.11-274-g06661890d.bin
But breaks with esp32spiram-20190905-v1.11-274-g06661890d.bin
The esp32spiram version of the firmware seems to have an issue with taking a width parameter even if it's the same as the default value (4)

import machine
uos.mount(machine.SDCard(width=4), "/sd")
uos.listdir('/sd')
uos.umount('/sd')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions