2022-07-13 12:25 AM
Im working on stm32f767 project. I designed my board. I want to upload&download my code. First step i need to take backup (download) my code after that creating a file (xml..?) to SD card. Also i want to upload code which in SD card to MCU. How can i do these?
Solved! Go to Solution.
2022-07-13 05:21 AM
The FLASH memory is accessible like other readable memory in the system, so things like memcpy(), and FATFS's f_write() should function.
You could process the memory content and create a .HEX file if that is more preferable over a .BIN file.
For programming the FLASH you could hold data in a .BIN, .HEX or .DFU, and read / process that.
The loader approach would allow a relatively small implementation (say about 16KB) to program a larger application image into subsequent portions of FLASH
2022-07-13 12:47 AM
Guess that the SD card is somehow attached to the stm32f767. Then, you have to write a bootloader doing the up/download. Look at https://github.com/STMicroelectronics/stm32-mw-openbl how it was done for other interfaces.
hth
KnarfB
2022-07-13 05:21 AM
The FLASH memory is accessible like other readable memory in the system, so things like memcpy(), and FATFS's f_write() should function.
You could process the memory content and create a .HEX file if that is more preferable over a .BIN file.
For programming the FLASH you could hold data in a .BIN, .HEX or .DFU, and read / process that.
The loader approach would allow a relatively small implementation (say about 16KB) to program a larger application image into subsequent portions of FLASH
2022-07-13 06:33 AM
okay. i will use f_write f_read functions. i ll create bin folder in sd card. i will write all flash datas into bin folder. when i want to upload new code, i ll read datas from sd card
2022-07-19 05:04 PM
Looking at the topics you have created and comments written, it is very clear that you are designing something far above your level of understanding. If you want to actually learn development, start with the basics:
2022-08-05 11:56 PM
bruh :D
2022-08-09 04:46 AM
Laughing and ignorant attitude will not help either. You will realize this after a year or few of wasted time... ;)
2022-08-10 04:44 AM
ok bro you know everything, you are the best