Skip to main content
raghu rajput
Associate II
August 16, 2018
Question

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.

  • August 16, 2018
  • 4 replies
  • 1394 views

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.

    This topic has been closed for replies.

    4 replies

    Technical Moderator
    August 16, 2018

    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.

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Tesla DeLorean
    Guru
    August 16, 2018

    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    raghu rajput
    Associate II
    August 18, 2018

    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
    August 18, 2018

    Thank you very much @Community member​ 

    I will go through the code you shared.

    Thanx for the support.