STM32F103C8T6 Flash Memory Write/Read
-
- Posts: 6
- Joined: Tue May 17, 2022 11:15 am
STM32F103C8T6 Flash Memory Write/Read
How can ı write and read my datas to STM32. Does it have library? I need your help guys thank you.
Re: STM32F103C8T6 Flash Memory Write/Read
You can use EEPROM library.
-
- Posts: 6
- Joined: Tue May 17, 2022 11:15 am
Re: STM32F103C8T6 Flash Memory Write/Read
STM32F103C8T6 does note have EEPROM sir, ı need to write flash memory but ı have no idea.
Re: STM32F103C8T6 Flash Memory Write/Read
Eeprom library emulate an eeprom in flash...
-
- Posts: 6
- Joined: Tue May 17, 2022 11:15 am
Re: STM32F103C8T6 Flash Memory Write/Read
Can you help me, how can ı emulate?
Re: STM32F103C8T6 Flash Memory Write/Read
Another way would be to use HAL Flash API but it is for advanced user.
Re: STM32F103C8T6 Flash Memory Write/Read
Simply try examples available in Arduino IDE.
-
- Posts: 6
- Joined: Tue May 17, 2022 11:15 am
Re: STM32F103C8T6 Flash Memory Write/Read
I can not run FlashStorage library for stm32. İt give error.
WARNING: The FlashStorage_STM32F1 library needs stm32, ststm32 architecture to work and may be incompatible for your circuit using STM32F1 architecture.
WARNING: The FlashStorage_STM32F1 library needs stm32, ststm32 architecture to work and may be incompatible for your circuit using STM32F1 architecture.
Re: STM32F103C8T6 Flash Memory Write/Read
OK this mean you use Roger core. I don't know what is available for this core.
Re: STM32F103C8T6 Flash Memory Write/Read
take a look in the ref manual RM0008 and some app notes
https://www.st.com/resource/en/referenc ... ronics.pdf
https://www.st.com/resource/en/programm ... ronics.pdf
it isn't difficult to use the registers to write to on-chip flash
if you search in github, there are probably more examples.
https://github.com/khoih-prog/FlashStorage_STM32F1
https://github.com/avislab/STM32F103/tr ... tm_lib/src
Note that erase is a full block of flash, if you have only 64k flash, and your bin image is large, erasing flash may erase part of your program.
https://www.st.com/resource/en/referenc ... ronics.pdf
https://www.st.com/resource/en/programm ... ronics.pdf
it isn't difficult to use the registers to write to on-chip flash
if you search in github, there are probably more examples.
https://github.com/khoih-prog/FlashStorage_STM32F1
https://github.com/avislab/STM32F103/tr ... tm_lib/src
Note that erase is a full block of flash, if you have only 64k flash, and your bin image is large, erasing flash may erase part of your program.