🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Error in access SD card

    M5Stack Fire
    1
    2
    2.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CA_HeArc
      last edited by

      Dear all,
      I'm using M5Stack Fire with firmware v1.9.8 and LoRa 868MHz module (blue one).
      The programming through UIFlow was successful until now with some nice tests of

      • ENV III sensor,
      • NTP timing,
      • LoRa init example,
      • ...

      I'm trying to access an SD card now to log the ENV III sensor data locally.

      from m5stack import *
      from m5ui import *
      from uiflow import *
      
      setScreenColor(0x222222)
      
      with open('/sd/FileName.*', 'r') as fs:
        lcd.print((fs.read()), 0, 0, 0xffffff)
      
      

      Unfortunately the example code hereunder gives me an error.

      File "<string>", line 15, in <module> OSError: [Errno 19] ENODEV

      The SD card is a SanDisk Extreme Pro 32Gb.

      • I formatted it under Windows 11 into Fat32.
      • I copied a single text file on it.
      • I inserted it the pads facing up (same direction than the screen).

      Could someone help me out in the debugging ?

      Thanks in advance,
      C.A.

      1 Reply Last reply Reply Quote 0
      • C
        CA_HeArc
        last edited by

        Edit:
        is there any limit in size for the SD cards ?
        if so, what is it ?

        Best regards,
        C.A.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post