Context:
- I am using STM32CubeIDE 1.11.0 on Linux to program (via ST-Link V2) my STM32f103c8t6 bluepill, boot mode is 00 ("Main Flash Memory")
- I have read the whole section about it in the manual, but the answer is not there or at least it is not there in any form I can understand
- I need to store data into memory but I need to keep it after reset or power off. I was wondering if I could use flash memory to achieve this.
So, straight to the questions:
If I keep using boot mode
00
:- Is my program stored in (and the unit booted from) "main flash memory"?
- Writing data in this memory section will make bad things happen, correct?
- Can I use "System memory" section of the flash since it's not being used to store my program?
If I use Boot mode
01
"System memory":- Will I be able to keep programming the unit via USB (ST-Link V2) and STM32CubeIDE?
- Now that "Main flash memory" is not used to boot from, am I able to write into it without any problems?
If I use boot mode
11
"Embedded SRAM":- Will I be able to keep programming the unit via USB (ST-Link V2) and STM32CubeIDE?
- Is my program now stored in SRAM leaving flash initially unused?
- If so, am I now able to write data into any address of the flash memory?
Thanks so much for your patience, I am quite new to this and non-native English speaker. If I missed information needed to answer please ask.
Kind regards.