2018-08-15 10:27 PM
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.
2018-08-16 02:23 AM
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.
2018-08-16 05:19 AM
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.
2018-08-18 01:31 AM
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.
2018-08-18 01:34 AM
Thank you very much @Community member
I will go through the code you shared.
Thanx for the support.