Page 1 of 1

Load Firmware from sd

Posted: Tue Oct 10, 2023 5:18 pm
by alboyeah
Hello everyone,

I need some help. I am working on a project with STMDuino on an STM32F103, and I need to implement firmware update via SD card by the user. The user should be able to upload a .hex or .bin file onto the SD card, start the machinery, and if the microprocessor detects a firmware file, it should flash and update the firmware.

My question is, since I am using STMDuino, is it possible to do this? Can you help me or give me some direction for this part of the project?

Thank you very much!

Re: Load Firmware from sd

Posted: Fri Oct 13, 2023 9:48 am
by BennehBoy
spammers are back

Re: Load Firmware from sd

Posted: Fri Oct 13, 2023 9:54 am
by alboyeah
I'm sorry why are you calling me a spammer??

Re: Load Firmware from sd

Posted: Sat Oct 14, 2023 1:39 pm
by GonzoG
It can be done, but not without using LL or CMSIS and it will need way more flash and RAM then code written in "pure" c/c++.

There are many open source bootloaders that use SD card to flash firmware. You might even find one for your MCU or might need to tweak few lines of code.

Re: Load Firmware from sd

Posted: Sat Oct 14, 2023 9:02 pm
by BennehBoy
alboyeah wrote: Fri Oct 13, 2023 9:54 am I'm sorry why are you calling me a spammer??
I wasn't, a spammer posted, and admins must have deleted the post.

Re: Load Firmware from sd

Posted: Sun Oct 15, 2023 6:18 am
by fpiSTM
Right. I delete the user and all messages. Several bots registered and posts spam since some months. Do not hesitate to warn if you see one then I will delete user and posts.

Re: Load Firmware from sd

Posted: Sun Oct 15, 2023 1:31 pm
by alboyeah
GonzoG wrote: Sat Oct 14, 2023 1:39 pm It can be done, but not without using LL or CMSIS and it will need way more flash and RAM then code written in "pure" c/c++.

There are many open source bootloaders that use SD card to flash firmware. You might even find one for your MCU or might need to tweak few lines of code.
thanks for your answer.
Unfortunately I'm not a programming wizard, I've always worked on my code on execution levels but never gone into so many depths, if you have time and I want could you explain to me more how to do it??
A thousand thanks