cancel
Showing results for 
Search instead for 
Did you mean: 

I am working on STM32F103C8T6 blue pill board. Does this Microcontroller has FLASH memory to store some data ?? If yes then please tell the starting memory address.

raghu rajput
Associate II

I have seen examples for STM32F4 series, where they write as

FALSH_ERASE(SECTOR 11,); and FLASH_PROGRAM_HALFWORD(XXX,XXX,XXX);

FLASH_Unlock();

How to program for flash memory in STM32F103C8T6 ??

Please help if anybody knows answer for this.

Your help will be appreciated.

following is my code .. please correct it.

4 REPLIES 4
Imen.D
ST Employee

Hello @raghu rajput​ ,

There is a Flash memory that can be used for storing both code and data constants.

You have this manual "PM0075 Programming manual STM32F10xxx Flash memory microcontrollers" which describes how to program to the STM32F10xxx Flash memory.

For the base address, please refer to the related STM32F10xxx reference manual.

With Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

The Cube/HAL code trees should have assorted examples. The FLASH memory always starts at 0x08000000, but the overall size, and size of the sectors depends on the specific part.

STM32Cube_FW_F1_V1.6.1\Projects\STM32F103RB-Nucleo\Examples\FLASH\FLASH_EraseProgram\Src\main.c

>>Your help will be appreciated.

I accept PayPal, Venmo or Amazon Gift Cards.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
raghu rajput
Associate II

thank you @Imen DAHMEN​ Thank you so much for your response. i will go through the manual you have mentioned. It would have been very helpful if i get some example code for flash memory st5m32f103c8t6.

raghu rajput
Associate II

Thank you very much @Community member​ 

I will go through the code you shared.

Thanx for the support.