Mass Write SD Cards from ESP32 - Might be a useful trick someday

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 48

  • @datenraffzahn6094
    @datenraffzahn6094 2 роки тому +4

    SPIFFS does not really have a concept of folders, its just file names. However it only lists files and subfolders you have in a certain "directory". (if you do "SPIFFS.open("/path")" for instance everything below is listed). If you open it with "/" you will always get all files in your spiflash. Be aware that does not do long paths either. There is a 32 character limit for file names including paths. The packing tool will return a rather descriptive "unknown error" if you try to exceed this.

  • @spacewolfjr
    @spacewolfjr 2 роки тому +9

    One possible enhancement would be for the ESP to fetch the file from a HTTP/HTTPS site and write that to the SD cards -- you'd need to fetch and write in chunks but it would make it a bit more versatile.

    • @alanjrobertson
      @alanjrobertson 2 роки тому

      The new Raspberry Pi bootloader is pretty cool with how it does something along these lines, streaming OS images to the SD card

    • @igorgolenko6253
      @igorgolenko6253 2 роки тому

      This isn't problem with ESP.

  • @Andrew-rc3vh
    @Andrew-rc3vh 2 роки тому +4

    I think you are supposed to transfer 512 bytes at a time when using an SD card or it will take ages. You see flash memory writes in blocks and the blocks need to be aligned as well or you will be copying the end of one and the beginning of the next on each read/write cycle.

  • @sujeetiitd
    @sujeetiitd 2 роки тому +1

    Missed the preamble: "Hey what's up guys...!" 😊

  • @prathambumb5593
    @prathambumb5593 2 роки тому +2

    Video after very long time
    Thank you

  • @proje777
    @proje777 2 роки тому +3

    Good explanation and it is exactly useful thanks 👍🙂

  • @FrankGraffagnino
    @FrankGraffagnino 2 роки тому

    great stuff. thanks for taking the time to write this up and film it!

  • @krzysztofkozorys516
    @krzysztofkozorys516 2 роки тому

    Best regards from Poland 👍.

  • @randomgeocacher
    @randomgeocacher 2 роки тому

    Very cool! Electronic manufacturers love to talk about “gang programming” when they put a gang of programmers to programming chips. Gang programming to SD-cards is less usual :)

    • @CarlSperg
      @CarlSperg 27 днів тому

      and less fun that gang "banging" !!

  • @ard6715
    @ard6715 2 роки тому

    Love from Tripura, India

  • @RixtronixLAB
    @RixtronixLAB 2 роки тому

    Keep it up, thank you for sharing :)

  • @DiyintheGhetto
    @DiyintheGhetto 2 роки тому

    Hey Kevin, Is it possible to write to two Sd cards at the same time. I was just curious. Sense My skills are in hardware And barely software for arduino I was wondering If this is possible?

  • @avejst
    @avejst 2 роки тому

    Neat trick
    Thanks for sharing 🙂

  • @akalankashani9907
    @akalankashani9907 2 роки тому

    May I know if two esp32 can be connected to one sd card? If so, how to connect it? Please help me know about it.

  • @sorek__
    @sorek__ Рік тому

    Is best to use SD_MMC mode, you need one wire less (CS not needed) and 10k pullups, it's also much faster even though it's 1 bit mode.

  • @ChazLakinger
    @ChazLakinger 2 роки тому

    Since you're using an ESP32, I wonder if you could set it up to pull files from an FTP server. It might be too slow to use for bigger files but you wouldn't need to store them on the ESP32 or update multiple writer boards if you need to update or change a file

    • @Kevindarrah
      @Kevindarrah  2 роки тому

      yea I was thinking about that too!

    • @SCOTE991
      @SCOTE991 2 роки тому

      SPI is relatively slow compared with SDIO on SD cards. FTP network access may not be so much of an issue. for cloning large amounts of data SDIO may be better on a different platform.

  • @midianalbertokhaiyow8195
    @midianalbertokhaiyow8195 Рік тому

    Hello, very good video, I'm trying to do something like what you did but in reverse, look, I have a program that runs on an esp32 and reads a series of files (Json format) that is in the same memory as the esp32 in a littlefs partition Now, I load that memory from the arduino ide, but I would like to do it from an SD card reader, because if I do an up-dete of that data I would like to take it to the esp32 memory with an sd card, they are file systems large and with many folders, can you recommend a method that can help me?

  • @Jindraxx20
    @Jindraxx20 2 роки тому

    Hello Kevin. I would like to ask if your device can burn the eFuses of the esp32 when someone wants to lock the esp.
    Thank you in advance!

    • @Kevindarrah
      @Kevindarrah  2 роки тому +1

      not yet, but I love that idea and would love to figure out how to do that with this

  • @charlesmarseille123
    @charlesmarseille123 2 роки тому

    where did you get 100 sd cards? pretty sure you got a deal.. mind sharing the plug? ;)
    Thanks for the great video!

    • @Kevindarrah
      @Kevindarrah  2 роки тому +1

      just on amazon - under $3/pc... could probably find a better deal on one of the Ali sites

    • @iRouRoui
      @iRouRoui Рік тому

      never buy SD from ali, never once did I get a card that didn't have some kind of problem

  • @ergindemir7366
    @ergindemir7366 11 місяців тому

    Can you upload files on the new ide v2?

  • @FrankenLab
    @FrankenLab 2 роки тому

    @Kevin Darrah Great idea, thanks for sharing. LINK for schematic is broken, could you update?

    • @FrankenLab
      @FrankenLab 2 роки тому

      Thanks! Seems to be working again now!

    • @Kevindarrah
      @Kevindarrah  2 роки тому +1

      ha, yea you beat me to it! Fixed last night and came here to let you know, thanks for the catch. for some reason original doc showed pdf, but only on safari, not chrome... oh well

  • @TheChemicalWorkshop
    @TheChemicalWorkshop 2 роки тому

    where did you get sd cards cheap? i can never find...

  • @andrewtitcombe8378
    @andrewtitcombe8378 2 роки тому

    Yes SD card cloning would be a far more useful as SPIFFS are not large enough to hold large files. Or maybe download to card from pc over wifi?

    • @Kevindarrah
      @Kevindarrah  2 роки тому +1

      yea, I wonder if can use both VSPI and HSPI at the same time to speed this up...

  • @remcogroenheide2701
    @remcogroenheide2701 2 роки тому

    where did you buy the bulk of sd cards?

  • @ronaldhofman1726
    @ronaldhofman1726 2 роки тому

    SD cards are not the most reliable information carriers i do not use them.

  • @janiyaalessandra6835
    @janiyaalessandra6835 2 роки тому

    քʀօʍօֆʍ ?

  • @philbowles3240
    @philbowles3240 2 роки тому

    What does it actually DO? I don't get it. It writes 4 small files to SD...for what???? What files? Why 4 ? What's in them? Its about as much use as a chocolate fire guard. I just don't see any point to this at all...what have you omitted from your description? What have you forgotten to tell us?

    • @randomgeocacher
      @randomgeocacher 2 роки тому +1

      1:51 he’s writing esp32 boot applications/firmware from esp32. It saves him a lot of time and is a lot more fun/interesting than doing it from an OS; he gets multiple writers as he has several cards and a binary pass/fail LED.

    • @philbowles3240
      @philbowles3240 2 роки тому

      @@randomgeocacher there is NOTHING about this that is going to save time over simpler tried and trusted methods. This is a complex piece of pointless nonsense with no obvious use case...Google "OTA". I can do what he thinks he is trying to do in maybe 3 different ways. All of them about 10x faster, none require additional specialist hardware, so remind me again what he's doing? Clue: wasting his and everyone else's time. Powdered water: just add water.

    • @certified-forklifter
      @certified-forklifter 2 роки тому +5

      @@philbowles3240 why are you so negative? Have you ever heard of having _fun_ while making projects? It doesn't always have to make "economical sense".... Don't be rude.

    • @randomgeocacher
      @randomgeocacher 2 роки тому

      @@philbowles3240 He already has the cards and obviously is familiar with the programming environment. If you don’t want to do this, just don’t. It was provided for free and fun.

    •  2 роки тому

      so bitter, wow!