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.
Previous article:STM32F10x MCU Flash write operation causes interrupt unresponsiveness
Next article:STM32F030C8T6 serial port receives variable length data
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- SHT31 Review + Unboxing Test
- How to obtain high-frequency equivalent models of devices such as varistors and TVS transient diodes
- MicroPython uses the new neopixel driver
- Review Weekly Report 20220509: Saifang RISC-V Linux Starlight Board is coming, how is the Xianji 800MHz HPM6750 tested?
- How to set default rules for Altium drawing?
- Which forum member has a deeper understanding of MOS tubes? I usually overlook some parameters when reading the specification, and I want to understand them all today. Know...
- How to configure the SSH service of Win10 Linux subsystem
- Classification of RFID readers and their advantages
- Video demonstration and explanation of each measurement item of digital oscilloscope
- Interesting impedance transformation