board_android-IoT/STM32F 2023. 10. 26. 08:59

1. STM32F103CBT6 vs STM32F103C8T6

- 128KB vs 64KB flash memory

 

2. STM32F103CBT6 + SPI_LCD(ILI1394)

- FLASH_PAGE_F1.c 

> https://github.com/controllerstech/STM32/blob/master/FLASH_PROGRAM/F1%20SERIES/FlASH_PAGE_F1.c

 

//#define _64K_FLASH  1      // if 64K FLASH is available
#ifdef _64K_FLASH   //64KB FLASH avaiable , STM32F103C8T6
uint32_t addressTagFlash  =0x0800FC00 ;//0x0800FC00 =>last 1K of 64K flash  ;  or 0x0800F800 for lower 2K range
#else  //128KB flash available , STM32F103CBT6
uint32_t addressTagFlash  =0x0801FC00 ;//0x0801FC00 =>last 1K of 128K flash  ; or 0x0801F800
#endif

......

  Flash_Write_Data( addressTagFlash, (uint32_t *) TagSaveInfo , sizeof( TagSaveInfo) / sizeof(uint32_t)) ;//0x0801FC00: last 1KB of 128KB Flash
  Flash_Read_Data( addressTagFlash, (uint32_t *) temp_TagSaveInfo , sizeof( temp_TagSaveInfo)/sizeof(uint32_t) ) ;

 

-추가

https://community.st.com/t5/stm32-mcus-products/facing-problems-with-saving-data-to-flash-memory-on/td-p/131871

 

Facing problems with saving data to flash memory on stm32g030c8t6.

I tried implementing a driver by following the Flash example present of the GitHub page and a blog I found online: How to Program Flash memory in STM32 » ControllersTech The driver code according to this blog is: STM32/FlASH_PAGE_F1.c at master · contro

community.st.com

 

-F 시리즈는 아래 eeprom emulation을 지원하지 않음.

> https://community.st.com/t5/stm32-mcus-products/how-to-use-flash-memory-as-a-eeprom-in-stm32g071cbt6/td-p/585659

 

How to use flash memory as a EEPROM in STM32G071CBT6

Hello! I'm using the STM32G071CBT6 controller for my project. I need to store certain values in EEPROM for my project, but unfortunately, this controller doesn't have built-in EEPROM functionality. Despite this limitation, I'm determined to find a solution

community.st.com

 

posted by cskimair
: