STM32 internal flash operation details that must be known

Publisher:superstar11Latest update time:2018-07-10 Source: eefocusKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. The internal flash write operation of stm32 can only write two bytes, not one byte at a time

2. Erase is required before writing, and all data after erasing are FF

3. The internal flash is 512kb for large capacity, and less than 512 for small capacity. In the stm32f10x_flash.c of stm32, the FLASH_Status FLASH_ErasePage erase page function is different from erasing 2k or 1k. Large capacity erases 2k, and small capacity erases 1k

4. Reading can read only one byte, for example: *(uint8_t*)(Address)

5. In my code, there is no delay function added to the erase and write process, because there is already a function in the library function to ensure the completion of the operation.

6. Call the unlock function before erasing.


Keywords:stm32 Reference address:STM32 internal flash operation details that must be known

Previous article:STM32F10x MCU Flash write operation causes interrupt unresponsiveness
Next article:STM32F030C8T6 serial port receives variable length data

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号