Analysis of flash memory structure based on STM32F407

Hardware platform: STM32F4 DISCOVERY development board Model: MB997A or MB997C
Main chip model: STM32F405xx, STM32F407 xx, STM32F415xx, or STM32F417xx

Main reference documents:

(1) PM0081 STM32F40xxx and STM32F41xxx Flash programming manual.pdf
(2) STM32F407 datasheet.pdf

As an embedded developer, after getting a chip, we first look at its parameter indicators, how much capacity of RAM, how much capacity of Flash. Of course, the premise is that the chip comes with these two modules.
Today we only study the structure of Flash :)
(1) It is stated that the flash modules of STM32F405xx, STM32F407xx, STM32F415xx, and STM32F417xx are the same, so we will use STM32F4 to represent them later in the article.
(B) Overview First, let ’s take an overview

Analysis of flash memory structure based on STM32F407

2.1 Main memory
The addition of the Sectors in the main memory part is finally equal to 1024Kbyte, which is also consistent with the Capacity up to 1 Mbyte stated at the beginning of the document. In this area, we mainly store the programs written by our users. Here you may see that the address of the storage area starts from 0x08000000, which is why when we use the ST-Link2 programming program, we must specify the start The address is 0x08000000.
2.2 System memory
The System memory area is a reserved area of ​​the system and is used to start the chip in the "System memory boot" mode. It stores a special program called bootloader. By running the program in this area, the main memory can be reprogrammed. For example, if we choose to boot in System memory boot mode and plug in a USB flash drive with system firmware, then after configuration, the bootloader can read the firmware in the USB flash drive and burn it into the Main memory area. , How about, convenient! In other words, the firmware can be reprogrammed to the chip through USB OTG FS! Magical function :)
2.3 OTP area

Analysis of flash memory structure based on STM32F407

This area is even more magical. OTP is the abbreviation of One-TIme programmable. It can be seen literally that this area is a one-time programming area. However, when wise humans also make mistakes, what if they are wrong! ST Company takes this into consideration. The 16 bytes starting from the address 0x1FFF7A00 are bytes with the "lock" function. When you are sure that the data written in the OTPx area is indeed correct, you can write to the LOCKBx address. 0x00, the OTPx area cannot be changed since then.
2.4 OpTIon bytes
The official document should be written wrong, how can 0x1FFFC000-0x1FFFC00F be 16Kbytes? It should be 16 bytes, right?

Litecoin Mining Machine

Litecoin is an online currency based on peer-to-peer technology and is an open source software project under the MIT/X11 license. It can help users make instant payments to anyone in the world [2]. Litecoin was designed and programmed by a programmer (Li Qiwei) who used to work at Google, and launched on January 9, 2011. Litecoin is an improved digital currency inspired by Bitcoin. The technical principle of Litecoin is the same as that of Bitcoin. It also adopts a decentralized architecture, without any central authority control, and the issuance of new coins and the transfer of transactions and payments are based on open source encryption algorithms, etc. These are all imitated the design principle of Bitcoin. However, Litecoin tries its best to improve the shortcomings that Bitcoin has shown before, such as too slow transaction confirmation, small total cap, the emergence of large mining pools caused by proof-of-work mechanism and so on, SHA256 algorithm [1].

Litecoin, which aims to improve Bitcoin, has three significant differences. First, the Litecoin network can process a block every 2.5 minutes instead of 10, thus providing faster transaction confirmation. Second, the Litecoin network is expected to produce 84 million litecoins, four times the amount of money issued on the Bitcoin network. Each litecoin is divided into 100 million smaller units, defined by eight decimal places.

Litecoin Mining Machine:Bitmain Antminer L7,Goldshell Mini-DOGE Pro,Goldshell LT Lite,Innosilicon A4+ LTCMaster,Goldshell LT5,
Bitmain Antminer L3+ (504Mh),Bitmain Antminer L3+ (600Mh),etc.

Litecoin Mining Machine,L3 Miner,Antminer L7,Ltc Mining Machine,Scrypt

Shenzhen YLHM Technology Co., Ltd. , https://www.sggminer.com

This entry was posted in on