A few years back someone posted a topic about Uploading code from USBDRIVE to Arduino but the thread is locked so I cannot reply. I am needing some further assistance with this concept. I have made an Arduino based device that I plan on sending to customers. Most of them will not know anything about Arduinos or how to alter the code. If I use an Micro SD module with an Arduino Nano running a Bootloader to Flash from SD Card, can I just mail them a Micro SD card with updated code and it will work?
@pert you seemed to have extensive knowledge about this topic. I would love to pick your brain.
the answer is yes. I use it.
It is technically possible. The one reason why it's not implemented regularly is there's not enough space in the bootloader section of a typical Arduino to accommodate code for reading a filesystem in an SD card.
@hzrnbgy did you ever try it?
So you were able to implement a full filesystem using the 328P bootloader section?
I am currently using all of my Digital pins because I am running a relay module. Can the SD card module use Analog pins?
SPI pins are required for SD card
@hzrnbgy not me. did you read the original post?
The original post talks about a stand-alone programmer which is a separate device from the Arduino being programmed. That is not going to work since
can I just mail them a Micro SD card with updated code and it will work?
that would require mailing an SD card and the stand-alone programmer. If you can fit an SD card file system code and self-programming code into the bootloader section of an Arduino, there is no need for a separate standalone programmer. But the last time I checked, even a trimmed down version of PetitFS takes more than the 4 kB available in the 328P bootloader section.
@hzrnbgy the post links to an existing SD bootloader and asks if the bootloader works. I use that bootloader and it works.
@Juraj, I am fairly new into the world of Arduio. Are you available for hire to help me code a programmer to use with an SD module? I already have my main script written so I do not need any help with that. I just need help integrating the SD module.
@Juraj Much of the stuff that is discussed on the GitHub goes over my head. I could probably fumble my way through it but I would gladly pay you to have it done quickly and properly. Let me know if you are interested.
Also, is the CS pin necessary or can I just ground it and free up a pin on the arduino? sdcard does is need CS to a pin?
I didn't try it.
just go over the instructions step by step
Boards Manager Installation, then Tools menu settings, setup programmer, Burn Bootloader